pax_global_header00006660000000000000000000000064147162760210014520gustar00rootroot0000000000000052 comment=427f517f1f5446617b2bf5d4bc24504a941a7074 freeRtr-24.11.16/000077500000000000000000000000001471627602100133655ustar00rootroot00000000000000freeRtr-24.11.16/.github/000077500000000000000000000000001471627602100147255ustar00rootroot00000000000000freeRtr-24.11.16/.github/workflows/000077500000000000000000000000001471627602100167625ustar00rootroot00000000000000freeRtr-24.11.16/.github/workflows/codeql.yml000066400000000000000000000021621471627602100207550ustar00rootroot00000000000000name: CodeQL on: push: branches: [ master ] pull_request: branches: [ master ] schedule: - cron: '43 15 * * 3' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'cpp', 'java', 'python' ] steps: - name: Checkout repository uses: actions/checkout@v3 - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} - if: matrix.language == 'cpp' name: build cpp run: | sudo apt-get -y update || true for a in gcc clang libpcap-dev libssl-dev dpdk-dev libbpf-dev libmnl-dev ; do sudo apt-get -y install $a || true done cd misc/native ./c.sh - if: matrix.language == 'java' name: build cpp run: | sudo apt-get update sudo apt-get -y install default-jdk-headless cd src ./c.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 freeRtr-24.11.16/.github/workflows/sonarqube.yml000066400000000000000000000007161471627602100215100ustar00rootroot00000000000000name: SonarQube on: #disabled until fixed # push: # branches: [ master ] # pull_request: # branches: [ master ] schedule: - cron: '43 15 * * 3' jobs: sonarQubeTrigger: name: SonarQube Trigger runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: SonarQube Scan uses: kitabisa/sonarqube-action@v1.1.1 with: host: ${{ secrets.SONARQUBE_HOST }} login: ${{ secrets.SONARQUBE_TOKEN }} freeRtr-24.11.16/backup.sh000077500000000000000000000026261471627602100151770ustar00rootroot00000000000000#!/bin/sh chmod -x `find . -executable -name "*.class"` 2> /dev/null chmod -x `find . -executable -name "*.java"` 2> /dev/null chmod -x `find . -executable -name "*.tmpl"` 2> /dev/null chmod -x `find . -executable -name "*.asm"` 2> /dev/null chmod -x `find . -executable -name "*.pas"` 2> /dev/null chmod -x `find . -executable -name "*.tcl"` 2> /dev/null chmod -x `find . -executable -name "*.pyc"` 2> /dev/null chmod -x `find . -executable -name "*.lua"` 2> /dev/null chmod -x `find . -executable -name "*.zip"` 2> /dev/null chmod -x `find . -executable -name "*.tst"` 2> /dev/null chmod -x `find . -executable -name "*.ini"` 2> /dev/null chmod -x `find . -executable -name "*.txt"` 2> /dev/null chmod -x `find . -executable -name "*.p4"` 2> /dev/null chmod -x `find . -executable -name "*.py"` 2> /dev/null chmod -x `find . -executable -name "*.c"` 2> /dev/null chmod -x `find . -executable -name "*.h"` 2> /dev/null echo -n `cd misc/trackmap;./d.sh` echo -n `cd misc/android;./d.sh` echo -n `cd misc/gallery;./d.sh` echo -n `cd misc/applet;./d.sh` echo -n `cd misc/p4bmv2;./d.sh` echo -n `cd misc/player;./d.sh` echo -n `cd misc/temper;./d.sh` echo -n `cd misc/mailer;./d.sh` echo -n `cd misc/paster;./d.sh` echo -n `cd misc/motion;./d.sh` echo -n `cd misc/voice;./d.sh` echo -n `cd misc/rfcs;./d.sh` echo `cd src;./d.sh` rm ipv*.mrt 2> /dev/null rm rtr.zip 2> /dev/null zip -r rtr.zip src cfg misc *.sh *.txt *.md >/dev/null freeRtr-24.11.16/cfg/000077500000000000000000000000001471627602100141245ustar00rootroot00000000000000freeRtr-24.11.16/cfg/basic01.tst000066400000000000000000000010071471627602100161000ustar00rootroot00000000000000description dummy test addrouter r1 ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit ! r1 send sh ver r1 read place r1 read # r1 send sh plat r1 tping 100 5 1.1.1.1 vrf v1 rep 1 r1 output show version r1 output show platform output ../binTmp/basic1.html here is the version information:
show:0
here is the platform information:
show:1
! freeRtr-24.11.16/cfg/basic02.tst000066400000000000000000000004171471627602100161050ustar00rootroot00000000000000description interface with slot addrouter r1 ! vrf def v1 rd 1:1 exit int lo1/1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int lo0/0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.1 vrf v1 rep 1 r1 tping 100 5 2.2.2.2 vrf v1 rep 1 freeRtr-24.11.16/cfg/basic03.tst000066400000000000000000000004661471627602100161120ustar00rootroot00000000000000description subinterface with slot addrouter r1 ! vrf def v1 rd 1:1 exit int lo1/1 exit int lo1/1.1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int lo0/0 exit int lo0/0.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.1 vrf v1 rep 1 r1 tping 100 5 2.2.2.2 vrf v1 rep 1 freeRtr-24.11.16/cfg/conn-amt01.tst000066400000000000000000000020231471627602100165320ustar00rootroot00000000000000description amt over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode amt tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode amt tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-amt.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-amt02.tst000066400000000000000000000014701471627602100165400ustar00rootroot00000000000000description amt over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode amt tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode amt tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-amt03.tst000066400000000000000000000021101471627602100165310ustar00rootroot00000000000000description amt over amt addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode amt tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode amt tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode amt tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode amt tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-amt04.tst000066400000000000000000000017411471627602100165430ustar00rootroot00000000000000description amt over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode amt tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode amt tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-anyconn.tst000066400000000000000000000026651471627602100172710ustar00rootroot00000000000000description ip over anyconnect addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit aaa userlist usr username c password c exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 ipv6 pool p6 2222::1 ::1 254 int di1 enc raw vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ipv6 addr 2222::0 ffff:ffff:ffff:ffff:: ipv4 pool p4 ipv6 pool p6 exit server http h host * path ./ host * anyconn dialer1 host * authen usr vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc raw vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.0 ipv6 route v1 :: :: 2222::0 vpdn anyconn int di1 proxy p1 tar http://1.1.1.1/ user c pass c prot anyconn exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 60 2222::0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-anyconn.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-arcnet.tst000066400000000000000000000012771471627602100170760ustar00rootroot00000000000000description arcnet encapsulation addrouter r1 int arcnet1 arc - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int arcnet1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int arcnet1 arc - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int arcnet1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show interface arcnet1 full output ../binTmp/conn-arcnet.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-atmdxi.tst000066400000000000000000000014001471627602100170740ustar00rootroot00000000000000description atmdxi encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show interface ser1 full output ../binTmp/conn-atmdxi.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-atmsar.tst000066400000000000000000000013621471627602100171040ustar00rootroot00000000000000description atmsar encapsulation addrouter r1 int atm1 atm - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int atm1 atmsar vpi 123 atmsar vci 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int atm1 atm - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int atm1 atmsar vpi 123 atmsar vci 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show interface atm1 full output ../binTmp/conn-atmsar.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ax2501.tst000066400000000000000000000022541471627602100165360ustar00rootroot00000000000000description ppp with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 r1 output show inter dia1 full output ../binTmp/conn-ax25.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ax2502.tst000066400000000000000000000016171471627602100165410ustar00rootroot00000000000000description hdlc with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ax2503.tst000066400000000000000000000016361471627602100165430ustar00rootroot00000000000000description lapb with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc lapb vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ax2504.tst000066400000000000000000000020121471627602100165310ustar00rootroot00000000000000description framerelay with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ax2505.tst000066400000000000000000000017151471627602100165430ustar00rootroot00000000000000description atmdxi with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ax2506.tst000066400000000000000000000016361471627602100165460ustar00rootroot00000000000000description isdn with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc isdn vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ax2507.tst000066400000000000000000000016141471627602100165430ustar00rootroot00000000000000description sep with ax25 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol ax25 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol ax25 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-bridge01.tst000066400000000000000000000041421471627602100172110ustar00rootroot00000000000000description chain bridged ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.4 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r1 tping 100 5 1234::4 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.4 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::4 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1.1.1.4 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1234::4 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.2 vrf v1 r4 tping 100 5 1.1.1.3 vrf v1 r4 tping 100 5 1234::1 vrf v1 r4 tping 100 5 1234::2 vrf v1 r4 tping 100 5 1234::3 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-bridge.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-bridge02.tst000066400000000000000000000033051471627602100172120ustar00rootroot00000000000000description chain bridged ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1.11 bridge-gr 1 exit int eth2.12 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1.12 bridge-gr 1 exit int eth2.13 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.13 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.4 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r1 tping 100 5 1234::4 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.4 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::4 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1.1.1.4 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1234::4 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.2 vrf v1 r4 tping 100 5 1.1.1.3 vrf v1 r4 tping 100 5 1234::1 vrf v1 r4 tping 100 5 1234::2 vrf v1 r4 tping 100 5 1234::3 vrf v1 freeRtr-24.11.16/cfg/conn-bridge03.tst000066400000000000000000000033151471627602100172140ustar00rootroot00000000000000description star bridged ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.4 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r1 tping 100 5 1234::4 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.4 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::4 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1.1.1.4 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1234::4 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.2 vrf v1 r4 tping 100 5 1.1.1.3 vrf v1 r4 tping 100 5 1234::1 vrf v1 r4 tping 100 5 1234::2 vrf v1 r4 tping 100 5 1234::3 vrf v1 freeRtr-24.11.16/cfg/conn-bridge04.tst000066400000000000000000000021161471627602100172130ustar00rootroot00000000000000description bridged ethernet over hdlc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int ser1 enc hdlc bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int ser1 enc hdlc bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge05.tst000066400000000000000000000021001471627602100172050ustar00rootroot00000000000000description bridged ethernet over ppp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int ser1 enc ppp bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int ser1 enc ppp bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge06.tst000066400000000000000000000022241471627602100172150ustar00rootroot00000000000000description bridged ethernet over framerelay addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int ser1 enc framerelay framerelay dlci 123 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge07.tst000066400000000000000000000022011471627602100172110ustar00rootroot00000000000000description bridged ethernet over atmdxi addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge08.tst000066400000000000000000000021511471627602100172160ustar00rootroot00000000000000description bridged ethernet over atmsar addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int atm1 atm - $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int atm1 atmsar vpi 1 atmsar vci 2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int atm1 atm - $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int atm1 atmsar vpi 1 atmsar vci 2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge09.tst000066400000000000000000000026421471627602100172240ustar00rootroot00000000000000description bridged ethernet over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet2 tunnel destination 9999::2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge10.tst000066400000000000000000000020541471627602100172110ustar00rootroot00000000000000description bridge with spantree addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 stp-priority 40960 stp-mode ieee mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ int eth3 eth 0000.0000.2222 $4a$ $4b$ int eth4 eth 0000.0000.2222 $4b$ $4a$ ! vrf def v1 rd 1:1 exit bridge 1 stp-priority 20480 stp-mode ieee mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bridge11.tst000066400000000000000000000022321471627602100172100ustar00rootroot00000000000000description bridged ethernet over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit bridge 2 mac-learn exit bridge 3 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 2 exit int bvi1 bridge-gr 3 exit int bvi2 bridge-gr 3 exit int bvi3 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge12.tst000066400000000000000000000017731471627602100172220ustar00rootroot00000000000000description bridge split horizon addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn private exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.4444 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 0 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 0 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 0 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bridge13.tst000066400000000000000000000017701471627602100172200ustar00rootroot00000000000000description bridge mac learning addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.4444 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge14.tst000066400000000000000000000034011471627602100172120ustar00rootroot00000000000000description bridge mac rewrite addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 bridge-ports 0000.1234.1234 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 bridge-macre 0000.1234.1234 exit int eth2 bridge-gr 1 bridge-macre 0000.1234.1234 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.4 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r1 tping 100 5 1234::4 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.4 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::4 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1.1.1.4 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1234::4 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.2 vrf v1 r4 tping 100 5 1.1.1.3 vrf v1 r4 tping 100 5 1234::1 vrf v1 r4 tping 100 5 1234::2 vrf v1 r4 tping 100 5 1234::3 vrf v1 freeRtr-24.11.16/cfg/conn-bridge15.tst000066400000000000000000000033211471627602100172140ustar00rootroot00000000000000description bridge port security addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 bridge-ports 0000.0000.3333 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 macaddr 0000.0000.3333 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 0 5 1.1.1.4 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r1 tping 0 5 1234::4 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 0 5 1.1.1.4 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 0 5 1234::4 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1.1.1.4 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1234::4 vrf v1 r4 tping 0 5 1.1.1.1 vrf v1 r4 tping 0 5 1.1.1.2 vrf v1 r4 tping 100 5 1.1.1.3 vrf v1 r4 tping 0 5 1234::1 vrf v1 r4 tping 0 5 1234::2 vrf v1 r4 tping 100 5 1234::3 vrf v1 freeRtr-24.11.16/cfg/conn-bridge16.tst000066400000000000000000000032711471627602100172210ustar00rootroot00000000000000description bridge static address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 bridge-stat 0000.0000.4444 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 0 5 1.1.1.4 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r1 tping 0 5 1234::4 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 0 5 1.1.1.4 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 0 5 1234::4 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1.1.1.4 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1234::4 vrf v1 r4 tping 0 5 1.1.1.1 vrf v1 r4 tping 0 5 1.1.1.2 vrf v1 r4 tping 100 5 1.1.1.3 vrf v1 r4 tping 0 5 1234::1 vrf v1 r4 tping 0 5 1234::2 vrf v1 r4 tping 100 5 1234::3 vrf v1 freeRtr-24.11.16/cfg/conn-bridge17.tst000066400000000000000000000044311471627602100172210ustar00rootroot00000000000000description bridge port split horizon addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 bridge-fi private exit int eth2 bridge-gr 1 bridge-fi private exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.4444 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.4 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::4 vrf v1 r2 tping 100 5 1234::5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 0 5 1.1.1.3 vrf v1 r1 tping 0 5 1.1.1.4 vrf v1 r1 tping 0 5 1.1.1.5 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 1234::3 vrf v1 r1 tping 0 5 1234::4 vrf v1 r1 tping 0 5 1234::5 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 0 5 1.1.1.1 vrf v1 r3 tping 0 5 1.1.1.4 vrf v1 r3 tping 0 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 0 5 1234::1 vrf v1 r3 tping 0 5 1234::4 vrf v1 r3 tping 0 5 1234::5 vrf v1 r4 tping 0 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.2 vrf v1 r4 tping 0 5 1.1.1.3 vrf v1 r4 tping 100 5 1.1.1.5 vrf v1 r4 tping 0 5 1234::1 vrf v1 r4 tping 100 5 1234::2 vrf v1 r4 tping 0 5 1234::3 vrf v1 r4 tping 100 5 1234::5 vrf v1 r5 tping 0 5 1.1.1.1 vrf v1 r5 tping 100 5 1.1.1.2 vrf v1 r5 tping 0 5 1.1.1.3 vrf v1 r5 tping 100 5 1.1.1.4 vrf v1 r5 tping 0 5 1234::1 vrf v1 r5 tping 100 5 1234::2 vrf v1 r5 tping 0 5 1234::3 vrf v1 r5 tping 100 5 1234::4 vrf v1 freeRtr-24.11.16/cfg/conn-bridge18.tst000066400000000000000000000044401471627602100172220ustar00rootroot00000000000000description bridge port unsplit horizon addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn private exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 bridge-fi public exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.4444 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.4 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::4 vrf v1 r2 tping 100 5 1234::5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 0 5 1.1.1.3 vrf v1 r1 tping 0 5 1.1.1.4 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 1234::3 vrf v1 r1 tping 0 5 1234::4 vrf v1 r1 tping 100 5 1234::5 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 0 5 1.1.1.1 vrf v1 r3 tping 0 5 1.1.1.4 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 0 5 1234::1 vrf v1 r3 tping 0 5 1234::4 vrf v1 r3 tping 100 5 1234::5 vrf v1 r4 tping 0 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.2 vrf v1 r4 tping 0 5 1.1.1.3 vrf v1 r4 tping 100 5 1.1.1.5 vrf v1 r4 tping 0 5 1234::1 vrf v1 r4 tping 100 5 1234::2 vrf v1 r4 tping 0 5 1234::3 vrf v1 r4 tping 100 5 1234::5 vrf v1 r5 tping 100 5 1.1.1.1 vrf v1 r5 tping 100 5 1.1.1.2 vrf v1 r5 tping 100 5 1.1.1.3 vrf v1 r5 tping 100 5 1.1.1.4 vrf v1 r5 tping 100 5 1234::1 vrf v1 r5 tping 100 5 1234::2 vrf v1 r5 tping 100 5 1234::3 vrf v1 r5 tping 100 5 1234::4 vrf v1 freeRtr-24.11.16/cfg/conn-bridge19.tst000066400000000000000000000026451471627602100172300ustar00rootroot00000000000000description bridged ethernet over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet2 tunnel destination 9999::2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 9999::1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bridge20.tst000066400000000000000000000027121471627602100172130ustar00rootroot00000000000000description bridged ethernet over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel key 1234 tunnel mode l2tp3 tunnel source ethernet2 tunnel destination 9999::2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel key 1234 tunnel mode l2tp3 tunnel source ethernet1 tunnel destination 9999::1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r2 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-bstun.tst000066400000000000000000000025441471627602100167530ustar00rootroot00000000000000description ppp over bstun addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit aaa userlist usr username c password c username c privilege 14 exit server bstun bs vrf v1 login authen usr group 123 exec int di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit chat-script login recv 5000 .*ser send c binsend 13 recv 5000 .*ass send c binsend 13 send ppp binsend 13 exit vpdn bs interface di1 proxy p1 script login target 3.3.3.1 vcid 123 protocol bstun exit ! r2 tping 100 30 2.2.2.0 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-bstun.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-bundle01.tst000066400000000000000000000017131471627602100172270ustar00rootroot00000000000000description bundle of ethernet port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bundle 1 exit int eth1 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show bundle 1 r1 output show inter bun1 full r1 output show ipv4 arp bun1 r1 output show ipv6 neigh bun1 output ../binTmp/conn-bundle.html here is the bundle:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-bundle02.tst000066400000000000000000000010171471627602100172250ustar00rootroot00000000000000description bundle of serial port addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit bundle 1 no ether exit int ser1 enc hdlc bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle03.tst000066400000000000000000000013071471627602100172300ustar00rootroot00000000000000description bundle of ethernet ports addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle04.tst000066400000000000000000000012451471627602100172320ustar00rootroot00000000000000description bundle of serial ports addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 no ether exit int ser1 bundle-gr 1 exit int ser2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit bundle 1 no ether exit int ser1 bundle-gr 1 exit int ser2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle05.tst000066400000000000000000000010751471627602100172340ustar00rootroot00000000000000description bundle over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bundle 1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle06.tst000066400000000000000000000010751471627602100172350ustar00rootroot00000000000000description bridge over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bundle 1 exit bridge 1 exit int eth1 bundle-gr 1 exit int bun1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle07.tst000066400000000000000000000013451471627602100172360ustar00rootroot00000000000000description replicating bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 repl exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bundle 1 repl exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 400 5 1.1.1.2 vrf v1 multi r2 tping 400 5 1.1.1.1 vrf v1 multi r1 tping 400 5 1234::2 vrf v1 multi r2 tping 400 5 1234::1 vrf v1 multi freeRtr-24.11.16/cfg/conn-bundle08.tst000066400000000000000000000013371471627602100172400ustar00rootroot00000000000000description unreplicating bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 repl sequ 8 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bundle 1 repl sequ 8 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle09.tst000066400000000000000000000017731471627602100172450ustar00rootroot00000000000000description dejittering bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 repl sequ 8 deji 300 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bundle 1 repl sequ 8 deji 300 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 0 5 1.1.1.2 vrf v1 tim 100 r2 tping 0 5 1.1.1.1 vrf v1 tim 100 r1 tping 0 5 1234::2 vrf v1 tim 100 r2 tping 0 5 1234::1 vrf v1 tim 100 r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-bundle10.tst000066400000000000000000000024001471627602100172210ustar00rootroot00000000000000description loadbalancing bundle addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 no ethernet loadbalance layer3 exit int ser1 bundle-gr 1 exit int ser2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 exit ! addrouter r3 int ser1 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 send telnet 1.1.1.2 vrf v1 r1 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::1 vrf v1 r1 send exit r1 read closed r1 send telnet 1234::2 vrf v1 r1 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::1 vrf v1 r1 send exit r1 read closed freeRtr-24.11.16/cfg/conn-bundle11.tst000066400000000000000000000027011471627602100172260ustar00rootroot00000000000000description multichassis bundle addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 no ethernet exit int ser1 bundle-gr 1 exit int ser2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int eth1 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bundle 1 no ethernet peer eth1 2 exit int ser1 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 exit ! addrouter r3 int ser1 ser 0000.0000.2222 $2b$ $2a$ int eth1 eth 0000.0000.2222 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bundle 1 no ethernet peer eth1 3 exit int ser1 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 send telnet 1.1.1.2 vrf v1 r1 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::1 vrf v1 r1 send exit r1 read closed r1 send telnet 1234::2 vrf v1 r1 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::1 vrf v1 r1 send exit r1 read closed freeRtr-24.11.16/cfg/conn-bundle12.tst000066400000000000000000000014251471627602100172310ustar00rootroot00000000000000description backup bundle addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bundle 1 no ethernet backup 3000 exit int ser1 bundle-gr 1 exit int ser2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 30 1.1.1.1 vrf v1 r2 tping 100 30 1234::1 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap01.tst000066400000000000000000000025111471627602100172260ustar00rootroot00000000000000description capwap over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.2 protocol capwap exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.1 protocol capwap exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-capwap.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-capwap02.tst000066400000000000000000000015771471627602100172420ustar00rootroot00000000000000description capwap over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::2 protocol capwap exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::1 protocol capwap exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap03.tst000066400000000000000000000021141471627602100172270ustar00rootroot00000000000000description capwap over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.102 protocol capwap exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.101 protocol capwap exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap04.tst000066400000000000000000000020601471627602100172300ustar00rootroot00000000000000description hdlc tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap05.tst000066400000000000000000000021571471627602100172400ustar00rootroot00000000000000description ppp tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap06.tst000066400000000000000000000021161471627602100172340ustar00rootroot00000000000000description lapb tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap07.tst000066400000000000000000000024401471627602100172350ustar00rootroot00000000000000description framerelay tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap08.tst000066400000000000000000000022521471627602100172370ustar00rootroot00000000000000description atmdxi tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap09.tst000066400000000000000000000021161471627602100172370ustar00rootroot00000000000000description isdn tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap10.tst000066400000000000000000000020531471627602100172270ustar00rootroot00000000000000description sep tunneling with capwap addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 capwap 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 capwap 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap11.tst000066400000000000000000000021001471627602100172210ustar00rootroot00000000000000description ethernet tunneling with capwap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 capwap 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 capwap 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap12.tst000066400000000000000000000021141471627602100172270ustar00rootroot00000000000000description vlan tunneling with capwap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 capwap 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 capwap 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-capwap13.tst000066400000000000000000000015721471627602100172370ustar00rootroot00000000000000description tunnel interface with capwap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod capwap vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod capwap vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dhcp01.tst000066400000000000000000000017561471627602100167030ustar00rootroot00000000000000description dhcp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv6 prefix-suppress exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server dhcp4 dh4 pool 1.1.1.2 1.1.1.199 gateway 1.1.1.1 netmask 255.255.255.0 interface ethernet1 vrf v1 exit server dhcp6 dh6 netmask ffff:ffff:ffff:ffff:: gateway 1234::1 interface ethernet1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-dhcp02.tst000066400000000000000000000020531471627602100166730ustar00rootroot00000000000000description dhcp with arp/nd security addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv6 prefix-suppress no ipv4 host-learn no ipv6 host-learn exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server dhcp4 dh4 pool 1.1.1.2 1.1.1.199 gateway 1.1.1.1 netmask 255.255.255.0 interface ethernet1 vrf v1 exit server dhcp6 dh6 netmask ffff:ffff:ffff:ffff:: gateway 1234::1 interface ethernet1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-dhcp03.tst000066400000000000000000000022121471627602100166710ustar00rootroot00000000000000description dhcp with static allocation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv6 prefix-suppress exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server dhcp4 dh4 pool 1.1.1.2 1.1.1.199 gateway 1.1.1.1 netmask 255.255.255.0 static 0000.0000.2222 1.1.1.111 interface ethernet1 vrf v1 exit server dhcp6 dh6 netmask ffff:ffff:ffff:ffff:: gateway 1234::1 static 0000.0000.2222 1234::111 interface ethernet1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 r1 tping 100 20 1.1.1.111 vrf v1 r1 tping 100 20 1234::111 vrf v1 freeRtr-24.11.16/cfg/conn-dhcp04.tst000066400000000000000000000031341471627602100166760ustar00rootroot00000000000000description dhcp with excluded address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv6 prefix-suppress exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server dhcp4 dh4 pool 1.1.1.2 1.1.1.199 gateway 1.1.1.1 netmask 255.255.255.0 forbid 0000.0000.2222 interface bvi1 vrf v1 exit server dhcp6 dh6 netmask ffff:ffff:ffff:ffff:: gateway 1234::1 forbid 0000.0000.2222 interface bvi1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r3 tping 100 5 4.4.4.4 vrf v1 r3 tping 100 5 4444::4 vrf v1 r2 tping 0 20 1.1.1.1 vrf v1 r2 tping 0 20 1234::1 vrf v1 r2 tping 0 5 4.4.4.4 vrf v1 r2 tping 0 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-dhcp05.tst000066400000000000000000000017551471627602100167060ustar00rootroot00000000000000description dhcp with upgraded server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv6 prefix-suppress exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server dhcp4 dh4 vrf v1 inter eth1 pool 1.1.1.2 1.1.1.199 gateway 1.1.1.1 netmask 255.255.255.0 exit server dhcp6 dh6 vrf v1 inter eth1 netmask ffff:ffff:ffff:ffff:: gateway 1234::1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-dhcp06.tst000066400000000000000000000017261471627602100167050ustar00rootroot00000000000000description dhcp with interface server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv6 prefix-suppress dhcp4 enable dhcp4 pool 1.1.1.2 1.1.1.199 dhcp4 gateway 1.1.1.1 dhcp4 netmask 255.255.255.0 dhcp6 enable dhcp6 netmask ffff:ffff:ffff:ffff:: dhcp6 gateway 1234::1 exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 gateway-prefix p6 exit ! r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw01.tst000066400000000000000000000025251471627602100167310ustar00rootroot00000000000000description dlsw over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol dlsw exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol dlsw exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-dlsw.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-dlsw02.tst000066400000000000000000000016151471627602100167310ustar00rootroot00000000000000description dlsw over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol dlsw exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol dlsw exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw03.tst000066400000000000000000000021321471627602100167250ustar00rootroot00000000000000description dlsw over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol dlsw exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol dlsw exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw04.tst000066400000000000000000000020501471627602100167250ustar00rootroot00000000000000description hdlc tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw05.tst000066400000000000000000000021471471627602100167350ustar00rootroot00000000000000description ppp tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw06.tst000066400000000000000000000021061471627602100167310ustar00rootroot00000000000000description lapb tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw07.tst000066400000000000000000000024301471627602100167320ustar00rootroot00000000000000description framerelay tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw08.tst000066400000000000000000000022421471627602100167340ustar00rootroot00000000000000description atmdxi tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw09.tst000066400000000000000000000021061471627602100167340ustar00rootroot00000000000000description isdn tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw10.tst000066400000000000000000000020431471627602100167240ustar00rootroot00000000000000description sep tunneling with dlsw addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 dlsw 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 dlsw 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw11.tst000066400000000000000000000020701471627602100167250ustar00rootroot00000000000000description ethernet tunneling with dlsw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 dlsw 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 dlsw 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw12.tst000066400000000000000000000021041471627602100167240ustar00rootroot00000000000000description vlan tunneling with dlsw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 dlsw 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 dlsw 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-dlsw13.tst000066400000000000000000000015621471627602100167340ustar00rootroot00000000000000description tunnel interface with dlsw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod dlsw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod dlsw vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan01.tst000066400000000000000000000025351471627602100172510ustar00rootroot00000000000000description erspan over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-erspan.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-erspan02.tst000066400000000000000000000016231471627602100172470ustar00rootroot00000000000000description erspan over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan03.tst000066400000000000000000000021401471627602100172430ustar00rootroot00000000000000description erspan over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan04.tst000066400000000000000000000020561471627602100172520ustar00rootroot00000000000000description hdlc tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan05.tst000066400000000000000000000021551471627602100172530ustar00rootroot00000000000000description ppp tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan06.tst000066400000000000000000000021141471627602100172470ustar00rootroot00000000000000description lapb tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan07.tst000066400000000000000000000024361471627602100172570ustar00rootroot00000000000000description framerelay tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan08.tst000066400000000000000000000022501471627602100172520ustar00rootroot00000000000000description atmdxi tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan09.tst000066400000000000000000000021141471627602100172520ustar00rootroot00000000000000description isdn tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan10.tst000066400000000000000000000020511471627602100172420ustar00rootroot00000000000000description sep tunneling with erspan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 erspan 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 erspan 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan11.tst000066400000000000000000000020761471627602100172520ustar00rootroot00000000000000description ethernet tunneling with erspan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 erspan 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 erspan 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan12.tst000066400000000000000000000021121471627602100172420ustar00rootroot00000000000000description vlan tunneling with erspan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 erspan 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 erspan 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-erspan13.tst000066400000000000000000000015701471627602100172520ustar00rootroot00000000000000description tunnel interface with erspan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod erspan vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod erspan vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth01.tst000066400000000000000000000015311471627602100165340ustar00rootroot00000000000000description ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show inter eth1 full r1 output show ipv4 arp eth1 r1 output show ipv6 neigh eth1 output ../binTmp/conn-eth.html here is the interface:
show:0
here is the arp:
show:1
here are the neighbors:
show:2
! freeRtr-24.11.16/cfg/conn-eth02.tst000066400000000000000000000010751471627602100165400ustar00rootroot00000000000000description point2point ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ! r1 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-eth03.tst000066400000000000000000000007671471627602100165500ustar00rootroot00000000000000description ethernet dot1q encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth04.tst000066400000000000000000000010711471627602100165360ustar00rootroot00000000000000description ethernet qinq encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1.22 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1.11 exit int eth1.11.22 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth05.tst000066400000000000000000000010561471627602100165420ustar00rootroot00000000000000description ethernet dot1ad encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc dot1ad exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc dot1ad exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth06.tst000066400000000000000000000010561471627602100165430ustar00rootroot00000000000000description ethernet dot1ah encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc dot1ah exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc dot1ah exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth07.tst000066400000000000000000000010531471627602100165410ustar00rootroot00000000000000description ethernet qinq1 encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc qinq1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc qinq1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth08.tst000066400000000000000000000010531471627602100165420ustar00rootroot00000000000000description ethernet qinq2 encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc qinq2 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc qinq2 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth09.tst000066400000000000000000000010531471627602100165430ustar00rootroot00000000000000description ethernet qinq3 encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc qinq3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc qinq3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth10.tst000066400000000000000000000015361471627602100165410ustar00rootroot00000000000000description ethernet qinqX encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc qinqx exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth1.111111 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int eth1 enc qinqx exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth11.tst000066400000000000000000000016051471627602100165370ustar00rootroot00000000000000description ethernet qinqX custom encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc qinqx qinqx eth 1234 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth1.111111 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int eth1 enc qinqx qinqx eth 1234 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth12.tst000066400000000000000000000010451471627602100165360ustar00rootroot00000000000000description ethernet isl encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc isl exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc isl exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth13.tst000066400000000000000000000027671471627602100165530ustar00rootroot00000000000000description proxy remote arp/nd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1.1.1.6 vrf v1 r1 tping 100 5 1234::6 vrf v1 r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234::5 vrf v1 r2 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1.1.1.6 vrf v1 r2 tping 100 5 1234::6 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1234::5 vrf v1 freeRtr-24.11.16/cfg/conn-eth14.tst000066400000000000000000000015641471627602100165460ustar00rootroot00000000000000description proxy local arp/nd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.255 ipv6 addr 1234::9 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 proxy-local ipv6 proxy-local exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1.1.1.9 vrf v1 r1 tping 100 5 1234::9 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1.1.1.9 vrf v1 r2 tping 100 5 1234::9 vrf v1 freeRtr-24.11.16/cfg/conn-eth15.tst000066400000000000000000000012741471627602100165450ustar00rootroot00000000000000description static arp/nd entry addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 macaddr 0000.0000.1111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 host-static 1.1.1.2 0000.0000.2222 ipv6 host-static 1234::2 0000.0000.2222 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 macaddr 0000.0000.2222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 host-static 1.1.1.1 0000.0000.1111 ipv6 host-static 1234::1 0000.0000.1111 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth16.tst000066400000000000000000000010551471627602100165430ustar00rootroot00000000000000description loss detection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 macaddr 0000.0000.1111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: loss-detect exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 macaddr 0000.0000.2222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: loss-detect exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth17.tst000066400000000000000000000010541471627602100165430ustar00rootroot00000000000000description eapol addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: eapol client c c exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: eapol server usr exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth18.tst000066400000000000000000000010231471627602100165400ustar00rootroot00000000000000description lacp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: lacp 0000.0000.1234 12345 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: lacp 0000.0000.4321 12345 2 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth19.tst000066400000000000000000000027501471627602100165510ustar00rootroot00000000000000description monitor session rx addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir rx monitor-sess eth2 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir rx monitor-sess eth1 exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 1.1.1.6 vrf v1 r1 tping 0 5 1234::6 vrf v1 r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234::5 vrf v1 r2 tping 0 5 1.1.1.2 vrf v1 r2 tping 0 5 1234::2 vrf v1 r2 tping 100 5 1.1.1.6 vrf v1 r2 tping 100 5 1234::6 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1234::5 vrf v1 freeRtr-24.11.16/cfg/conn-eth20.tst000066400000000000000000000022411471627602100165340ustar00rootroot00000000000000description monitor session tx addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir tx monitor-sess eth2 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 200 5 1.1.1.1 vrf v1 multi r3 tping 200 5 1234::1 vrf v1 multi r3 tping 100 5 1.1.1.5 vrf v1 multi r3 tping 100 5 1234::5 vrf v1 multi freeRtr-24.11.16/cfg/conn-eth21.tst000066400000000000000000000022661471627602100165440ustar00rootroot00000000000000description monitor session sampled addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir tx monitor-samp 5 monitor-sess eth2 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 120 5 1.1.1.1 vrf v1 multi r3 tping 120 5 1234::1 vrf v1 multi r3 tping 100 5 1.1.1.5 vrf v1 multi r3 tping 100 5 1234::5 vrf v1 multi freeRtr-24.11.16/cfg/conn-eth22.tst000066400000000000000000000022711471627602100165410ustar00rootroot00000000000000description monitor session truncated addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir tx monitor-trun 16 monitor-sess eth2 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 multi r3 tping 100 5 1234::1 vrf v1 multi r3 tping 100 5 1.1.1.5 vrf v1 multi r3 tping 100 5 1234::5 vrf v1 multi freeRtr-24.11.16/cfg/conn-eth23.tst000066400000000000000000000017161471627602100165450ustar00rootroot00000000000000description secondary addresses over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 secondary-addr 1.1.1.111 ipv4 secondary-addr 1.1.1.112 ipv4 secondary-addr 1.1.1.113 ipv6 secondary-addr 1234::111 ipv6 secondary-addr 1234::112 ipv6 secondary-addr 1234::113 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.111 vrf v1 r2 tping 100 5 1.1.1.112 vrf v1 r2 tping 100 5 1.1.1.113 vrf v1 r2 tping 100 5 1234::111 vrf v1 r2 tping 100 5 1234::112 vrf v1 r2 tping 100 5 1234::113 vrf v1 r1 output show inter eth1 full r1 output show ipv4 arp eth1 r1 output show ipv6 neigh eth1 freeRtr-24.11.16/cfg/conn-eth24.tst000066400000000000000000000017301471627602100165420ustar00rootroot00000000000000description secondary addresses over dot1q vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 secondary-addr 1.1.1.111 ipv4 secondary-addr 1.1.1.112 ipv4 secondary-addr 1.1.1.113 ipv6 secondary-addr 1234::111 ipv6 secondary-addr 1234::112 ipv6 secondary-addr 1234::113 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.111 vrf v1 r2 tping 100 5 1.1.1.112 vrf v1 r2 tping 100 5 1.1.1.113 vrf v1 r2 tping 100 5 1234::111 vrf v1 r2 tping 100 5 1234::112 vrf v1 r2 tping 100 5 1234::113 vrf v1 r1 output show inter eth1 full r1 output show ipv4 arp eth1 r1 output show ipv6 neigh eth1 freeRtr-24.11.16/cfg/conn-eth25.tst000066400000000000000000000040121471627602100165370ustar00rootroot00000000000000description monitor session over tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ipv4 route v1 1.1.1.1 255.255.255.252 1.1.1.6 ipv6 route v1 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc 1234::6 ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun key 123 tun mod erspan exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir rx monitor-sess tun1 exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 multi r1 tping 100 5 1234::2 vrf v1 multi r1 tping 100 5 1.1.1.6 vrf v1 multi r1 tping 100 5 1234::6 vrf v1 multi r1 tping 100 5 1.1.1.1 vrf v1 multi r1 tping 100 5 1234::1 vrf v1 multi r1 tping 200 5 1.1.1.5 vrf v1 multi r1 tping 200 5 1234::5 vrf v1 multi r2 tping 200 5 1.1.1.2 vrf v1 multi r2 tping 200 5 1234::2 vrf v1 multi r2 tping 200 5 1.1.1.6 vrf v1 multi r2 tping 200 5 1234::6 vrf v1 multi r2 tping 200 5 1.1.1.1 vrf v1 multi r2 tping 200 5 1234::1 vrf v1 multi r2 tping 100 5 1.1.1.5 vrf v1 multi r2 tping 100 5 1234::5 vrf v1 multi freeRtr-24.11.16/cfg/conn-eth26.tst000066400000000000000000000037621471627602100165530ustar00rootroot00000000000000description monitor session over pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol erspan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit ipv4 route v1 1.1.1.1 255.255.255.252 1.1.1.6 ipv6 route v1 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc 1234::6 ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc ipv4 proxy-remote ipv6 proxy-remote exit int pweth1 vrf for v1 pseudo v1 eth1 erspan 1.1.1.1 123 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc monitor-dir rx monitor-sess pweth1 exit ! r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::2 vrf v1 r3 tping 100 5 1.1.1.6 vrf v1 r3 tping 100 5 1234::6 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 multi r1 tping 100 5 1234::2 vrf v1 multi r1 tping 100 5 1.1.1.6 vrf v1 multi r1 tping 100 5 1234::6 vrf v1 multi r1 tping 100 5 1.1.1.1 vrf v1 multi r1 tping 100 5 1234::1 vrf v1 multi r1 tping 200 5 1.1.1.5 vrf v1 multi r1 tping 200 5 1234::5 vrf v1 multi r2 tping 200 5 1.1.1.2 vrf v1 multi r2 tping 200 5 1234::2 vrf v1 multi r2 tping 200 5 1.1.1.6 vrf v1 multi r2 tping 200 5 1234::6 vrf v1 multi r2 tping 200 5 1.1.1.1 vrf v1 multi r2 tping 200 5 1234::1 vrf v1 multi r2 tping 100 5 1.1.1.5 vrf v1 multi r2 tping 100 5 1234::5 vrf v1 multi freeRtr-24.11.16/cfg/conn-eth27.tst000066400000000000000000000012041471627602100165410ustar00rootroot00000000000000description verify source with ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 verify rx ipv6 verify rx exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 verify rx ipv6 verify rx exit ! r1 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-eth28.tst000066400000000000000000000012161471627602100165450ustar00rootroot00000000000000description loose verify source with ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 verify any ipv6 verify any exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 verify any ipv6 verify any exit ! r1 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-eth29.tst000066400000000000000000000014111471627602100165430ustar00rootroot00000000000000description secure arp/nd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: no ipv4 host-learn no ipv6 host-learn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 0 5 1.1.1.2 vrf v1 r1 tping 0 5 1234::2 vrf v1 r2 tping 0 5 1.1.1.1 vrf v1 r2 tping 0 5 1234::1 vrf v1 r1 send conf t r1 send int eth1 r1 send ipv4 host-static 1.1.1.2 0000.0000.2222 r1 send ipv6 host-static 1234::2 0000.0000.2222 r1 send end r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth30.tst000066400000000000000000000010641471627602100165370ustar00rootroot00000000000000description ethernet trill-mt encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc trill-mt exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc trill-mt exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth31.tst000066400000000000000000000010671471627602100165430ustar00rootroot00000000000000description ethernet trill-fgl encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 enc trill-fgl exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 enc trill-fgl exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-eth32.tst000066400000000000000000000034561471627602100165500ustar00rootroot00000000000000description secondary networks over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 secondary-net 1.1.2.111 255.255.255.0 ipv4 secondary-net 1.1.3.112 255.255.255.0 ipv4 secondary-net 1.1.4.113 255.255.255.0 ipv6 secondary-net 1235::111 ffff:: ipv6 secondary-net 1236::112 ffff:: ipv6 secondary-net 1237::113 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $3a$ $3b$ int eth5 eth 0000.0000.2222 $4a$ $4b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int eth5 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.5 255.255.255.0 ipv6 addr 1237::5 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.2.111 vrf v1 r4 tping 100 5 1.1.3.112 vrf v1 r5 tping 100 5 1.1.4.113 vrf v1 r3 tping 100 5 1235::111 vrf v1 r4 tping 100 5 1236::112 vrf v1 r5 tping 100 5 1237::113 vrf v1 r1 output show inter eth1 full r1 output show ipv4 arp eth1 r1 output show ipv6 neigh eth1 freeRtr-24.11.16/cfg/conn-eth33.tst000066400000000000000000000034701471627602100165450ustar00rootroot00000000000000description secondary networks over dot1q vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 secondary-net 1.1.2.111 255.255.255.0 ipv4 secondary-net 1.1.3.112 255.255.255.0 ipv4 secondary-net 1.1.4.113 255.255.255.0 ipv6 secondary-net 1235::111 ffff:: ipv6 secondary-net 1236::112 ffff:: ipv6 secondary-net 1237::113 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $3a$ $3b$ int eth5 eth 0000.0000.2222 $4a$ $4b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1.123 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int eth5 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.5 255.255.255.0 ipv6 addr 1237::5 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.2.111 vrf v1 r4 tping 100 5 1.1.3.112 vrf v1 r5 tping 100 5 1.1.4.113 vrf v1 r3 tping 100 5 1235::111 vrf v1 r4 tping 100 5 1236::112 vrf v1 r5 tping 100 5 1237::113 vrf v1 r1 output show inter eth1 full r1 output show ipv4 arp eth1 r1 output show ipv6 neigh eth1 freeRtr-24.11.16/cfg/conn-etherip01.tst000066400000000000000000000025411471627602100174160ustar00rootroot00000000000000description etherip over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-etherip.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-etherip02.tst000066400000000000000000000016261471627602100174220ustar00rootroot00000000000000description etherip over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip03.tst000066400000000000000000000021431471627602100174160ustar00rootroot00000000000000description etherip over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip04.tst000066400000000000000000000020611471627602100174160ustar00rootroot00000000000000description hdlc tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip05.tst000066400000000000000000000021601471627602100174170ustar00rootroot00000000000000description ppp tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip06.tst000066400000000000000000000021171471627602100174220ustar00rootroot00000000000000description lapb tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip07.tst000066400000000000000000000024411471627602100174230ustar00rootroot00000000000000description framerelay tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip08.tst000066400000000000000000000022531471627602100174250ustar00rootroot00000000000000description atmdxi tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip09.tst000066400000000000000000000021171471627602100174250ustar00rootroot00000000000000description isdn tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip10.tst000066400000000000000000000020541471627602100174150ustar00rootroot00000000000000description sep tunneling with etherip addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 etherip 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 etherip 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip11.tst000066400000000000000000000021011471627602100174070ustar00rootroot00000000000000description ethernet tunneling with etherip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 etherip 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 etherip 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip12.tst000066400000000000000000000021151471627602100174150ustar00rootroot00000000000000description vlan tunneling with etherip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 etherip 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 etherip 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip13.tst000066400000000000000000000015731471627602100174250ustar00rootroot00000000000000description tunnel interface with etherip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod etherip vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod etherip vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-etherip14.tst000066400000000000000000000015771471627602100174320ustar00rootroot00000000000000description etherip server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol etherip exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit server etherip ei bridge 1 vrf v1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-forti.tst000066400000000000000000000021271471627602100167400ustar00rootroot00000000000000description ppp over forti addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit aaa userlist usr username c password c exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:: exit server http h host * path ./ host * forti dialer1 host * authen usr vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:: exit vpdn forti int di1 proxy p1 tar http://1.1.1.1/ user c pass c prot forti exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-forti.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-frag01.tst000066400000000000000000000021241471627602100166720ustar00rootroot00000000000000description fragmentation and reassembly addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r2 tping 100 15 1.1.1.1 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r2 tping 100 15 1234::1 vrf v1 siz 222 r1 tping 100 15 1.1.1.2 vrf v1 siz 2222 r2 tping 100 15 1.1.1.1 vrf v1 siz 2222 r1 tping 100 15 1234::2 vrf v1 siz 2222 r2 tping 100 15 1234::1 vrf v1 siz 2222 r1 tping -100 5 1.1.1.2 vrf v1 siz 2222 dont error r2 tping -100 5 1.1.1.1 vrf v1 siz 2222 dont error r1 tping -100 5 1234::2 vrf v1 siz 2222 dont error r2 tping -100 5 1234::1 vrf v1 siz 2222 dont error freeRtr-24.11.16/cfg/conn-frag02.tst000066400000000000000000000013161471627602100166750ustar00rootroot00000000000000description no fragmentation nor reassembly addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r2 tping 100 15 1.1.1.1 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r2 tping 100 15 1234::1 vrf v1 siz 222 r1 tping 0 15 1.1.1.2 vrf v1 siz 2222 r2 tping 0 15 1.1.1.1 vrf v1 siz 2222 r1 tping 0 15 1234::2 vrf v1 siz 2222 r2 tping 0 15 1234::1 vrf v1 siz 2222 freeRtr-24.11.16/cfg/conn-frag03.tst000066400000000000000000000013121471627602100166720ustar00rootroot00000000000000description precise mtu enforcement addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1500 r2 tping 100 15 1.1.1.1 vrf v1 siz 1500 r1 tping 100 15 1234::2 vrf v1 siz 1500 r2 tping 100 15 1234::1 vrf v1 siz 1500 r1 tping 0 15 1.1.1.2 vrf v1 siz 1501 r2 tping 0 15 1.1.1.1 vrf v1 siz 1501 r1 tping 0 15 1234::2 vrf v1 siz 1501 r2 tping 0 15 1234::1 vrf v1 siz 1501 freeRtr-24.11.16/cfg/conn-frag04.tst000066400000000000000000000013671471627602100167050ustar00rootroot00000000000000description pmtud in addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 pmtud-in 1400 ipv6 pmtud-in 1400 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 pmtud-in 1400 ipv6 pmtud-in 1400 exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1400 r2 tping 100 15 1.1.1.1 vrf v1 siz 1400 r1 tping 100 15 1234::2 vrf v1 siz 1400 r2 tping 100 15 1234::1 vrf v1 siz 1400 r1 tping -100 15 1.1.1.2 vrf v1 siz 1401 error r2 tping -100 15 1.1.1.1 vrf v1 siz 1401 error r1 tping -100 15 1234::2 vrf v1 siz 1401 error r2 tping -100 15 1234::1 vrf v1 siz 1401 error freeRtr-24.11.16/cfg/conn-frag05.tst000066400000000000000000000013741471627602100167040ustar00rootroot00000000000000description pmtud out addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 pmtud-out 1400 ipv6 pmtud-out 1400 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 pmtud-out 1400 ipv6 pmtud-out 1400 exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1400 r2 tping 100 15 1.1.1.1 vrf v1 siz 1400 r1 tping 100 15 1234::2 vrf v1 siz 1400 r2 tping 100 15 1234::1 vrf v1 siz 1400 r1 tping -100 15 1.1.1.2 vrf v1 siz 1401 error r2 tping -100 15 1.1.1.1 vrf v1 siz 1401 error r1 tping -100 15 1234::2 vrf v1 siz 1401 error r2 tping -100 15 1234::1 vrf v1 siz 1401 error freeRtr-24.11.16/cfg/conn-frag06.tst000066400000000000000000000026471471627602100167110ustar00rootroot00000000000000description tcp mss in addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 1.1.1.1 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 1234::1 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 30 2.2.2.0 vrf v2 siz 3000 r2 tping 100 30 2.2.2.0 vrf v3 siz 3000 freeRtr-24.11.16/cfg/conn-frag07.tst000066400000000000000000000026541471627602100167100ustar00rootroot00000000000000description tcp mss out addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 tcp-mss-out 1280 ipv6 tcp-mss-out 1280 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int ser1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 tcp-mss-out 1280 ipv6 tcp-mss-out 1280 exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 1.1.1.1 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 1234::1 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 30 2.2.2.0 vrf v2 siz 3000 r2 tping 100 30 2.2.2.0 vrf v3 siz 3000 freeRtr-24.11.16/cfg/conn-frag08.tst000066400000000000000000000143431471627602100167070ustar00rootroot00000000000000description ip ttl exceed addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.2.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1236::1 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.3.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1236::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.3.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.3.1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.3.1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 3 r1 tping 100 10 4321::2 vrf v1 sou lo0 ttl 3 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 3 r1 tping 100 10 4321::3 vrf v1 sou lo0 ttl 3 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 3 r1 tping 100 10 4321::4 vrf v1 sou lo0 ttl 3 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 3 r2 tping 100 10 4321::1 vrf v1 sou lo0 ttl 3 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 3 r2 tping 100 10 4321::3 vrf v1 sou lo0 ttl 3 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 3 r2 tping 100 10 4321::4 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::1 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::2 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::4 vrf v1 sou lo0 ttl 3 r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 3 r4 tping 100 10 4321::1 vrf v1 sou lo0 ttl 3 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 3 r4 tping 100 10 4321::2 vrf v1 sou lo0 ttl 3 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 3 r4 tping 100 10 4321::3 vrf v1 sou lo0 ttl 3 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 4321::2 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 4321::3 vrf v1 sou lo0 ttl 2 error r1 tping -100 10 2.2.2.4 vrf v1 sou lo0 ttl 2 error r1 tping -100 10 4321::4 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 4321::1 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 4321::3 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 4321::4 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 4321::1 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 4321::2 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 4321::4 vrf v1 sou lo0 ttl 2 error r4 tping -100 10 2.2.2.1 vrf v1 sou lo0 ttl 2 error r4 tping -100 10 4321::1 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 4321::2 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 4321::3 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 1 error r1 tping 100 10 4321::2 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 2.2.2.3 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 4321::3 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 2.2.2.4 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 4321::4 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 4321::1 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 4321::3 vrf v1 sou lo0 ttl 1 error r2 tping -100 10 2.2.2.4 vrf v1 sou lo0 ttl 1 error r2 tping -100 10 4321::4 vrf v1 sou lo0 ttl 1 error r3 tping -100 10 2.2.2.1 vrf v1 sou lo0 ttl 1 error r3 tping -100 10 4321::1 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 4321::2 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 4321::4 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 2.2.2.1 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 4321::1 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 2.2.2.2 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 4321::2 vrf v1 sou lo0 ttl 1 error r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 1 error r4 tping 100 10 4321::3 vrf v1 sou lo0 ttl 1 error freeRtr-24.11.16/cfg/conn-frag09.tst000066400000000000000000000163041471627602100167070ustar00rootroot00000000000000description mpls ttl exceed addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.2.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1236::1 ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.3.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1236::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.3.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.3.1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.3.1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1236::1 ! r2 tping 0 10 1.1.1.1 vrf v1 r2 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 10 1.1.2.1 vrf v1 r3 tping 0 10 1.1.3.2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 3 r1 tping 100 10 4321::2 vrf v1 sou lo0 ttl 3 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 3 r1 tping 100 10 4321::3 vrf v1 sou lo0 ttl 3 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 3 r1 tping 100 10 4321::4 vrf v1 sou lo0 ttl 3 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 3 r2 tping 100 10 4321::1 vrf v1 sou lo0 ttl 3 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 3 r2 tping 100 10 4321::3 vrf v1 sou lo0 ttl 3 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 3 r2 tping 100 10 4321::4 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::1 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::2 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::4 vrf v1 sou lo0 ttl 3 r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 3 r4 tping 100 10 4321::1 vrf v1 sou lo0 ttl 3 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 3 r4 tping 100 10 4321::2 vrf v1 sou lo0 ttl 3 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 3 r4 tping 100 10 4321::3 vrf v1 sou lo0 ttl 3 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 4321::2 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 4321::3 vrf v1 sou lo0 ttl 2 error r1 tping -100 10 2.2.2.4 vrf v1 sou lo0 ttl 2 error r1 tping -100 10 4321::4 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 4321::1 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 4321::3 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 2 error r2 tping 100 10 4321::4 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 4321::1 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 4321::2 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 2 error r3 tping 100 10 4321::4 vrf v1 sou lo0 ttl 2 error r4 tping -100 10 2.2.2.1 vrf v1 sou lo0 ttl 2 error r4 tping -100 10 4321::1 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 4321::2 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 2 error r4 tping 100 10 4321::3 vrf v1 sou lo0 ttl 2 error r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 1 error r1 tping 100 10 4321::2 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 2.2.2.3 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 4321::3 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 2.2.2.4 vrf v1 sou lo0 ttl 1 error r1 tping -100 10 4321::4 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 4321::1 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 1 error r2 tping 100 10 4321::3 vrf v1 sou lo0 ttl 1 error r2 tping -100 10 2.2.2.4 vrf v1 sou lo0 ttl 1 error r2 tping -100 10 4321::4 vrf v1 sou lo0 ttl 1 error r3 tping -100 10 2.2.2.1 vrf v1 sou lo0 ttl 1 error r3 tping -100 10 4321::1 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 4321::2 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 ttl 1 error r3 tping 100 10 4321::4 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 2.2.2.1 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 4321::1 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 2.2.2.2 vrf v1 sou lo0 ttl 1 error r4 tping -100 10 4321::2 vrf v1 sou lo0 ttl 1 error r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 ttl 1 error r4 tping 100 10 4321::3 vrf v1 sou lo0 ttl 1 error freeRtr-24.11.16/cfg/conn-frag10.tst000066400000000000000000000032051471627602100166730ustar00rootroot00000000000000description bridge tcp mss in addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 1.1.1.1 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 1234::1 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! bridge 1 exit int eth1 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit int eth2 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 30 2.2.2.0 vrf v2 siz 3000 r2 tping 100 30 2.2.2.0 vrf v3 siz 3000 freeRtr-24.11.16/cfg/conn-frag11.tst000066400000000000000000000032121471627602100166720ustar00rootroot00000000000000description bridge tcp mss out addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 1.1.1.1 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 1234::1 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! bridge 1 exit int eth1 bridge-gr 1 bridge-tcp-mss ipv4out 1280 bridge-tcp-mss ipv6out 1280 exit int eth2 bridge-gr 1 bridge-tcp-mss ipv4out 1280 bridge-tcp-mss ipv6out 1280 exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 30 2.2.2.0 vrf v2 siz 3000 r2 tping 100 30 2.2.2.0 vrf v3 siz 3000 freeRtr-24.11.16/cfg/conn-frag12.tst000066400000000000000000000017651471627602100167060ustar00rootroot00000000000000description bridge pmtud in addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! bridge 1 exit int eth1 bridge-gr 1 bridge-pmtud ipv4in 1400 3.3.3.3 bridge-pmtud ipv6in 1400 3333::3 exit int eth2 bridge-gr 1 bridge-pmtud ipv4in 1400 3.3.3.3 bridge-pmtud ipv6in 1400 3333::3 exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1400 r2 tping 100 15 1.1.1.1 vrf v1 siz 1400 r1 tping 100 15 1234::2 vrf v1 siz 1400 r2 tping 100 15 1234::1 vrf v1 siz 1400 r1 tping -100 15 1.1.1.2 vrf v1 siz 1401 error r2 tping -100 15 1.1.1.1 vrf v1 siz 1401 error r1 tping -100 15 1234::2 vrf v1 siz 1401 error r2 tping -100 15 1234::1 vrf v1 siz 1401 error freeRtr-24.11.16/cfg/conn-frag13.tst000066400000000000000000000017721471627602100167050ustar00rootroot00000000000000description bridge pmtud out addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! bridge 1 exit int eth1 bridge-gr 1 bridge-pmtud ipv4out 1400 3.3.3.3 bridge-pmtud ipv6out 1400 3333::3 exit int eth2 bridge-gr 1 bridge-pmtud ipv4out 1400 3.3.3.3 bridge-pmtud ipv6out 1400 3333::3 exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1400 r2 tping 100 15 1.1.1.1 vrf v1 siz 1400 r1 tping 100 15 1234::2 vrf v1 siz 1400 r2 tping 100 15 1234::1 vrf v1 siz 1400 r1 tping -100 15 1.1.1.2 vrf v1 siz 1401 error r2 tping -100 15 1.1.1.1 vrf v1 siz 1401 error r1 tping -100 15 1234::2 vrf v1 siz 1401 error r2 tping -100 15 1234::1 vrf v1 siz 1401 error freeRtr-24.11.16/cfg/conn-frag14.tst000066400000000000000000000015601471627602100167010ustar00rootroot00000000000000description precise mac enforcement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 enforce-mac vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 host-static 1.1.1.3 0000.0000.4321 ipv6 host-static 1234::3 0000.0000.4321 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 0 5 2.2.2.1 vrf v1 r2 tping 0 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-frag15.tst000066400000000000000000000016361471627602100167060ustar00rootroot00000000000000description bridge mac enforcement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1 enforce-mac bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 host-static 1.1.1.3 0000.0000.4321 ipv6 host-static 1234::3 0000.0000.4321 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-framerelay01.tst000066400000000000000000000014521471627602100201050ustar00rootroot00000000000000description framerelay ansi addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-framerelay.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-framerelay02.tst000066400000000000000000000011131471627602100201000ustar00rootroot00000000000000description framerelay cisco addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay mode dce framerelay lmi cisco framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay lmi cisco framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-framerelay03.tst000066400000000000000000000011101471627602100200760ustar00rootroot00000000000000description framerelay q933 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay mode dce framerelay lmi q933 framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay lmi q933 framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-framerelay04.tst000066400000000000000000000014701471627602100201100ustar00rootroot00000000000000description framerelay fragmentation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay mode dce framerelay lmi ansi framerelay dlci 123 framerelay frag 256 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay lmi ansi framerelay dlci 123 framerelay frag 256 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 siz 128 r2 tping 100 5 1.1.1.1 vrf v1 siz 128 r1 tping 100 5 1234::2 vrf v1 siz 128 r2 tping 100 5 1234::1 vrf v1 siz 128 r1 tping 100 5 1.1.1.2 vrf v1 siz 1024 r2 tping 100 5 1.1.1.1 vrf v1 siz 1024 r1 tping 100 5 1234::2 vrf v1 siz 1024 r2 tping 100 5 1234::1 vrf v1 siz 1024 freeRtr-24.11.16/cfg/conn-framerelay05.tst000066400000000000000000000014561471627602100201150ustar00rootroot00000000000000description framerelay asymmetric fragmentation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay mode dce framerelay lmi ansi framerelay dlci 123 framerelay frag 256 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frame framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 siz 128 r2 tping 100 5 1.1.1.1 vrf v1 siz 128 r1 tping 100 5 1234::2 vrf v1 siz 128 r2 tping 100 5 1234::1 vrf v1 siz 128 r1 tping 100 5 1.1.1.2 vrf v1 siz 1024 r2 tping 100 5 1.1.1.1 vrf v1 siz 1024 r1 tping 100 5 1234::2 vrf v1 siz 1024 r2 tping 100 5 1234::1 vrf v1 siz 1024 freeRtr-24.11.16/cfg/conn-framerelay06.tst000066400000000000000000000010421471627602100201050ustar00rootroot00000000000000description ppp over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frppp framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frppp framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-framerelay07.tst000066400000000000000000000010411471627602100201050ustar00rootroot00000000000000description ip over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc frrfc framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc frrfc framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve01.tst000066400000000000000000000025351471627602100172320ustar00rootroot00000000000000description geneve over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol geneve exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol geneve exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-geneve.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-geneve02.tst000066400000000000000000000016231471627602100172300ustar00rootroot00000000000000description geneve over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol geneve exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol geneve exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve03.tst000066400000000000000000000021401471627602100172240ustar00rootroot00000000000000description geneve over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol geneve exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol geneve exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve04.tst000066400000000000000000000020601471627602100172260ustar00rootroot00000000000000description hdlc tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve05.tst000066400000000000000000000021571471627602100172360ustar00rootroot00000000000000description ppp tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve06.tst000066400000000000000000000021161471627602100172320ustar00rootroot00000000000000description lapb tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve07.tst000066400000000000000000000024401471627602100172330ustar00rootroot00000000000000description framerelay tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve08.tst000066400000000000000000000022521471627602100172350ustar00rootroot00000000000000description atmdxi tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve09.tst000066400000000000000000000021161471627602100172350ustar00rootroot00000000000000description isdn tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve10.tst000066400000000000000000000020531471627602100172250ustar00rootroot00000000000000description sep tunneling with geneve addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 geneve 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 geneve 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve11.tst000066400000000000000000000021001471627602100172170ustar00rootroot00000000000000description ethernet tunneling with geneve addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 geneve 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 geneve 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve12.tst000066400000000000000000000021141471627602100172250ustar00rootroot00000000000000description vlan tunneling with geneve addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 geneve 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 geneve 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve13.tst000066400000000000000000000015721471627602100172350ustar00rootroot00000000000000description tunnel interface with geneve addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod geneve vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod geneve vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-geneve14.tst000066400000000000000000000044071471627602100172360ustar00rootroot00000000000000description multipoint ethernet over geneve addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit bridge 1 mac-learn exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit server geneve gnv bridge 1 vrf v1 vni 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit vpdn gnv bridge-gr 1 proxy p1 tar 1.1.1.1 vcid 1234 prot geneve exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit vpdn gnv bridge-gr 1 proxy p1 tar 1234:2::1 vcid 1234 prot geneve exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.0 ipv6 addr 4321::4 ffff:ffff:: exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre01.tst000066400000000000000000000020231471627602100165260ustar00rootroot00000000000000description gre over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-gre.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-gre02.tst000066400000000000000000000014701471627602100165340ustar00rootroot00000000000000description gre over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre03.tst000066400000000000000000000021101471627602100165250ustar00rootroot00000000000000description gre over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre04.tst000066400000000000000000000017411471627602100165370ustar00rootroot00000000000000description gre over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode gre tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode gre tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre05.tst000066400000000000000000000017231471627602100165400ustar00rootroot00000000000000description ppp with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre06.tst000066400000000000000000000016221471627602100165370ustar00rootroot00000000000000description hdlc with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre07.tst000066400000000000000000000016411471627602100165410ustar00rootroot00000000000000description lapb with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc lapb vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre08.tst000066400000000000000000000020151471627602100165360ustar00rootroot00000000000000description framerelay with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre09.tst000066400000000000000000000017201471627602100165410ustar00rootroot00000000000000description atmdxi with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre10.tst000066400000000000000000000016411471627602100165330ustar00rootroot00000000000000description isdn with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc isdn vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre11.tst000066400000000000000000000016171471627602100165370ustar00rootroot00000000000000description sep with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol greppp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol greppp exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gre12.tst000066400000000000000000000013321471627602100165320ustar00rootroot00000000000000description gre server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source eth1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int temp1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: shut exit server gre mi clone temp1 vrf v1 exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-gtp01.tst000066400000000000000000000024311471627602100165460ustar00rootroot00000000000000description ppp over gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ipv6 addr 4321::1 ffff:: ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server gtp gtp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv6 addr 4321::2 ffff:: ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn gtp int di1 proxy p1 tar 1.1.1.1 called inet calling 4321 dir in prot gtp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-gtp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-gtp02.tst000066400000000000000000000016161471627602100165530ustar00rootroot00000000000000description ipv4 over gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 ipv6 pool p6 2222::1111 ::1 254 int di1 enc iponly vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ipv4 pool p4 exit server gtp gtp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc raw vrf for v1 ipv4 addr 3.3.3.3 0.0.0.0 ipv6 addr 3333::3333 :: exit vpdn gtp int di1 proxy p1 tar 1.1.1.1 called inet calling 4321 dir in prot gtp exit ! r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 0 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-gtp03.tst000066400000000000000000000016051471627602100165520ustar00rootroot00000000000000description ipv6 over gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 ipv6 pool p6 2222::1111 ::1 254 int di1 enc iponly vrf for v1 ipv6 addr 2222::0 ffff:: ipv6 pool p6 exit server gtp gtp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc raw vrf for v1 ipv4 addr 3.3.3.3 0.0.0.0 ipv6 addr 3333::3333 :: exit vpdn gtp int di1 proxy p1 tar 1234::1 called inet calling 4321 dir in prot gtp exit ! r2 tping 100 60 4444::4 vrf v1 r2 tping 0 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-gtp04.tst000066400000000000000000000017011471627602100165500ustar00rootroot00000000000000description ipv4 and ipv6 over gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 ipv6 pool p6 2222::1111 ::1 254 int di1 enc iponly vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ipv4 pool p4 ipv6 addr 2222::0 ffff:: ipv6 pool p6 exit server gtp gtp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc raw vrf for v1 ipv4 addr 3.3.3.3 0.0.0.0 ipv6 addr 3333::3333 :: exit vpdn gtp int di1 proxy p1 tar 1.1.1.1 called inet calling 4321 dir in prot gtp exit ! r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-gtp05.tst000066400000000000000000000016071471627602100165560ustar00rootroot00000000000000description gtp tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:: exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 ipv6 pool p6 2222::1111 ::1 254 int di1 enc iponly vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ipv4 pool p4 ipv6 addr 2222::0 ffff:: ipv6 pool p6 exit server gtp gtp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gtp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 3.3.3.3 0.0.0.0 ipv6 addr 3333::3333 :: exit ! r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-hairpin01.tst000066400000000000000000000012001471627602100173770ustar00rootroot00000000000000description ethernet hairpin addrouter r1 ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit hairpin 1 exit int hairpin11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int hairpin12 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.1 vrf v2 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::1 vrf v2 r1 output show inter ha11 full output ../binTmp/conn-hairpin.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-hairpin02.tst000066400000000000000000000006511471627602100174110ustar00rootroot00000000000000description serial hairpin addrouter r1 ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit hairpin 1 no ether exit int hairpin11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int hairpin12 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.1 vrf v2 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::1 vrf v2 freeRtr-24.11.16/cfg/conn-hairpin03.tst000066400000000000000000000007121471627602100174100ustar00rootroot00000000000000description bundle hairpin addrouter r1 ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit hairpin 1 exit bundle 1 exit int hairpin11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int hairpin12 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.1 vrf v2 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::1 vrf v2 freeRtr-24.11.16/cfg/conn-hairpin04.tst000066400000000000000000000011031471627602100174040ustar00rootroot00000000000000description bridge hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit hairpin 1 exit bridge 1 exit int hairpin11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int hairpin12 bridge-gr 1 exit int eth1 bridge-gr 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-hdlc.tst000066400000000000000000000012621471627602100165260ustar00rootroot00000000000000description hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-hdlc.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-hsrp.tst000066400000000000000000000036671471627602100166030ustar00rootroot00000000000000description hsrp over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.254 ipv6 route v1 :: :: 1234::254 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv4 hsrp address 1.1.1.254 ipv4 hsrp priority 120 ipv4 hsrp preempt ipv6 addr 1234::2 ffff:: ipv6 hsrp address 1234::254 ipv6 hsrp priority 120 ipv6 hsrp preempt exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv4 hsrp address 1.1.1.254 ipv4 hsrp priority 110 ipv4 hsrp preempt ipv6 addr 1234::3 ffff:: ipv6 hsrp address 1234::254 ipv6 hsrp priority 110 ipv6 hsrp preempt exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r1 tping 100 5 4321::2 vrf v1 r1 tping 0 5 2.2.2.3 vrf v1 r1 tping 0 5 4321::3 vrf v1 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 0 5 4321::2 vrf v1 r1 tping 100 5 2.2.2.3 vrf v1 r1 tping 100 5 4321::3 vrf v1 freeRtr-24.11.16/cfg/conn-icmp01.tst000066400000000000000000000017711471627602100167120ustar00rootroot00000000000000description icmptunnel over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-icmp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-icmp02.tst000066400000000000000000000014351471627602100167100ustar00rootroot00000000000000description icmptunnel over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-icmp03.tst000066400000000000000000000020541471627602100167070ustar00rootroot00000000000000description icmptunnel over icmptunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode icmp tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode icmp tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-icmp04.tst000066400000000000000000000017521471627602100167140ustar00rootroot00000000000000description icmptunnel over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode icmp tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode icmp tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-infini.tst000066400000000000000000000012771471627602100170760ustar00rootroot00000000000000description infini encapsulation addrouter r1 int infini1 inf - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int infini1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int infini1 inf - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int infini1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show interface infini1 full output ../binTmp/conn-infini.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ipcomp01.tst000066400000000000000000000020371471627602100172450ustar00rootroot00000000000000description ipcomp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-ipcomp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ipcomp02.tst000066400000000000000000000015011471627602100172410ustar00rootroot00000000000000description ipcomp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipcomp03.tst000066400000000000000000000021321471627602100172430ustar00rootroot00000000000000description ipcomp over ipcomp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipcomp tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipcomp tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipcomp04.tst000066400000000000000000000017521471627602100172530ustar00rootroot00000000000000description ipcomp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipenc01.tst000066400000000000000000000020331471627602100170500ustar00rootroot00000000000000description ipenc over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-ipenc.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ipenc02.tst000066400000000000000000000014761471627602100170630ustar00rootroot00000000000000description ipenc over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipenc03.tst000066400000000000000000000021241471627602100170530ustar00rootroot00000000000000description ipenc over ipenc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipenc tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipenc tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipenc04.tst000066400000000000000000000017471471627602100170660ustar00rootroot00000000000000description ipenc over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode ipenc tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipip01.tst000066400000000000000000000020271471627602100167160ustar00rootroot00000000000000description ipip over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-ipip.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ipip02.tst000066400000000000000000000014731471627602100167230ustar00rootroot00000000000000description ipip over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipip03.tst000066400000000000000000000021161471627602100167170ustar00rootroot00000000000000description ipip over ipip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipip tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipip tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ipip04.tst000066400000000000000000000017441471627602100167260ustar00rootroot00000000000000description ipip over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode ipip tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode ipip tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-iponly.tst000066400000000000000000000012721471627602100171270ustar00rootroot00000000000000description iponly addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc iponly vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc iponly vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-iponly.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-isdn.tst000066400000000000000000000013011471627602100165430ustar00rootroot00000000000000description isdn addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-isdn.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-l2f01.tst000066400000000000000000000022021471627602100164330ustar00rootroot00000000000000description ppp over l2f addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server l2f l2f clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.1 prot l2f exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-l2f.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-l2f02.tst000066400000000000000000000017271471627602100164470ustar00rootroot00000000000000description ppp over authenticated l2f addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server l2f l2f clone di1 password tester vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.1 password tester prot l2f exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp01.tst000066400000000000000000000022561471627602100166420ustar00rootroot00000000000000description ppp over l2tp2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server l2tp2 l2tp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.1 called 1234 calling 4321 dir in prot l2tp2 exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-l2tp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-l2tp02.tst000066400000000000000000000017561471627602100166470ustar00rootroot00000000000000description ppp over l2tp3 server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server l2tp3 l2tp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.1 called 1234 calling 4321 vcid 1234 dir out pwt ppp prot l2tp3 exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp03.tst000066400000000000000000000014601471627602100166400ustar00rootroot00000000000000description ppp over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt ppp prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt ppp prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp04.tst000066400000000000000000000014651471627602100166460ustar00rootroot00000000000000description hdlc over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp05.tst000066400000000000000000000015041471627602100166410ustar00rootroot00000000000000description lapb over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp06.tst000066400000000000000000000016601471627602100166450ustar00rootroot00000000000000description framerelay over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp07.tst000066400000000000000000000015631471627602100166500ustar00rootroot00000000000000description atmdxi over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp08.tst000066400000000000000000000015041471627602100166440ustar00rootroot00000000000000description isdn over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc isdn vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp09.tst000066400000000000000000000014621471627602100166500ustar00rootroot00000000000000description sep over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp10.tst000066400000000000000000000014741471627602100166430ustar00rootroot00000000000000description port mode ppp over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt hdlc prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt hdlc prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp11.tst000066400000000000000000000026531471627602100166440ustar00rootroot00000000000000description ethernet over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt eth prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit int eth2 bridge-gr 1 exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt eth prot l2tp3 exit ! addrouter r3 int eth1 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit ! r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp12.tst000066400000000000000000000026651471627602100166500ustar00rootroot00000000000000description vlan over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit int bvi1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt vlan prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit int bvi1.111 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit int eth2 bridge-gr 1 exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt vlan prot l2tp3 exit ! addrouter r3 int eth1 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit ! r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp13.tst000066400000000000000000000044401471627602100166420ustar00rootroot00000000000000description multipoint ethernet over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit bridge 1 mac-learn exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit server l2tp3 l2tp bridge 1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.1 vcid 1234 dir out pwt eth prot l2tp3 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit vpdn l2tp bridge-gr 1 proxy p1 tar 1234:2::1 vcid 4321 dir out pwt eth prot l2tp3 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.0 ipv6 addr 4321::4 ffff:ffff:: exit ! r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp14.tst000066400000000000000000000020651471627602100166440ustar00rootroot00000000000000description hdlc tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp15.tst000066400000000000000000000021541471627602100166440ustar00rootroot00000000000000description ppp tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp16.tst000066400000000000000000000021041471627602100166400ustar00rootroot00000000000000description lapb tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp17.tst000066400000000000000000000022601471627602100166440ustar00rootroot00000000000000description framerelay tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp18.tst000066400000000000000000000021631471627602100166470ustar00rootroot00000000000000description atmdxi tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp19.tst000066400000000000000000000021041471627602100166430ustar00rootroot00000000000000description isdn tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp20.tst000066400000000000000000000020621471627602100166360ustar00rootroot00000000000000description sep tunneling with l2tp3 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc raw xconnect v1 eth1 l2tp3 1.1.1.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1.1.1.2 vrf v1 r3 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp21.tst000066400000000000000000000020751471627602100166430ustar00rootroot00000000000000description ethernet tunneling with l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ int eth2 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth2 xconnect v1 eth1 l2tp3 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 l2tp3 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1234::2 vrf v1 r3 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp22.tst000066400000000000000000000021111471627602100166330ustar00rootroot00000000000000description vlan tunneling with l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ int eth2 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth2.111 xconnect v1 eth1 l2tp3 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 l2tp3 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 60 1234::2 vrf v1 r3 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp23.tst000066400000000000000000000015671471627602100166520ustar00rootroot00000000000000description tunnel interface with l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod l2tp3 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod l2tp3 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 60 1.1.1.2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp24.tst000066400000000000000000000020021471627602100166340ustar00rootroot00000000000000description ppp over authenticated l2tp2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server l2tp2 l2tp clone di1 password tester vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.1 called 1234 calling 4321 password tester dir in prot l2tp2 exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp25.tst000066400000000000000000000020361471627602100166440ustar00rootroot00000000000000description ppp over authenticated l2tp3 server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server l2tp3 l2tp clone di1 password tester vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.1 called 1234 calling 4321 vcid 1234 dir out password tester pwt ppp prot l2tp3 exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-l2tp26.tst000066400000000000000000000015401471627602100166440ustar00rootroot00000000000000description ppp over authenticated l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.2 vcid 1234 dir out password tester pwt ppp prot l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit vpdn l2tp interface di1 proxy p1 tar 1.1.1.1 vcid 1234 dir in password tester pwt ppp prot l2tp3 exit ! r2 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-lapb01.tst000066400000000000000000000013061471627602100166720ustar00rootroot00000000000000description lapb mod8 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-lapb.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-lapb02.tst000066400000000000000000000010141471627602100166670ustar00rootroot00000000000000description lapb mod128 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce lapb modul 128 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb modul 128 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-lapb03.tst000066400000000000000000000010221471627602100166670ustar00rootroot00000000000000description lapb mod32768 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce lapb modul 32768 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb modul 32768 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-lisp01.tst000066400000000000000000000017631471627602100167320ustar00rootroot00000000000000description lisp over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-lisp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-lisp02.tst000066400000000000000000000014271471627602100167300ustar00rootroot00000000000000description lisp over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lisp03.tst000066400000000000000000000020401471627602100167210ustar00rootroot00000000000000description lisp over lisp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode lisp tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode lisp tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-lisp04.tst000066400000000000000000000017441471627602100167340ustar00rootroot00000000000000description lisp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode lisp tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode lisp tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lisp05.tst000066400000000000000000000015171471627602100167330ustar00rootroot00000000000000description lisp over asymmetric ports addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel key 1234 4321 tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode lisp tunnel key 4321 1234 tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp01.tst000066400000000000000000000025111471627602100172360ustar00rootroot00000000000000description llcudp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.2 protocol llcudp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.1 protocol llcudp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-llcudp.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-llcudp02.tst000066400000000000000000000015771471627602100172520ustar00rootroot00000000000000description llcudp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::2 protocol llcudp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::1 protocol llcudp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp03.tst000066400000000000000000000021141471627602100172370ustar00rootroot00000000000000description llcudp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.102 protocol llcudp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.101 protocol llcudp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp04.tst000066400000000000000000000020601471627602100172400ustar00rootroot00000000000000description hdlc tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp05.tst000066400000000000000000000021571471627602100172500ustar00rootroot00000000000000description ppp tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp06.tst000066400000000000000000000021161471627602100172440ustar00rootroot00000000000000description lapb tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp07.tst000066400000000000000000000024401471627602100172450ustar00rootroot00000000000000description framerelay tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp08.tst000066400000000000000000000022521471627602100172470ustar00rootroot00000000000000description atmdxi tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp09.tst000066400000000000000000000021161471627602100172470ustar00rootroot00000000000000description isdn tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp10.tst000066400000000000000000000020531471627602100172370ustar00rootroot00000000000000description sep tunneling with llcudp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 llcudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 llcudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp11.tst000066400000000000000000000021001471627602100172310ustar00rootroot00000000000000description ethernet tunneling with llcudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 llcudp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 llcudp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp12.tst000066400000000000000000000021141471627602100172370ustar00rootroot00000000000000description vlan tunneling with llcudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 llcudp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 llcudp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-llcudp13.tst000066400000000000000000000015721471627602100172470ustar00rootroot00000000000000description tunnel interface with llcudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod llcudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod llcudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp01.tst000066400000000000000000000025051471627602100171010ustar00rootroot00000000000000description lwapp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.2 protocol lwapp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.1 protocol lwapp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-lwapp.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-lwapp02.tst000066400000000000000000000015741471627602100171070ustar00rootroot00000000000000description lwapp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::2 protocol lwapp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::1 protocol lwapp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp03.tst000066400000000000000000000021111471627602100170740ustar00rootroot00000000000000description lwapp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.102 protocol lwapp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.101 protocol lwapp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp04.tst000066400000000000000000000020551471627602100171040ustar00rootroot00000000000000description hdlc tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp05.tst000066400000000000000000000021541471627602100171050ustar00rootroot00000000000000description ppp tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp06.tst000066400000000000000000000021131471627602100171010ustar00rootroot00000000000000description lapb tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp07.tst000066400000000000000000000024351471627602100171110ustar00rootroot00000000000000description framerelay tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp08.tst000066400000000000000000000022471471627602100171130ustar00rootroot00000000000000description atmdxi tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp09.tst000066400000000000000000000021131471627602100171040ustar00rootroot00000000000000description isdn tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp10.tst000066400000000000000000000020501471627602100170740ustar00rootroot00000000000000description sep tunneling with lwapp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 lwapp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 lwapp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp11.tst000066400000000000000000000020751471627602100171040ustar00rootroot00000000000000description ethernet tunneling with lwapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 lwapp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 lwapp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp12.tst000066400000000000000000000021111471627602100170740ustar00rootroot00000000000000description vlan tunneling with lwapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 lwapp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 lwapp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-lwapp13.tst000066400000000000000000000015671471627602100171130ustar00rootroot00000000000000description tunnel interface with lwapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod lwapp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod lwapp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-minenc01.tst000066400000000000000000000020371471627602100172270ustar00rootroot00000000000000description minenc over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode minenc tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode minenc tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-minenc.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-minenc02.tst000066400000000000000000000015011471627602100172230ustar00rootroot00000000000000description minenc over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode minenc tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode minenc tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-minenc03.tst000066400000000000000000000021321471627602100172250ustar00rootroot00000000000000description minenc over minenc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode minenc tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode minenc tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode minenc tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode minenc tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-minenc04.tst000066400000000000000000000017521471627602100172350ustar00rootroot00000000000000description minenc over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode minenc tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode minenc tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-modem01.tst000066400000000000000000000012331471627602100170540ustar00rootroot00000000000000description modem with alaw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec alaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 send pack modem 11 22 r2 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem02.tst000066400000000000000000000012331471627602100170550ustar00rootroot00000000000000description modem with ulaw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec ulaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 send pack modem 11 22 r2 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem03.tst000066400000000000000000000023041471627602100170560ustar00rootroot00000000000000description modem with alaw through proxy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec alaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit server sip sp vrf v1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 register 1000 target 1.1.2.1 direction out exit ! r2 tping 100 5 1.1.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.2.1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem04.tst000066400000000000000000000023041471627602100170570ustar00rootroot00000000000000description modem with ulaw through proxy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec ulaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit server sip sp vrf v1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 register 1000 target 1.1.2.1 direction out exit ! r2 tping 100 5 1.1.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.2.1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem05.tst000066400000000000000000000023601471627602100170620ustar00rootroot00000000000000description modem with alaw through peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec alaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 codec alaw match-calling .* match-called .* vrf v1 myname 77 target 1.1.2.2 port-local 5060 direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.2.1 port-local 5060 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.2.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem06.tst000066400000000000000000000023601471627602100170630ustar00rootroot00000000000000description modem with ulaw through peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec ulaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 codec ulaw match-calling .* match-called .* vrf v1 myname 77 target 1.1.2.2 port-local 5060 direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.2.1 port-local 5060 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.2.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem07.tst000066400000000000000000000023711471627602100170660ustar00rootroot00000000000000description modem with alaw and ulaw through peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec alaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 codec ulaw match-calling .* match-called .* vrf v1 myname 77 target 1.1.2.2 port-local 5060 direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 target 1.1.2.1 port-local 5060 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.2.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem08.tst000066400000000000000000000022731471627602100170700ustar00rootroot00000000000000description modem through ipv4 peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 match-calling .* match-called .* vrf v1 myname 77 target 1.1.2.2 port-local 5060 direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.2.1 port-local 5060 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.2.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem09.tst000066400000000000000000000022731471627602100170710ustar00rootroot00000000000000description modem through ipv6 peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 match-calling .* match-called .* vrf v1 myname 77 target 2345::2 port-local 5060 direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 2345::1 port-local 5060 direction out exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 2345::2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem10.tst000066400000000000000000000024321471627602100170560ustar00rootroot00000000000000description modem through udp peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 match-calling .* match-called .* vrf v1 myname 77 target 1.1.2.2 port-local 5060 protocol sip-udp direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.2.1 port-local 5060 protocol sip-udp direction out exit ! r2 tping 100 5 1.1.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.2.1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-modem11.tst000066400000000000000000000024501471627602100170570ustar00rootroot00000000000000description modem through tcp peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.1.1 direction out exit dial-peer 2 match-calling .* match-called .* vrf v1 myname 77 target 1.1.2.2 port-local 0 protocol sip-conn direction in exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: exit dial-peer 1 match-calling .* match-called .* vrf v1 myname 99 target 1.1.2.1 port-local 5060 port-remote 0 protocol sip-list direction out exit ! r2 tping 100 5 1.1.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.2.1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r3 send pack modem 11 22 r3 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/conn-mplsip01.tst000066400000000000000000000017731471627602100172700ustar00rootroot00000000000000description mplsip over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-mplsip.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-mplsip02.tst000066400000000000000000000014351471627602100172640ustar00rootroot00000000000000description mplsip over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsip03.tst000066400000000000000000000020541471627602100172630ustar00rootroot00000000000000description mplsip over mplsip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode mplsip tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode mplsip tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsip04.tst000066400000000000000000000017521471627602100172700ustar00rootroot00000000000000description mplsip over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsip05.tst000066400000000000000000000013431471627602100172650ustar00rootroot00000000000000description mplsip server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int tun1 tunnel vrf v1 tunnel mode mplsip tunnel source eth1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int temp1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: shut exit server mplsip mi clone temp1 vrf v1 exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsudp01.tst000066400000000000000000000017771471627602100174540ustar00rootroot00000000000000description mplsudp over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-mplsudp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-mplsudp02.tst000066400000000000000000000014401471627602100174400ustar00rootroot00000000000000description mplsudp over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsudp03.tst000066400000000000000000000020621471627602100174420ustar00rootroot00000000000000description mplsudp over mplsudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode mplsudp tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel mode mplsudp tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsudp04.tst000066400000000000000000000017551471627602100174530ustar00rootroot00000000000000description mplsudp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsudp05.tst000066400000000000000000000013461471627602100174500ustar00rootroot00000000000000description mplsudp server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int tun1 tunnel vrf v1 tunnel mode mplsudp tunnel source eth1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int temp1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: shut exit server mplsudp mu clone temp1 vrf v1 exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-mplsudp06.tst000066400000000000000000000015301471627602100174440ustar00rootroot00000000000000description mplsudp over asymmetric ports addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel key 1234 4321 tunnel mode mplsudp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel key 4321 1234 tunnel mode mplsudp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nos01.tst000066400000000000000000000020231471627602100165500ustar00rootroot00000000000000description nos over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode nos tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode nos tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-nos.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-nos02.tst000066400000000000000000000014701471627602100165560ustar00rootroot00000000000000description nos over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode nos tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode nos tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nos03.tst000066400000000000000000000021101471627602100165470ustar00rootroot00000000000000description nos over nos addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode nos tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode nos tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode nos tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode nos tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nos04.tst000066400000000000000000000017411471627602100165610ustar00rootroot00000000000000description nos over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode nos tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode nos tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre01.tst000066400000000000000000000025311471627602100170760ustar00rootroot00000000000000description nvgre over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol nvgre exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol nvgre exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-nvgre.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-nvgre02.tst000066400000000000000000000016201471627602100170750ustar00rootroot00000000000000description nvgre over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol nvgre exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol nvgre exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre03.tst000066400000000000000000000021351471627602100171000ustar00rootroot00000000000000description nvgre over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol nvgre exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol nvgre exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre04.tst000066400000000000000000000020531471627602100171000ustar00rootroot00000000000000description hdlc tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre05.tst000066400000000000000000000021521471627602100171010ustar00rootroot00000000000000description ppp tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre06.tst000066400000000000000000000021111471627602100170750ustar00rootroot00000000000000description lapb tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre07.tst000066400000000000000000000024331471627602100171050ustar00rootroot00000000000000description framerelay tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre08.tst000066400000000000000000000022451471627602100171070ustar00rootroot00000000000000description atmdxi tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre09.tst000066400000000000000000000021111471627602100171000ustar00rootroot00000000000000description isdn tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre10.tst000066400000000000000000000020461471627602100170770ustar00rootroot00000000000000description sep tunneling with nvgre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 nvgre 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 nvgre 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre11.tst000066400000000000000000000020731471627602100171000ustar00rootroot00000000000000description ethernet tunneling with nvgre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 nvgre 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 nvgre 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre12.tst000066400000000000000000000021071471627602100170770ustar00rootroot00000000000000description vlan tunneling with nvgre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 nvgre 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 nvgre 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-nvgre13.tst000066400000000000000000000015651471627602100171070ustar00rootroot00000000000000description tunnel interface with nvgre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod nvgre vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod nvgre vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-p4lang01.tst000066400000000000000000000024511471627602100171430ustar00rootroot00000000000000description p4lang demultiplexer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int sdn2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit server p4lang p4 interconnect eth1 export-vrf v1 export-port sdn1 1 export-port sdn2 9 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 exit int eth2 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit hair 1 exit hair 2 exit serv pktmux pm cpu eth1 data hair11 1 data hair21 9 control p1 3.3.3.1 9080 exit int hair12 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int hair22 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-p4lang02.tst000066400000000000000000000034551471627602100171510ustar00rootroot00000000000000description p4lang downlink addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 exit int eth2 exit int eth3 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server p4lang p4 interconnect eth1 export-vrf v1 export-port sdn1 1 downlink 9 eth2 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3b$ $3a$ int eth3 eth 0000.0000.2222 $4a$ $4b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 exit int eth2 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int eth3 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 exit hair 1 exit hair 2 exit serv pktmux pm cpu eth1 data hair11 1 data hair21 9 control p1 3.3.3.1 9080 control p1 3.3.3.5 9080 exit int hair12 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int hair22 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int sdn1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit server p4lang p4 interconnect eth1 export-vrf v1 export-port sdn1 9 vrf v1 exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r3 tping 100 5 3.3.3.6 vrf v1 r2 tping 100 5 3.3.3.5 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r3 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r3 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckoi01.tst000066400000000000000000000020761471627602100170660ustar00rootroot00000000000000description pckoip over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-pckoi.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-pckoi02.tst000066400000000000000000000015411471627602100170630ustar00rootroot00000000000000description pckoip over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pckoip tunnel key 123 tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pckoip tunnel key 123 tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckoi03.tst000066400000000000000000000022321471627602100170620ustar00rootroot00000000000000description pckoip over pckoip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckoi04.tst000066400000000000000000000020121471627602100170570ustar00rootroot00000000000000description pckoip over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel key 123 tunnel mode pckoip tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckot01.tst000066400000000000000000000017101471627602100170730ustar00rootroot00000000000000description ppp with packet over tcp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotcp pou clone di1 vrf v1 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar 1.1.1.1 vcid 2554 prot pckotcp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckot02.tst000066400000000000000000000025271471627602100171030ustar00rootroot00000000000000description ppp with packet over tls addrouter r1 int ser1 ser - $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotcp pou clone di1 security rsakey rsa security dsakey dsa security ecdsakey ecdsa security rsacert rsa security dsacert dsa security ecdsacert ecdsa security protocol tls vrf v1 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 security tls exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar 1.1.1.1 vcid 2554 prot pckotcp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckot03.tst000066400000000000000000000017101471627602100170750ustar00rootroot00000000000000description ppp with packet over txt addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotxt pou clone di1 vrf v1 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar 1.1.1.1 vcid 2554 prot pckotxt exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckot04.tst000066400000000000000000000025311471627602100171000ustar00rootroot00000000000000description ppp with packet over txtls addrouter r1 int ser1 ser - $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckotxt pou clone di1 security rsakey rsa security dsakey dsa security ecdsakey ecdsa security rsacert rsa security dsacert dsa security ecdsacert ecdsa security protocol tls vrf v1 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 security tls exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar 1.1.1.1 vcid 2554 prot pckotxt exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckou01.tst000066400000000000000000000022761471627602100171040ustar00rootroot00000000000000description ppp with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 protocol pckoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 protocol pckoudp exit ! r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 output show inter dia1 full output ../binTmp/conn-pckou.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-pckou02.tst000066400000000000000000000026411471627602100171010ustar00rootroot00000000000000description ethernet with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit vpdn pou bridge-gr 1 proxy p1 target 1.1.1.2 vcid 1234 protocol pckoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit int eth2 bridge-gr 1 exit vpdn pou bridge-gr 1 proxy p1 target 1.1.1.1 vcid 1234 protocol pckoudp exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit ! r3 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 4321::2 vrf v1 r3 tping 100 10 4321::1 vrf v1 r2 tping 100 10 2.2.2.3 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::3 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 2.2.2.3 vrf v1 r1 tping 100 10 4321::2 vrf v1 r1 tping 100 10 4321::3 vrf v1 freeRtr-24.11.16/cfg/conn-pckou03.tst000066400000000000000000000020731471627602100171010ustar00rootroot00000000000000description hdlc tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou04.tst000066400000000000000000000021721471627602100171020ustar00rootroot00000000000000description ppp tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou05.tst000066400000000000000000000021311471627602100170760ustar00rootroot00000000000000description lapb tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou06.tst000066400000000000000000000024531471627602100171060ustar00rootroot00000000000000description framerelay tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou07.tst000066400000000000000000000022651471627602100171100ustar00rootroot00000000000000description atmdxi tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou08.tst000066400000000000000000000021311471627602100171010ustar00rootroot00000000000000description isdn tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou09.tst000066400000000000000000000020661471627602100171110ustar00rootroot00000000000000description sep tunneling with packet over udp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 pckoudp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 pckoudp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou10.tst000066400000000000000000000021131471627602100170720ustar00rootroot00000000000000description ethernet tunneling with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 pckoudp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 pckoudp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou11.tst000066400000000000000000000021271471627602100171000ustar00rootroot00000000000000description vlan tunneling with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 pckoudp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 pckoudp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou12.tst000066400000000000000000000016051471627602100171010ustar00rootroot00000000000000description tunnel interface with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pckou13.tst000066400000000000000000000017031471627602100171010ustar00rootroot00000000000000description ppp over packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckoudp pou clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar 1.1.1.1 prot pckoudp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckou14.tst000066400000000000000000000016251471627602100171050ustar00rootroot00000000000000description ethernet over packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit server pckoudp pou bridge 1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit vpdn pou bridge-gr 1 proxy p1 tar 1.1.1.1 prot pckoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/conn-pckou15.tst000066400000000000000000000015761471627602100171130ustar00rootroot00000000000000description interworking with ethernet over packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit server pckoudp pou bridge 1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int pweth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: pseudo v1 eth1 pckoudp 1.1.1.1 2554 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/conn-pckou16.tst000066400000000000000000000017161471627602100171100ustar00rootroot00000000000000description interworking with packet over dtls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckodtls pou clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar 1.1.1.1 prot pckoudp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckou17.tst000066400000000000000000000027611471627602100171120ustar00rootroot00000000000000description ppp with packet over dtls addrouter r1 int ser1 ser - $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pckodtls pou clone di1 security rsakey rsa security dsakey dsa security ecdsakey ecdsa security rsacert rsa security dsacert dsa security ecdsacert ecdsa security protocol dtls vrf v1 exit server dns dns zone test.corp defttl 43200 rr www.test.corp ip4a 1.1.1.1 vrf v1 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 security dtls exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pou int di1 proxy p1 tar www.test.corp vcid 2554 prot pckodtls exit proxy-profile p2 vrf v1 exit client proxy p2 client name-server 1.1.1.1 ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/conn-pckou18.tst000066400000000000000000000016251471627602100171110ustar00rootroot00000000000000description packet over udp over asymmetric ports addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tunnel key 1234 4321 tun sou eth1 tun dest 1.1.1.2 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tunnel key 4321 1234 tun dest 1.1.1.1 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pim01.tst000066400000000000000000000020231471627602100165360ustar00rootroot00000000000000description pim over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pim tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pim tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-pim.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-pim02.tst000066400000000000000000000014701471627602100165440ustar00rootroot00000000000000description pim over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pim tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pim tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pim03.tst000066400000000000000000000021101471627602100165350ustar00rootroot00000000000000description pim over pim addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode pim tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode pim tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode pim tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode pim tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pim04.tst000066400000000000000000000017411471627602100165470ustar00rootroot00000000000000description pim over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode pim tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode pim tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pipe01.tst000066400000000000000000000020271471627602100167120ustar00rootroot00000000000000description pipe over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pipe tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pipe tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-pipe.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-pipe02.tst000066400000000000000000000014731471627602100167170ustar00rootroot00000000000000description pipe over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pipe tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode pipe tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pipe03.tst000066400000000000000000000021161471627602100167130ustar00rootroot00000000000000description pipe over pipe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode pipe tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode pipe tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode pipe tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode pipe tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-pipe04.tst000066400000000000000000000017441471627602100167220ustar00rootroot00000000000000description pipe over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode pipe tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode pipe tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp01.tst000066400000000000000000000014001471627602100165460ustar00rootroot00000000000000description ppp encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-ppp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-ppp02.tst000066400000000000000000000012051471627602100165520ustar00rootroot00000000000000description ppp with local authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp user c ppp pass c vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp auth usr vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp03.tst000066400000000000000000000020251471627602100165540ustar00rootroot00000000000000description ppp with radius authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp user c ppp pass c vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth - $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit client proxy p1 aaa radius usr secret c server 2.2.2.2 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp auth usr vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit aaa userlist usr username c password c exit server radius rad authen usr secret c logg vrf v1 exit ! r2 tping 100 15 2.2.2.2 vrf v1 r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp04.tst000066400000000000000000000020661471627602100165620ustar00rootroot00000000000000description ppp with tacacs authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp user c ppp pass c vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth - $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit client proxy p1 aaa tacacs usr secret c server 2.2.2.2 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp refuse chap ppp refuse eap ppp auth usr vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit aaa userlist usr username c password c exit server tacacs rad authen usr secret c logg vrf v1 exit ! r2 tping 100 15 2.2.2.2 vrf v1 r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp05.tst000066400000000000000000000012541471627602100165610ustar00rootroot00000000000000description ppp with pap authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp user c ppp pass c ppp refuseauth eap vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp auth usr ppp refuseauth chap vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp06.tst000066400000000000000000000012541471627602100165620ustar00rootroot00000000000000description ppp with chap authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp user c ppp pass c ppp refuseauth eap vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp auth usr ppp refuseauth pap vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp07.tst000066400000000000000000000012541471627602100165630ustar00rootroot00000000000000description ppp with eap authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp user c ppp pass c ppp refuseauth chap vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp auth usr ppp refuseauth pap vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp08.tst000066400000000000000000000024171471627602100165660ustar00rootroot00000000000000description ppp routes with local authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip4cp local 0.0.0.0 ppp ip6cp open ppp user c ppp pass c vrf for v1 ipv4 addr dynamic dynamic ipv4 gateway-prefix p4 ipv6 addr dynamic dynamic ipv6 gateway-prefix p6 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit aaa userlist usr username c password c username c ipv4addr 1.1.1.1 username c ipv4route 2.2.2.1/32 dist 123 username c ipv6addr 1234::1 username c ipv6ifid 1234-1234-1234-1234 username c ipv6route 4321::1/128 dist 222 exit int ser1 enc ppp ppp ip4cp local 1.1.1.2 ppp ip6cp open ppp auth usr vrf for v1 ipv4 addr dynamic dynamic ipv6 addr dynamic dynamic exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 2.2.2.2 vrf v1 r2 tping 100 15 2.2.2.1 vrf v1 r1 tping 100 15 4321::2 vrf v1 sou lo1 r2 tping 100 15 4321::1 vrf v1 sou lo1 freeRtr-24.11.16/cfg/conn-ppp09.tst000066400000000000000000000032371471627602100165700ustar00rootroot00000000000000description ppp routes with radius authentication addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip4cp local 0.0.0.0 ppp ip6cp open ppp user c ppp pass c vrf for v1 ipv4 addr dynamic dynamic ipv4 gateway-prefix p4 ipv6 addr dynamic dynamic ipv6 gateway-prefix p6 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 exit client proxy p1 aaa radius usr secret c server 3.3.3.3 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int ser1 enc ppp ppp ip4cp local 1.1.1.2 ppp ip6cp open ppp auth usr vrf for v1 ipv4 addr dynamic dynamic ipv6 addr dynamic dynamic exit ! addrouter r3 int eth1 eth - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit aaa userlist usr username c password c username c ipv4addr 1.1.1.1 username c ipv4route 2.2.2.1/32 dist 123 username c ipv6addr 1234::1 username c ipv6ifid 1234-1234-1234-1234 username c ipv6route 4321::1/128 dist 222 exit server radius rad authen usr secret c logg vrf v1 exit ! r2 tping 100 15 3.3.3.3 vrf v1 r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 2.2.2.2 vrf v1 r2 tping 100 15 2.2.2.1 vrf v1 r1 tping 100 15 4321::2 vrf v1 sou lo1 r2 tping 100 15 4321::1 vrf v1 sou lo1 freeRtr-24.11.16/cfg/conn-ppp10.tst000066400000000000000000000012461471627602100165560ustar00rootroot00000000000000description ppp with short multilink fragmentation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 short ppp frag 256 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 short ppp frag 256 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1111 r2 tping 100 15 1.1.1.1 vrf v1 siz 1111 r1 tping 100 15 1234::2 vrf v1 siz 1111 r2 tping 100 15 1234::1 vrf v1 siz 1111 freeRtr-24.11.16/cfg/conn-ppp11.tst000066400000000000000000000012431471627602100165540ustar00rootroot00000000000000description ppp with long multilink fragmentation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 long ppp frag 256 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 long ppp frag 256 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1111 r2 tping 100 15 1.1.1.1 vrf v1 siz 1111 r1 tping 100 15 1234::2 vrf v1 siz 1111 r2 tping 100 15 1234::1 vrf v1 siz 1111 freeRtr-24.11.16/cfg/conn-ppp12.tst000066400000000000000000000012521471627602100165550ustar00rootroot00000000000000description ppp with asymmetric multilink fragmentation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 short ppp frag 256 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 long ppp frag 256 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1111 r2 tping 100 15 1.1.1.1 vrf v1 siz 1111 r1 tping 100 15 1234::2 vrf v1 siz 1111 r2 tping 100 15 1234::1 vrf v1 siz 1111 freeRtr-24.11.16/cfg/conn-ppp13.tst000066400000000000000000000011701471627602100165550ustar00rootroot00000000000000description ppp with asymmetric multilink addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close ppp multi 1500 long ppp frag 256 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 1111 r2 tping 100 15 1.1.1.1 vrf v1 siz 1111 r1 tping 100 15 1234::2 vrf v1 siz 1111 r2 tping 100 15 1234::1 vrf v1 siz 1111 freeRtr-24.11.16/cfg/conn-ppp14.tst000066400000000000000000000015401471627602100165570ustar00rootroot00000000000000description ppp address propagation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp auth usr ppp ip4cp local 1.1.1.1 ppp ip4cp peer 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0001 ppp ip6cp peer 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp user c ppp pass c ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 slaac ena exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp15.tst000066400000000000000000000031031471627602100165550ustar00rootroot00000000000000description ppp labeled gateway addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 1234:: ffff:: all 1234:: ffff:: all permit all any all any all exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp auth usr ppp ip4cp local 1.1.1.1 ppp ip4cp peer 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0001 ppp ip6cp peer 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:: ipv4 gateway-label expli ipv6 gateway-label expli ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 1234:: ffff:: all 1234:: ffff:: all permit all any all any all exit prefix-list p6 permit 1234::1/128 exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp user c ppp pass c ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 gateway-label expli ipv6 gateway-label expli ipv6 slaac ena ipv6 gateway-prefix p6 ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp16.tst000066400000000000000000000024131471627602100165610ustar00rootroot00000000000000description ppp no remote address addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp auth usr ppp ip4cp local 1.1.1.1 ppp ip4cp peer 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0001 ppp ip6cp peer 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 2.2.2.1/32 exit prefix-list p6 permit 2222::1/128 exit int lo1 vrf for v1 ipv4 addr 1.1.1.0 255.255.255.252 ipv6 addr 1234::0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00 exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp user c ppp pass c ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 slaac ena ipv4 gateway-prefix p4 ipv6 gateway-prefix p6 no ipv4 gateway-remote no ipv6 gateway-remote exit ! r1 tping 100 15 1.1.1.2 vrf v1 sou lo0 r1 tping 100 15 1234::2 vrf v1 sou lo0 r2 tping 0 15 1.1.1.1 vrf v1 r2 tping 0 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-ppp17.tst000066400000000000000000000024721471627602100165670ustar00rootroot00000000000000description ppp no local address addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit aaa userlist usr username c password c exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp auth usr ppp ip4cp local 1.1.1.1 ppp ip4cp peer 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0001 ppp ip6cp peer 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:: no ipv4 gateway-local no ipv6 gateway-local no ipv4 gateway-connect no ipv6 gateway-connect exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 2.2.2.1/32 exit prefix-list p6 permit 2222::1/128 exit int lo1 vrf for v1 ipv4 addr 1.1.1.0 255.255.255.252 ipv6 addr 1234::0 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00 exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp user c ppp pass c ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 slaac ena ipv4 gateway-prefix p4 ipv6 gateway-prefix p6 exit ! r1 tping 100 15 1.1.1.2 vrf v1 sou lo0 r1 tping 100 15 1234::2 vrf v1 sou lo0 r2 tping 0 15 1.1.1.1 vrf v1 r2 tping 0 15 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-pppoe01.tst000066400000000000000000000016701471627602100171030ustar00rootroot00000000000000description pppoe over ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 p2poe server di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 p2poe client di1 exit ! r2 tping 100 30 2.2.2.0 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-pppoe.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-pppoe02.tst000066400000000000000000000014571471627602100171070ustar00rootroot00000000000000description pppoe over bridge encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 bridge-gr 1 exit int bvi1 p2poe server di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 bridge-gr 1 exit int bvi1 p2poe client di1 exit ! r2 tping 100 30 2.2.2.0 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/conn-pppoe03.tst000066400000000000000000000016621471627602100171060ustar00rootroot00000000000000description ppp relay over pppoe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int eth1 p2poe client di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser - $2a$ $2b$ ! int eth1 p2poe relay ser1 exit int ser1 enc raw exit ! addrouter r3 int ser1 ser - $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 exit int eth1 p2poe relay di1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 exit int eth1 p2poe client di1 exit ! r1 tping 100 30 1.1.1.2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1.1.1.6 vrf v1 r4 tping 100 30 1.1.1.5 vrf v1 freeRtr-24.11.16/cfg/conn-pptp.tst000066400000000000000000000022341471627602100165770ustar00rootroot00000000000000description ppp over pptp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server pptp pptp clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn pptp int di1 proxy p1 tar 1.1.1.1 called 1234 dir in prot pptp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-pptp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-raw.tst000066400000000000000000000012701471627602100164040ustar00rootroot00000000000000description raw encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc raw vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc raw vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-raw.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-redun.tst000066400000000000000000000053571471627602100167420ustar00rootroot00000000000000description process redundancy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.0 255.255.255.0 1.1.1.3 ipv6 route v1 4321:: ffff:: 1234::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ int eth4 eth 0000.0000.3333 $4a$ $4b$ int eth31 eth 0000.0000.3333 $5a$ $5b$ int eth32 eth 0000.0000.3333 $6a$ $6b$ int eth41 eth 0000.0000.3333 $7a$ $7b$ int eth42 eth 0000.0000.3333 $8a$ $8b$ int eth51 eth 0000.0000.3333 $9a$ $9b$ int eth52 eth 0000.0000.3333 $10a$ $10b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 34 mac-learn block-unicast exit bridge 35 mac-learn block-unicast exit bridge 45 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 shut exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int eth31 bridge-gr 34 shut exit int eth41 bridge-gr 34 exit int eth32 bridge-gr 35 shut exit int eth51 bridge-gr 35 exit int eth42 bridge-gr 45 exit int eth52 bridge-gr 45 exit ! addrouter r3 nowrite int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth8 red eth 0000.0000.3333 $5b$ $5a$ int eth9 red eth 0000.0000.3333 $6b$ $6a$ prio 20 ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 nowrite int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth8 red eth 0000.0000.4444 $7b$ $7a$ int eth9 red eth 0000.0000.4444 $8b$ $8a$ prio 10 ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.0 ipv6 addr 4321::4 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r5 nowrite int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth8 red eth 0000.0000.5555 $9b$ $9a$ int eth9 red eth 0000.0000.5555 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.0 ipv6 addr 4321::5 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! r1 tping 100 10 1.1.1.3 vrf v1 multi r1 tping 100 10 1234::3 vrf v1 multi r1 tping 100 10 2.2.2.4 vrf v1 r1 tping 100 10 4321::4 vrf v1 r2 send conf t r2 send int eth2 r2 send no shut r2 send exit r2 send int eth31 r2 send no shut r2 send exit r2 send int eth32 r2 send no shut r2 send end r1 tping 100 10 1.1.1.3 vrf v1 multi r1 tping 100 10 1234::3 vrf v1 multi r1 tping 100 10 2.2.2.3 vrf v1 r1 tping 100 10 4321::3 vrf v1 r3 send relo forc r1 tping 100 10 1.1.1.3 vrf v1 multi r1 tping 100 10 1234::3 vrf v1 multi r1 tping 100 10 2.2.2.5 vrf v1 r1 tping 100 10 4321::5 vrf v1 freeRtr-24.11.16/cfg/conn-sep.tst000066400000000000000000000012561471627602100164060ustar00rootroot00000000000000description sep addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 output show inter ser1 full output ../binTmp/conn-sep.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-slaac.tst000066400000000000000000000007741471627602100167060ustar00rootroot00000000000000description slaac addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv6 addr 3333::3 ffff:: ipv6 slaac ena ipv6 gateway-prefix p6 exit ! r2 tping 100 20 1234::1 vrf v1 r2 tping 100 5 4444::4 vrf v1 freeRtr-24.11.16/cfg/conn-sreth01.tst000066400000000000000000000025311471627602100171020ustar00rootroot00000000000000description sreth over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-sreth.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-sreth02.tst000066400000000000000000000016201471627602100171010ustar00rootroot00000000000000description sreth over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth03.tst000066400000000000000000000021351471627602100171040ustar00rootroot00000000000000description sreth over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth04.tst000066400000000000000000000020531471627602100171040ustar00rootroot00000000000000description hdlc tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth05.tst000066400000000000000000000021521471627602100171050ustar00rootroot00000000000000description ppp tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth06.tst000066400000000000000000000021111471627602100171010ustar00rootroot00000000000000description lapb tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth07.tst000066400000000000000000000024331471627602100171110ustar00rootroot00000000000000description framerelay tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth08.tst000066400000000000000000000022451471627602100171130ustar00rootroot00000000000000description atmdxi tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth09.tst000066400000000000000000000021111471627602100171040ustar00rootroot00000000000000description isdn tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth10.tst000066400000000000000000000020461471627602100171030ustar00rootroot00000000000000description sep tunneling with sreth addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 sreth 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 sreth 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth11.tst000066400000000000000000000020731471627602100171040ustar00rootroot00000000000000description ethernet tunneling with sreth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 sreth 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 sreth 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth12.tst000066400000000000000000000021071471627602100171030ustar00rootroot00000000000000description vlan tunneling with sreth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 sreth 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 sreth 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-sreth13.tst000066400000000000000000000015651471627602100171130ustar00rootroot00000000000000description tunnel interface with sreth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod sreth vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod sreth vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-ssh.tst000066400000000000000000000027301471627602100164120ustar00rootroot00000000000000description ppp over ssh addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 server tel tel vrf v1 security rsakey rsa security dsakey dsa security ecdsakey ecdsa security protocol ssh security authen usr exec int di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit chat-script login send ppp binsend 13 exit vpdn tel interface di1 proxy p1 user u pass p script login target 3.3.3.1 vcid 23 protocol ssh exit ! r2 tping 100 40 2.2.2.0 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-ssh.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-sstp.tst000066400000000000000000000022461471627602100166100ustar00rootroot00000000000000description ppp over sstp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server http h host * path ./ host * sstp dialer1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn sstp int di1 proxy p1 tar http://1.1.1.1/ prot sstp exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-sstp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-stp.tst000066400000000000000000000022541471627602100164240ustar00rootroot00000000000000description spantree over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 stp-mode ieee mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 stp-mode ieee mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-stp.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-stun.tst000066400000000000000000000022341471627602100166050ustar00rootroot00000000000000description ppp over stun addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit server stun stun clone di1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit prefix-list p1 permit 0.0.0.0/0 exit int di1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn stun int di1 proxy p1 tar 1.1.1.1 called 1234 dir in prot stun exit ! r2 tping 100 60 2.2.2.0 vrf v1 r2 tping 100 5 4.4.4.4 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-stun.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-tcp.tst000066400000000000000000000025221471627602100164020ustar00rootroot00000000000000description ppp over tcp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit aaa userlist usr username c password c username c privilege 14 exit server tel tel vrf v1 login authen usr exec int di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit chat-script login recv 5000 .*ser send c binsend 13 recv 5000 .*ass send c binsend 13 send ppp binsend 13 exit vpdn tel interface di1 proxy p1 script login target 3.3.3.1 vcid 23 protocol tcp exit ! r2 tping 100 30 2.2.2.0 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-tcp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-tdmou01.tst000066400000000000000000000017651471627602100171150ustar00rootroot00000000000000description tdmoudp with middle channels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 5009 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 5009 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tdmou02.tst000066400000000000000000000024041471627602100171050ustar00rootroot00000000000000description ppp with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 r1 output show inter dia1 full output ../binTmp/conn-tdmoudp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-tdmou03.tst000066400000000000000000000017441471627602100171140ustar00rootroot00000000000000description hdlc with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tdmou04.tst000066400000000000000000000017631471627602100171160ustar00rootroot00000000000000description lapb with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc lapb vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tdmou05.tst000066400000000000000000000021371471627602100171130ustar00rootroot00000000000000description framerelay with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tdmou06.tst000066400000000000000000000020421471627602100171070ustar00rootroot00000000000000description atmdxi with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tdmou07.tst000066400000000000000000000017631471627602100171210ustar00rootroot00000000000000description isdn with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc isdn vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tdmou08.tst000066400000000000000000000017411471627602100171160ustar00rootroot00000000000000description sep with tdmoudp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.2 vcid 1234 mtu 7 protocol tdmoudp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int di1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit vpdn pou interface dialer1 proxy p1 target 1.1.1.1 vcid 1234 mtu 7 protocol tdmoudp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 r2 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-telnet.tst000066400000000000000000000025651471627602100171160ustar00rootroot00000000000000description ppp over telnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit aaa userlist usr username c password c username c privilege 14 exit server tel tel vrf v1 login authen usr security protocol telnet exec int di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit chat-script login recv 5000 .*ser send c binsend 13 recv 5000 .*ass send c binsend 13 send ppp binsend 13 exit vpdn tel interface di1 proxy p1 script login target 3.3.3.1 vcid 23 protocol telnet exit ! r2 tping 100 30 2.2.2.0 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-telnet.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-tls.tst000066400000000000000000000033231471627602100164160ustar00rootroot00000000000000description ppp over tls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit aaa userlist usr username c password c username c privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa server tel tel vrf v1 security rsakey rsa security dsakey dsa security ecdsakey ecdsa security rsacert rsa security dsacert dsa security ecdsacert ecdsa security protocol tls login authen usr exec int di1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp vrf for v1 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit chat-script login recv 5000 .*ser send c binsend 13 recv 5000 .*ass send c binsend 13 send ppp binsend 13 exit vpdn tel interface di1 proxy p1 script login target 3.3.3.1 vcid 23 protocol tls exit ! r2 tping 100 40 2.2.2.0 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 output show inter dia1 full output ../binTmp/conn-tls.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-tmux01.tst000066400000000000000000000020271471627602100167520ustar00rootroot00000000000000description tmux over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-tmux.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-tmux02.tst000066400000000000000000000014731471627602100167570ustar00rootroot00000000000000description tmux over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tmux03.tst000066400000000000000000000021161471627602100167530ustar00rootroot00000000000000description tmux over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode tmux tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode tmux tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tmux04.tst000066400000000000000000000017441471627602100167620ustar00rootroot00000000000000description tmux over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode tmux tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode tmux tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp01.tst000066400000000000000000000025011471627602100167520ustar00rootroot00000000000000description tzsp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.2 protocol tzsp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.1 protocol tzsp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-tzsp.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-tzsp02.tst000066400000000000000000000015711471627602100167610ustar00rootroot00000000000000description tzsp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::2 protocol tzsp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::1 protocol tzsp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp03.tst000066400000000000000000000021061471627602100167550ustar00rootroot00000000000000description tzsp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.102 protocol tzsp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.101 protocol tzsp exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp04.tst000066400000000000000000000020521471627602100167560ustar00rootroot00000000000000description hdlc tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp05.tst000066400000000000000000000021511471627602100167570ustar00rootroot00000000000000description ppp tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp06.tst000066400000000000000000000021101471627602100167530ustar00rootroot00000000000000description lapb tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp07.tst000066400000000000000000000024321471627602100167630ustar00rootroot00000000000000description framerelay tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp08.tst000066400000000000000000000022441471627602100167650ustar00rootroot00000000000000description atmdxi tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp09.tst000066400000000000000000000021101471627602100167560ustar00rootroot00000000000000description isdn tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp10.tst000066400000000000000000000020451471627602100167550ustar00rootroot00000000000000description sep tunneling with tzsp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 tzsp 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 tzsp 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp11.tst000066400000000000000000000020721471627602100167560ustar00rootroot00000000000000description ethernet tunneling with tzsp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 tzsp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 tzsp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp12.tst000066400000000000000000000021061471627602100167550ustar00rootroot00000000000000description vlan tunneling with tzsp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 tzsp 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 tzsp 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-tzsp13.tst000066400000000000000000000015641471627602100167650ustar00rootroot00000000000000description tunnel interface with tzsp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod tzsp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod tzsp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-udpgre01.tst000066400000000000000000000020371471627602100172440ustar00rootroot00000000000000description udpgre over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/conn-udpgre.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/conn-udpgre02.tst000066400000000000000000000015011471627602100172400ustar00rootroot00000000000000description udpgre over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-udpgre03.tst000066400000000000000000000021321471627602100172420ustar00rootroot00000000000000description udpgre over udpgre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv6 addr 1234::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode udpgre tunnel source tun1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv6 addr 1234::2 ffff:: exit int tun2 tunnel vrf v1 tunnel mode udpgre tunnel source tun1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-udpgre04.tst000066400000000000000000000017521471627602100172520ustar00rootroot00000000000000description udpgre over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 int tun1 tunnel vrf v1 tunnel mode udpgre tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti01.tst000066400000000000000000000025211471627602100165550ustar00rootroot00000000000000description uti over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol uti exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol uti exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-uti.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-uti02.tst000066400000000000000000000016121471627602100165560ustar00rootroot00000000000000description uti over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol uti exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol uti exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti03.tst000066400000000000000000000021271471627602100165610ustar00rootroot00000000000000description uti over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol uti exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn er bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol uti exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti04.tst000066400000000000000000000020451471627602100165610ustar00rootroot00000000000000description hdlc tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti05.tst000066400000000000000000000021441471627602100165620ustar00rootroot00000000000000description ppp tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti06.tst000066400000000000000000000021031471627602100165560ustar00rootroot00000000000000description lapb tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti07.tst000066400000000000000000000024251471627602100165660ustar00rootroot00000000000000description framerelay tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti08.tst000066400000000000000000000022371471627602100165700ustar00rootroot00000000000000description atmdxi tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti09.tst000066400000000000000000000021031471627602100165610ustar00rootroot00000000000000description isdn tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti10.tst000066400000000000000000000020401471627602100165510ustar00rootroot00000000000000description sep tunneling with uti addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 uti 1.1.1.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 uti 1.1.1.1 123 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti11.tst000066400000000000000000000020651471627602100165610ustar00rootroot00000000000000description ethernet tunneling with uti addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 uti 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 uti 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti12.tst000066400000000000000000000021011471627602100165510ustar00rootroot00000000000000description vlan tunneling with uti addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 uti 1234::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 uti 1234::1 123 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-uti13.tst000066400000000000000000000015571471627602100165700ustar00rootroot00000000000000description tunnel interface with uti addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod uti vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod uti vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vdc01.tst000066400000000000000000000013741471627602100165350ustar00rootroot00000000000000description vdc parent interface exit addrouter r1 port 61000 62000 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vdc def a int eth1 exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.255 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 9.9.9.9 vrf v1 r1 send att vdc a r1 send conf t r1 send vrf def v1 r1 send rd 1:1 r1 send exit r1 send int eth1 r1 send vrf for v1 r1 send ipv4 addr 1.1.1.1 255.255.255.0 r1 send ipv6 addr 1234::1 ffff:: r1 send exit r1 send end r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-vdc02.tst000066400000000000000000000011071471627602100165300ustar00rootroot00000000000000description vdc parent connect exit addrouter r1 port 61000 62000 ! vdc def a loc eth1 exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 9.9.9.9 vrf v1 r1 send att vdc a r1 send conf t r1 send vrf def v1 r1 send rd 1:1 r1 send exit r1 send int eth1 r1 send vrf for v1 r1 send ipv4 addr 1.1.1.1 255.255.255.0 r1 send ipv6 addr 1234::1 ffff:: r1 send exit r1 send end r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/conn-vdc03.tst000066400000000000000000000015421471627602100165340ustar00rootroot00000000000000description vdc peer connect exit addrouter r1 port 61000 62000 ! vdc def a exit vdc def b conn eth1 a exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.255 exit ! r1 tping 100 5 9.9.9.9 vrf v1 r1 send att vdc a r1 send conf t r1 send vrf def v1 r1 send rd 1:1 r1 send exit r1 send int eth1 r1 send vrf for v1 r1 send ipv4 addr 1.1.1.1 255.255.255.0 r1 send ipv6 addr 1234::1 ffff:: r1 send exit r1 send end r1 tping 100 5 1.1.1.1 vrf v1 sleep 1000 r1 char 3 sleep 1000 r1 char 24 sleep 1000 r1 read closed r1 tping 100 5 9.9.9.9 vrf v1 r1 send att vdc b r1 send conf t r1 send vrf def v1 r1 send rd 1:1 r1 send exit r1 send int eth1 r1 send vrf for v1 r1 send ipv4 addr 1.1.1.2 255.255.255.0 r1 send ipv6 addr 1234::2 ffff:: r1 send exit r1 send end r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/conn-vrrp.tst000066400000000000000000000035531471627602100166120ustar00rootroot00000000000000description vrrp over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.254 ipv6 route v1 :: :: 1234::254 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv4 vrrp address 1.1.1.254 ipv4 vrrp priority 120 ipv6 addr 1234::2 ffff:: ipv6 vrrp address 1234::254 ipv6 vrrp priority 120 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv4 vrrp address 1.1.1.254 ipv4 vrrp priority 110 ipv6 addr 1234::3 ffff:: ipv6 vrrp address 1234::254 ipv6 vrrp priority 110 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1.1.1.3 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1234::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r1 tping 100 5 4321::2 vrf v1 r1 tping 0 5 2.2.2.3 vrf v1 r1 tping 0 5 4321::3 vrf v1 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 0 5 4321::2 vrf v1 r1 tping 100 5 2.2.2.3 vrf v1 r1 tping 100 5 4321::3 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan01.tst000066400000000000000000000025311471627602100171050ustar00rootroot00000000000000description vxlan over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol vxlan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 mac-learn exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol vxlan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r2 output show bridge 1 r2 output show inter bvi1 full r2 output show ipv4 arp bvi1 r2 output show ipv6 neigh bvi1 output ../binTmp/conn-vxlan.html here is the bridge:
show:0
here is the interface:
show:1
here is the arp:
show:2
here are the neighbors:
show:3
! freeRtr-24.11.16/cfg/conn-vxlan02.tst000066400000000000000000000016201471627602100171040ustar00rootroot00000000000000description vxlan over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol vxlan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol vxlan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan03.tst000066400000000000000000000021351471627602100171070ustar00rootroot00000000000000description vxlan over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.102 vcid 123 protocol vxlan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 bridge 1 exit vpdn vx bridge-group 1 proxy p1 target 1.1.1.101 vcid 123 protocol vxlan exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan04.tst000066400000000000000000000020551471627602100171110ustar00rootroot00000000000000description hdlc tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc hdlc xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc hdlc xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan05.tst000066400000000000000000000021541471627602100171120ustar00rootroot00000000000000description ppp tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc ppp xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc ppp xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan06.tst000066400000000000000000000021131471627602100171060ustar00rootroot00000000000000description lapb tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc lapb xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc lapb lapb mode dce xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan07.tst000066400000000000000000000024351471627602100171160ustar00rootroot00000000000000description framerelay tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan08.tst000066400000000000000000000022471471627602100171200ustar00rootroot00000000000000description atmdxi tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan09.tst000066400000000000000000000021131471627602100171110ustar00rootroot00000000000000description isdn tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc isdn xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc isdn xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan10.tst000066400000000000000000000020501471627602100171010ustar00rootroot00000000000000description sep tunneling with vxlan addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser1 enc sep xconnect v1 eth1 vxlan 1.1.1.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int ser1 enc sep xconnect v1 eth1 vxlan 1.1.1.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan11.tst000066400000000000000000000020751471627602100171110ustar00rootroot00000000000000description ethernet tunneling with vxlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 xconnect v1 eth2 vxlan 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 xconnect v1 eth1 vxlan 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan12.tst000066400000000000000000000021111471627602100171010ustar00rootroot00000000000000description vlan tunneling with vxlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1.111 xconnect v1 eth2 vxlan 1234::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int eth2.222 xconnect v1 eth1 vxlan 1234::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1234::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r4 tping 100 10 2.2.2.1 vrf v1 r4 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan13.tst000066400000000000000000000015671471627602100171200ustar00rootroot00000000000000description tunnel interface with vxlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod vxlan vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod vxlan vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-vxlan14.tst000066400000000000000000000044041471627602100171120ustar00rootroot00000000000000description multipoint ethernet over vxlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit bridge 1 mac-learn exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit server vxlan vxl bridge 1 vrf v1 inst 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit vpdn vxl bridge-gr 1 proxy p1 tar 1.1.1.1 vcid 1234 prot vxlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit vpdn vxl bridge-gr 1 proxy p1 tar 1234:2::1 vcid 1234 prot vxlan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.0 ipv6 addr 4321::4 ffff:ffff:: exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn01.tst000066400000000000000000000011651471627602100171040ustar00rootroot00000000000000description cross connect hdlc interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc hdlc connect ser2 exit int ser2 enc hdlc exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn02.tst000066400000000000000000000012641471627602100171050ustar00rootroot00000000000000description cross connect ppp interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc ppp connect ser2 exit int ser2 enc ppp exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn03.tst000066400000000000000000000012231471627602100171010ustar00rootroot00000000000000description cross connect lapb interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc lapb lapb mode dce connect ser2 exit int ser2 enc lapb lapb mode dce exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn04.tst000066400000000000000000000015451471627602100171110ustar00rootroot00000000000000description cross connect framerelay interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 framerelay mode dce connect ser2 exit int ser2 enc framerelay framerelay lmi ansi framerelay dlci 123 framerelay mode dce exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn05.tst000066400000000000000000000013571471627602100171130ustar00rootroot00000000000000description cross connect atmdxi interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 connect ser2 exit int ser2 enc atmdxi atmdxi vpi 1 atmdxi vci 2 exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn06.tst000066400000000000000000000012231471627602100171040ustar00rootroot00000000000000description cross connect isdn interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc isdn connect ser2 exit int ser2 enc isdn exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn07.tst000066400000000000000000000011601471627602100171050ustar00rootroot00000000000000description cross connect sep interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! int ser1 enc sep connect ser2 exit int ser2 enc sep exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn08.tst000066400000000000000000000011701471627602100171070ustar00rootroot00000000000000description cross connect ethernet interfaces addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 connect eth2 exit int eth2 exit ! addrouter r3 int eth1 eth - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn09.tst000066400000000000000000000012061471627602100171100ustar00rootroot00000000000000description cross connect vlan subinterfaces addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1.11 exit int eth2.22 connect eth1.11 exit ! addrouter r3 int eth1 eth - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.22 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn10.tst000066400000000000000000000011071471627602100171000ustar00rootroot00000000000000description cross connect vlan subinterfaces of same interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit int eth1.22 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! int eth1.11 exit int eth1.22 connect eth1.11 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r1 tping 100 30 2.2.2.1 vrf v2 r1 tping 100 30 4321::1 vrf v2 freeRtr-24.11.16/cfg/conn-xconn11.tst000066400000000000000000000024001471627602100170760ustar00rootroot00000000000000description cross connect tunnel interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ser1 tunnel destination 1.1.1.1 exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source ser2 tunnel destination 1.1.2.1 connect tun1 exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ser1 tunnel destination 1.1.2.2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xconn12.tst000066400000000000000000000024141471627602100171040ustar00rootroot00000000000000description cross connect different tunnel interfaces addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ser1 tunnel destination 1.1.1.1 exit int tun2 tunnel vrf v1 tunnel mode ipip tunnel source ser2 tunnel destination 1.1.2.1 connect tun1 exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ser1 tunnel destination 1.1.2.2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r3 tping 100 30 2.2.2.1 vrf v1 r3 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/conn-xotpad.tst000066400000000000000000000007721471627602100171200ustar00rootroot00000000000000description xot pad addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit server xot xot vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit client proxy p1 int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit ! r2 send pack xot 3.3.3.1 11 22 r2 tping 100 5 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/crypt-access01.tst000066400000000000000000000047021471627602100174240ustar00rootroot00000000000000description access class addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit access-list test permit all 1.1.1.3 255.255.255.255 all any all permit all 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit server telnet tel vrf v1 access-class test port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1234::1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 send exit r3 read closed r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 send exit r3 read closed r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-access02.tst000066400000000000000000000063331471627602100174270ustar00rootroot00000000000000description access map addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit route-map test sequence 10 act permit match network 2.2.2.3/32 sequence 20 act permit match network 4321::3/128 exit server telnet tel vrf v1 access-map test port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 exit router pvrp6 1 vrf v1 router 6.6.6.2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 exit router pvrp6 1 vrf v1 router 6.6.6.4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 sou lo1 r2 tping 100 20 1234::1 vrf v1 sou lo1 r3 tping 100 20 1.1.1.1 vrf v1 sou lo1 r3 tping 100 20 1234::1 vrf v1 sou lo1 r4 tping 100 20 1.1.1.1 vrf v1 sou lo1 r4 tping 100 20 1234::1 vrf v1 sou lo1 r1 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r4 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 send telnet 1.1.1.1 666 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 send telnet 1234::1 666 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 send telnet 1.1.1.1 666 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 send exit r3 read closed r3 send telnet 1234::1 666 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 send exit r3 read closed r4 send telnet 1.1.1.1 666 vrf v1 sou lo1 r4 tping 0 20 2.2.2.1 vrf v1 sou lo1 r4 send telnet 1234::1 666 vrf v1 sou lo1 r4 tping 0 20 2.2.2.1 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-access03.tst000066400000000000000000000063141471627602100174270ustar00rootroot00000000000000description access policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit route-policy test if network 2.2.2.3/32 pass enif if network 4321::3/128 pass enif drop exit server telnet tel vrf v1 access-policy test port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 exit router pvrp6 1 vrf v1 router 6.6.6.2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 exit router pvrp6 1 vrf v1 router 6.6.6.4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 sou lo1 r2 tping 100 20 1234::1 vrf v1 sou lo1 r3 tping 100 20 1.1.1.1 vrf v1 sou lo1 r3 tping 100 20 1234::1 vrf v1 sou lo1 r4 tping 100 20 1.1.1.1 vrf v1 sou lo1 r4 tping 100 20 1234::1 vrf v1 sou lo1 r1 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r4 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 send telnet 1.1.1.1 666 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 send telnet 1234::1 666 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 send telnet 1.1.1.1 666 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 send exit r3 read closed r3 send telnet 1234::1 666 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 send exit r3 read closed r4 send telnet 1.1.1.1 666 vrf v1 sou lo1 r4 tping 0 20 2.2.2.1 vrf v1 sou lo1 r4 send telnet 1234::1 666 vrf v1 sou lo1 r4 tping 0 20 2.2.2.1 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-access04.tst000066400000000000000000000052531471627602100174310ustar00rootroot00000000000000description access subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.4 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 server telnet tel vrf v1 access-subnet 2 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed freeRtr-24.11.16/cfg/crypt-access05.tst000066400000000000000000000124111471627602100174240ustar00rootroot00000000000000description remote triggered blackhole access addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit router blackhole4 1 vrf v2 exit router blackhole6 1 vrf v2 exit router bgp4 1 vrf v1 address vpnuni uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole4 1 red conn exit router bgp6 1 vrf v1 address vpnuni uni local-as 1 router-id 6.6.6.1 neigh 1234::5 remote-as 1 neigh 1234::5 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole6 1 red conn exit server telnet tel vrf v1 access-subnet 2 access-blackhole4 1 access-blackhole6 1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit router blackhole4 1 vrf v2 exit router blackhole6 1 vrf v2 exit router bgp4 1 vrf v1 address vpnuni uni local-as 1 router-id 4.4.4.5 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole4 1 red conn exit router bgp6 1 vrf v1 address vpnuni uni local-as 1 router-id 6.6.6.5 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole6 1 red conn exit server telnet tel vrf v1 access-blackhole4 1 access-blackhole6 1 port 666 exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r5 tping 100 20 1.1.1.2 vrf v1 r5 tping 100 20 1234::2 vrf v1 r5 tping 100 20 1.1.1.3 vrf v1 r5 tping 100 20 1234::3 vrf v1 r5 tping 100 20 1.1.1.4 vrf v1 r5 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.5 vrf v1 r2 tping 100 20 1234::5 vrf v1 r3 tping 100 20 1.1.1.5 vrf v1 r3 tping 100 20 1234::5 vrf v1 r4 tping 100 20 1.1.1.5 vrf v1 r4 tping 100 20 1234::5 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r5 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 2.2.2.5 vrf v1 r2 tping 0 20 2.2.2.5 vrf v1 r3 tping 0 20 2.2.2.5 vrf v1 r4 tping 0 20 2.2.2.5 vrf v1 r5 tping 100 20 2.2.2.5 vrf v1 r2 send telnet 1.1.1.5 666 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 send exit r2 read closed r2 send telnet 1234::5 666 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 send exit r2 read closed r3 send telnet 1.1.1.5 666 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 send exit r3 read closed r3 send telnet 1234::5 666 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 send exit r3 read closed r4 send telnet 1.1.1.5 666 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 send exit r4 read closed r4 send telnet 1234::5 666 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 send exit r4 read closed r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r2 send telnet 1.1.1.5 666 vrf v1 r2 tping 0 20 2.2.2.5 vrf v1 r2 send telnet 1234::5 666 vrf v1 r2 tping 0 20 2.2.2.5 vrf v1 r3 send telnet 1.1.1.5 666 vrf v1 r3 tping 0 20 2.2.2.5 vrf v1 r3 send telnet 1234::5 666 vrf v1 r3 tping 0 20 2.2.2.5 vrf v1 r4 send telnet 1.1.1.5 666 vrf v1 r4 tping 0 20 2.2.2.5 vrf v1 r4 send telnet 1234::5 666 vrf v1 r4 tping 0 20 2.2.2.5 vrf v1 freeRtr-24.11.16/cfg/crypt-access06.tst000066400000000000000000000124311471627602100174270ustar00rootroot00000000000000description remote triggered whitelist access addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit router blackhole4 1 vrf v2 exit router blackhole6 1 vrf v2 exit router bgp4 1 vrf v1 address vpnuni uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole4 1 red conn exit router bgp6 1 vrf v1 address vpnuni uni local-as 1 router-id 6.6.6.1 neigh 1234::5 remote-as 1 neigh 1234::5 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole6 1 red conn exit server telnet tel vrf v1 access-subnet 2 access-blackhole4 1 access-blackhole6 1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:: exit router blackhole4 1 vrf v2 negate exit router blackhole6 1 vrf v2 negate exit router bgp4 1 vrf v1 address vpnuni uni local-as 1 router-id 4.4.4.5 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole4 1 red conn exit router bgp6 1 vrf v1 address vpnuni uni local-as 1 router-id 6.6.6.5 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both afi-vrf v2 ena afi-vrf v2 red blackhole6 1 red conn exit server telnet tel vrf v1 access-blackhole4 1 access-blackhole6 1 port 666 exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r5 tping 100 20 1.1.1.2 vrf v1 r5 tping 100 20 1234::2 vrf v1 r5 tping 100 20 1.1.1.3 vrf v1 r5 tping 100 20 1234::3 vrf v1 r5 tping 100 20 1.1.1.4 vrf v1 r5 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.5 vrf v1 r2 tping 100 20 1234::5 vrf v1 r3 tping 100 20 1.1.1.5 vrf v1 r3 tping 100 20 1234::5 vrf v1 r4 tping 100 20 1.1.1.5 vrf v1 r4 tping 100 20 1234::5 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r5 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 2.2.2.5 vrf v1 r2 tping 0 20 2.2.2.5 vrf v1 r3 tping 0 20 2.2.2.5 vrf v1 r4 tping 0 20 2.2.2.5 vrf v1 r5 tping 100 20 2.2.2.5 vrf v1 r2 send telnet 1.1.1.5 666 vrf v1 r2 tping 0 20 2.2.2.5 vrf v1 r2 send telnet 1234::5 666 vrf v1 r2 tping 0 20 2.2.2.5 vrf v1 r3 send telnet 1.1.1.5 666 vrf v1 r3 tping 0 20 2.2.2.5 vrf v1 r3 send telnet 1234::5 666 vrf v1 r3 tping 0 20 2.2.2.5 vrf v1 r4 send telnet 1.1.1.5 666 vrf v1 r4 tping 0 20 2.2.2.5 vrf v1 r4 send telnet 1234::5 666 vrf v1 r4 tping 0 20 2.2.2.5 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r2 send telnet 1.1.1.5 666 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 send exit r2 read closed r2 send telnet 1234::5 666 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 send exit r2 read closed r3 send telnet 1.1.1.5 666 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 send exit r3 read closed r3 send telnet 1234::5 666 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 send exit r3 read closed r4 send telnet 1.1.1.5 666 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 send exit r4 read closed r4 send telnet 1234::5 666 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 send exit r4 read closed freeRtr-24.11.16/cfg/crypt-access07.tst000066400000000000000000000045531471627602100174360ustar00rootroot00000000000000description access total addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server telnet tel vrf v1 access-total 2 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed freeRtr-24.11.16/cfg/crypt-access08.tst000066400000000000000000000063571471627602100174430ustar00rootroot00000000000000description access tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit track t vrf v1 targ 2.2.2.4 mod icmp inter 1000 time 500 start exit server telnet tel vrf v1 access-track t port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1234::1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r1 send conf t r1 send ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.4 r1 send ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 r1 send end r1 tping 0 20 1.1.1.2 vrf v1 sou lo1 r1 tping 0 20 1234::2 vrf v1 sou lo1 r1 tping 0 20 1.1.1.3 vrf v1 sou lo1 r1 tping 0 20 1234::3 vrf v1 sou lo1 r1 tping 0 20 1.1.1.4 vrf v1 sou lo1 r1 tping 0 20 1234::4 vrf v1 sou lo1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed freeRtr-24.11.16/cfg/crypt-access09.tst000066400000000000000000000065721471627602100174430ustar00rootroot00000000000000description access negated tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.4 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 track t vrf v1 targ 2.2.2.4 mod icmp for neg inter 1000 time 500 start exit server telnet tel vrf v1 access-track t port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r1 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1234::1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r1 send conf t r1 send no ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.4 r1 send no ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 r1 send end r1 tping 0 20 1.1.1.2 vrf v1 sou lo1 r1 tping 0 20 1234::2 vrf v1 sou lo1 r1 tping 0 20 1.1.1.3 vrf v1 sou lo1 r1 tping 0 20 1234::3 vrf v1 sou lo1 r1 tping 0 20 1.1.1.4 vrf v1 sou lo1 r1 tping 0 20 1234::4 vrf v1 sou lo1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed freeRtr-24.11.16/cfg/crypt-access10.tst000066400000000000000000000064131471627602100174250ustar00rootroot00000000000000description access follow tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit track t vrf v1 targ 2.2.2.4 mod icmp inter 1000 time 500 start exit scheduler f time 1000 command clear follow-tracker start exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff follow t exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r1 tping 100 20 1.1.1.3 vrf v1 r1 tping 100 20 1234::3 vrf v1 r1 tping 100 20 1.1.1.4 vrf v1 r1 tping 100 20 1234::4 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r3 tping 100 20 1.1.1.1 vrf v1 r3 tping 100 20 1234::1 vrf v1 r4 tping 100 20 1.1.1.1 vrf v1 r4 tping 100 20 1234::1 vrf v1 r1 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r2 send telnet 1234::1 666 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 0 20 2.2.2.1 vrf v1 r1 send conf t r1 send ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.4 r1 send ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 r1 send end r1 tping 0 20 1.1.1.2 vrf v1 sou lo1 r1 tping 0 20 1234::2 vrf v1 sou lo1 r1 tping 0 20 1.1.1.3 vrf v1 sou lo1 r1 tping 0 20 1234::3 vrf v1 sou lo1 r1 tping 0 20 1.1.1.4 vrf v1 sou lo1 r2 send telnet 1.1.1.1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1.1.1.1 666 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed r2 send telnet 1234::1 666 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r3 send telnet 1234::1 666 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r4 send telnet 1234::1 666 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r2 send exit r2 read closed r3 send exit r3 read closed r4 send exit r4 read closed freeRtr-24.11.16/cfg/crypt-acl01.tst000066400000000000000000000021111471627602100167120ustar00rootroot00000000000000description ingress protocol matching access list addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 0 5 1.1.1.2 vrf v1 r1 tping 0 5 1234::2 vrf v1 r2 tping -100 5 1.1.1.1 vrf v1 error r2 tping -100 5 1234::1 vrf v1 error r1 output show access-list test4 r1 output show access-list test6 output ../binTmp/crypt-acl.html here is the ipv4 acl:
show:0
here is the ipv6 acl:
show:1
! freeRtr-24.11.16/cfg/crypt-acl02.tst000066400000000000000000000013471471627602100167250ustar00rootroot00000000000000description egress protocol matching access list addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping -100 5 1.1.1.2 vrf v1 error r1 tping -100 5 1234::2 vrf v1 error freeRtr-24.11.16/cfg/crypt-acl03.tst000066400000000000000000000030621471627602100167220ustar00rootroot00000000000000description ingress destination matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all 2.2.2.102 255.255.255.255 all deny all any all 2.2.2.202 255.255.255.255 all permit all any all any all exit access-list test6 deny all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all deny all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl04.tst000066400000000000000000000030631471627602100167240ustar00rootroot00000000000000description egress destination matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all 2.2.2.102 255.255.255.255 all deny all any all 2.2.2.202 255.255.255.255 all permit all any all any all exit access-list test6 deny all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all deny all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl05.tst000066400000000000000000000030551471627602100167260ustar00rootroot00000000000000description ingress source matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all 2.2.2.102 255.255.255.255 all any all deny all 2.2.2.202 255.255.255.255 all any all permit all any all any all exit access-list test6 deny all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl06.tst000066400000000000000000000030561471627602100167300ustar00rootroot00000000000000description egress source matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all 2.2.2.102 255.255.255.255 all any all deny all 2.2.2.202 255.255.255.255 all any all permit all any all any all exit access-list test6 deny all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl07.tst000066400000000000000000000025701471627602100167310ustar00rootroot00000000000000description ingress bridged access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! access-list test4 deny all 1.1.1.2 255.255.255.255 all 1.1.1.3 255.255.255.255 all permit all any all any all exit access-list test6 deny all 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit bridge 1 exit vrf def v1 rd 1:1 exit int eth1 bridge-gr 1 bridge-fi ipv4in test4 bridge-fi ipv6in test6 exit int eth2 bridge-gr 1 bridge-fi ipv4in test4 bridge-fi ipv6in test6 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 0 5 1.1.1.3 vrf v1 r2 tping 0 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 0 5 1.1.1.2 vrf v1 r3 tping 0 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl08.tst000066400000000000000000000025731471627602100167350ustar00rootroot00000000000000description egress bridged access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! access-list test4 deny all 1.1.1.2 255.255.255.255 all 1.1.1.3 255.255.255.255 all permit all any all any all exit access-list test6 deny all 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit bridge 1 exit vrf def v1 rd 1:1 exit int eth1 bridge-gr 1 bridge-fi ipv4out test4 bridge-fi ipv6out test6 exit int eth2 bridge-gr 1 bridge-fi ipv4out test4 bridge-fi ipv6out test6 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 0 5 1.1.1.3 vrf v1 r2 tping 0 5 1234::3 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 0 5 1.1.1.2 vrf v1 r3 tping 0 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl09.tst000066400000000000000000000020701471627602100167260ustar00rootroot00000000000000description ingress ttl matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all ttl 110-120 permit all any all any all exit access-list test6 deny all any all any all ttl 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r1 tping 100 5 1.1.1.2 vrf v1 ttl 90 r1 tping 100 5 1234::2 vrf v1 ttl 90 r2 tping 0 5 1.1.1.1 vrf v1 ttl 115 r2 tping 0 5 1234::1 vrf v1 ttl 115 r1 tping 100 5 1.1.1.2 vrf v1 ttl 115 r1 tping 100 5 1234::2 vrf v1 ttl 115 r2 tping 100 5 1.1.1.1 vrf v1 ttl 130 r2 tping 100 5 1234::1 vrf v1 ttl 130 r1 tping 100 5 1.1.1.2 vrf v1 ttl 130 r1 tping 100 5 1234::2 vrf v1 ttl 130 freeRtr-24.11.16/cfg/crypt-acl10.tst000066400000000000000000000020711471627602100167170ustar00rootroot00000000000000description egress ttl matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all ttl 110-120 permit all any all any all exit access-list test6 deny all any all any all ttl 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r1 tping 100 5 1.1.1.2 vrf v1 ttl 90 r1 tping 100 5 1234::2 vrf v1 ttl 90 r2 tping 100 5 1.1.1.1 vrf v1 ttl 115 r2 tping 100 5 1234::1 vrf v1 ttl 115 r1 tping 0 5 1.1.1.2 vrf v1 ttl 115 r1 tping 0 5 1234::2 vrf v1 ttl 115 r2 tping 100 5 1.1.1.1 vrf v1 ttl 130 r2 tping 100 5 1234::1 vrf v1 ttl 130 r1 tping 100 5 1.1.1.2 vrf v1 ttl 130 r1 tping 100 5 1234::2 vrf v1 ttl 130 freeRtr-24.11.16/cfg/crypt-acl11.tst000066400000000000000000000020641471627602100167220ustar00rootroot00000000000000description ingress tos matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all tos 110-120 permit all any all any all exit access-list test6 deny all any all any all tos 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 90 r2 tping 100 5 1234::1 vrf v1 tos 90 r1 tping 100 5 1.1.1.2 vrf v1 tos 90 r1 tping 100 5 1234::2 vrf v1 tos 90 r2 tping 0 5 1.1.1.1 vrf v1 tos 115 r2 tping 0 5 1234::1 vrf v1 tos 115 r1 tping 0 5 1.1.1.2 vrf v1 tos 115 r1 tping 0 5 1234::2 vrf v1 tos 115 r2 tping 100 5 1.1.1.1 vrf v1 tos 130 r2 tping 100 5 1234::1 vrf v1 tos 130 r1 tping 100 5 1.1.1.2 vrf v1 tos 130 r1 tping 100 5 1234::2 vrf v1 tos 130 freeRtr-24.11.16/cfg/crypt-acl12.tst000066400000000000000000000020651471627602100167240ustar00rootroot00000000000000description egress tos matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all tos 110-120 permit all any all any all exit access-list test6 deny all any all any all tos 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 90 r2 tping 100 5 1234::1 vrf v1 tos 90 r1 tping 100 5 1.1.1.2 vrf v1 tos 90 r1 tping 100 5 1234::2 vrf v1 tos 90 r2 tping 0 5 1.1.1.1 vrf v1 tos 115 r2 tping 0 5 1234::1 vrf v1 tos 115 r1 tping 0 5 1.1.1.2 vrf v1 tos 115 r1 tping 0 5 1234::2 vrf v1 tos 115 r2 tping 100 5 1.1.1.1 vrf v1 tos 130 r2 tping 100 5 1234::1 vrf v1 tos 130 r1 tping 100 5 1.1.1.2 vrf v1 tos 130 r1 tping 100 5 1234::2 vrf v1 tos 130 freeRtr-24.11.16/cfg/crypt-acl13.tst000066400000000000000000000016201471627602100167210ustar00rootroot00000000000000description ingress dscp matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all dscp 12 permit all any all any all exit access-list test6 deny all any all any all dscp 12 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 47 r2 tping 100 5 1234::1 vrf v1 tos 47 r1 tping 100 5 1.1.1.2 vrf v1 tos 47 r1 tping 100 5 1234::2 vrf v1 tos 47 r2 tping 0 5 1.1.1.1 vrf v1 tos 48 r2 tping 0 5 1234::1 vrf v1 tos 48 r1 tping 0 5 1.1.1.2 vrf v1 tos 48 r1 tping 0 5 1234::2 vrf v1 tos 48 freeRtr-24.11.16/cfg/crypt-acl14.tst000066400000000000000000000016211471627602100167230ustar00rootroot00000000000000description egress dscp matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all dscp 12 permit all any all any all exit access-list test6 deny all any all any all dscp 12 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 47 r2 tping 100 5 1234::1 vrf v1 tos 47 r1 tping 100 5 1.1.1.2 vrf v1 tos 47 r1 tping 100 5 1234::2 vrf v1 tos 47 r2 tping 0 5 1.1.1.1 vrf v1 tos 48 r2 tping 0 5 1234::1 vrf v1 tos 48 r1 tping 0 5 1.1.1.2 vrf v1 tos 48 r1 tping 0 5 1234::2 vrf v1 tos 48 freeRtr-24.11.16/cfg/crypt-acl15.tst000066400000000000000000000016241471627602100167270ustar00rootroot00000000000000description ingress precedence matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all prec 2 permit all any all any all exit access-list test6 deny all any all any all prec 2 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 63 r2 tping 100 5 1234::1 vrf v1 tos 63 r1 tping 100 5 1.1.1.2 vrf v1 tos 63 r1 tping 100 5 1234::2 vrf v1 tos 63 r2 tping 0 5 1.1.1.1 vrf v1 tos 64 r2 tping 0 5 1234::1 vrf v1 tos 64 r1 tping 0 5 1.1.1.2 vrf v1 tos 64 r1 tping 0 5 1234::2 vrf v1 tos 64 freeRtr-24.11.16/cfg/crypt-acl16.tst000066400000000000000000000016251471627602100167310ustar00rootroot00000000000000description egress precedence matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all prec 2 permit all any all any all exit access-list test6 deny all any all any all prec 2 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 63 r2 tping 100 5 1234::1 vrf v1 tos 63 r1 tping 100 5 1.1.1.2 vrf v1 tos 63 r1 tping 100 5 1234::2 vrf v1 tos 63 r2 tping 0 5 1.1.1.1 vrf v1 tos 64 r2 tping 0 5 1234::1 vrf v1 tos 64 r1 tping 0 5 1.1.1.2 vrf v1 tos 64 r1 tping 0 5 1234::2 vrf v1 tos 64 freeRtr-24.11.16/cfg/crypt-acl17.tst000066400000000000000000000020671471627602100167330ustar00rootroot00000000000000description ingress length matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all len 100-200 permit all any all any all exit access-list test6 deny all any all any all len 100-200 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 50 r2 tping 100 5 1234::1 vrf v1 siz 50 r1 tping 100 5 1.1.1.2 vrf v1 siz 50 r1 tping 100 5 1234::2 vrf v1 siz 50 r2 tping 0 5 1.1.1.1 vrf v1 siz 110 r2 tping 0 5 1234::1 vrf v1 siz 110 r1 tping 0 5 1.1.1.2 vrf v1 siz 110 r1 tping 0 5 1234::2 vrf v1 siz 110 r2 tping 100 5 1.1.1.1 vrf v1 siz 250 r2 tping 100 5 1234::1 vrf v1 siz 250 r1 tping 100 5 1.1.1.2 vrf v1 siz 250 r1 tping 100 5 1234::2 vrf v1 siz 250 freeRtr-24.11.16/cfg/crypt-acl18.tst000066400000000000000000000020701471627602100167260ustar00rootroot00000000000000description egress length matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all len 100-200 permit all any all any all exit access-list test6 deny all any all any all len 100-200 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 50 r2 tping 100 5 1234::1 vrf v1 siz 50 r1 tping 100 5 1.1.1.2 vrf v1 siz 50 r1 tping 100 5 1234::2 vrf v1 siz 50 r2 tping 0 5 1.1.1.1 vrf v1 siz 110 r2 tping 0 5 1234::1 vrf v1 siz 110 r1 tping 0 5 1.1.1.2 vrf v1 siz 110 r1 tping 0 5 1234::2 vrf v1 siz 110 r2 tping 100 5 1.1.1.1 vrf v1 siz 250 r2 tping 100 5 1234::1 vrf v1 siz 250 r1 tping 100 5 1.1.1.2 vrf v1 siz 250 r1 tping 100 5 1234::2 vrf v1 siz 250 freeRtr-24.11.16/cfg/crypt-acl19.tst000066400000000000000000000031371471627602100167340ustar00rootroot00000000000000description ingress destination matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group net test4 2.2.2.102 255.255.255.255 2.2.2.202 255.255.255.255 exit object-group net test6 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all obj test4 all permit all any all any all exit access-list test6 deny all any all obj test6 all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl20.tst000066400000000000000000000031401471627602100167160ustar00rootroot00000000000000description egress destination matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group net test4 2.2.2.102 255.255.255.255 2.2.2.202 255.255.255.255 exit object-group net test6 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all obj test4 all permit all any all any all exit access-list test6 deny all any all obj test6 all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl21.tst000066400000000000000000000031321471627602100167200ustar00rootroot00000000000000description ingress source matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group net test4 2.2.2.102 255.255.255.255 2.2.2.202 255.255.255.255 exit object-group net test6 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all obj test4 all any all permit all any all any all exit access-list test6 deny all obj test6 all any all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl22.tst000066400000000000000000000031331471627602100167220ustar00rootroot00000000000000description egress source matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group net test4 2.2.2.102 255.255.255.255 2.2.2.202 255.255.255.255 exit object-group net test6 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all obj test4 all any all permit all any all any all exit access-list test6 deny all obj test6 all any all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl23.tst000066400000000000000000000013511471627602100167230ustar00rootroot00000000000000description ingress protocol matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 0 5 1.1.1.2 vrf v1 r1 tping 0 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl24.tst000066400000000000000000000013521471627602100167250ustar00rootroot00000000000000description egress protocol matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 0 5 1.1.1.2 vrf v1 r1 tping 0 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl25.tst000066400000000000000000000031071471627602100167260ustar00rootroot00000000000000description ingress destination matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all 2.2.2.102 255.255.255.255 all deny all any all 2.2.2.202 255.255.255.255 all permit all any all any all exit access-list test6 deny all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all deny all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl26.tst000066400000000000000000000031101471627602100167210ustar00rootroot00000000000000description egress destination matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all 2.2.2.102 255.255.255.255 all deny all any all 2.2.2.202 255.255.255.255 all permit all any all any all exit access-list test6 deny all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all deny all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl27.tst000066400000000000000000000031021471627602100167230ustar00rootroot00000000000000description ingress source matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all 2.2.2.102 255.255.255.255 all any all deny all 2.2.2.202 255.255.255.255 all any all permit all any all any all exit access-list test6 deny all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl28.tst000066400000000000000000000031031471627602100167250ustar00rootroot00000000000000description egress source matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all 2.2.2.102 255.255.255.255 all any all deny all 2.2.2.202 255.255.255.255 all any all permit all any all any all exit access-list test6 deny all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl29.tst000066400000000000000000000021151471627602100167300ustar00rootroot00000000000000description ingress ttl matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all ttl 110-120 permit all any all any all exit access-list test6 deny all any all any all ttl 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r1 tping 100 5 1.1.1.2 vrf v1 ttl 90 r1 tping 100 5 1234::2 vrf v1 ttl 90 r2 tping 0 5 1.1.1.1 vrf v1 ttl 115 r2 tping 0 5 1234::1 vrf v1 ttl 115 r1 tping 100 5 1.1.1.2 vrf v1 ttl 115 r1 tping 100 5 1234::2 vrf v1 ttl 115 r2 tping 100 5 1.1.1.1 vrf v1 ttl 130 r2 tping 100 5 1234::1 vrf v1 ttl 130 r1 tping 100 5 1.1.1.2 vrf v1 ttl 130 r1 tping 100 5 1234::2 vrf v1 ttl 130 freeRtr-24.11.16/cfg/crypt-acl30.tst000066400000000000000000000021161471627602100167210ustar00rootroot00000000000000description egress ttl matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all ttl 110-120 permit all any all any all exit access-list test6 deny all any all any all ttl 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r1 tping 100 5 1.1.1.2 vrf v1 ttl 90 r1 tping 100 5 1234::2 vrf v1 ttl 90 r2 tping 100 5 1.1.1.1 vrf v1 ttl 115 r2 tping 100 5 1234::1 vrf v1 ttl 115 r1 tping 0 5 1.1.1.2 vrf v1 ttl 115 r1 tping 0 5 1234::2 vrf v1 ttl 115 r2 tping 100 5 1.1.1.1 vrf v1 ttl 130 r2 tping 100 5 1234::1 vrf v1 ttl 130 r1 tping 100 5 1.1.1.2 vrf v1 ttl 130 r1 tping 100 5 1234::2 vrf v1 ttl 130 freeRtr-24.11.16/cfg/crypt-acl31.tst000066400000000000000000000021111471627602100167150ustar00rootroot00000000000000description ingress tos matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all tos 110-120 permit all any all any all exit access-list test6 deny all any all any all tos 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 90 r2 tping 100 5 1234::1 vrf v1 tos 90 r1 tping 100 5 1.1.1.2 vrf v1 tos 90 r1 tping 100 5 1234::2 vrf v1 tos 90 r2 tping 0 5 1.1.1.1 vrf v1 tos 115 r2 tping 0 5 1234::1 vrf v1 tos 115 r1 tping 0 5 1.1.1.2 vrf v1 tos 115 r1 tping 0 5 1234::2 vrf v1 tos 115 r2 tping 100 5 1.1.1.1 vrf v1 tos 130 r2 tping 100 5 1234::1 vrf v1 tos 130 r1 tping 100 5 1.1.1.2 vrf v1 tos 130 r1 tping 100 5 1234::2 vrf v1 tos 130 freeRtr-24.11.16/cfg/crypt-acl32.tst000066400000000000000000000021121471627602100167170ustar00rootroot00000000000000description egress tos matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all tos 110-120 permit all any all any all exit access-list test6 deny all any all any all tos 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 90 r2 tping 100 5 1234::1 vrf v1 tos 90 r1 tping 100 5 1.1.1.2 vrf v1 tos 90 r1 tping 100 5 1234::2 vrf v1 tos 90 r2 tping 0 5 1.1.1.1 vrf v1 tos 115 r2 tping 0 5 1234::1 vrf v1 tos 115 r1 tping 0 5 1.1.1.2 vrf v1 tos 115 r1 tping 0 5 1234::2 vrf v1 tos 115 r2 tping 100 5 1.1.1.1 vrf v1 tos 130 r2 tping 100 5 1234::1 vrf v1 tos 130 r1 tping 100 5 1.1.1.2 vrf v1 tos 130 r1 tping 100 5 1234::2 vrf v1 tos 130 freeRtr-24.11.16/cfg/crypt-acl33.tst000066400000000000000000000021141471627602100167220ustar00rootroot00000000000000description ingress length matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all len 100-200 permit all any all any all exit access-list test6 deny all any all any all len 100-200 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 50 r2 tping 100 5 1234::1 vrf v1 siz 50 r1 tping 100 5 1.1.1.2 vrf v1 siz 50 r1 tping 100 5 1234::2 vrf v1 siz 50 r2 tping 0 5 1.1.1.1 vrf v1 siz 110 r2 tping 0 5 1234::1 vrf v1 siz 110 r1 tping 0 5 1.1.1.2 vrf v1 siz 110 r1 tping 0 5 1234::2 vrf v1 siz 110 r2 tping 100 5 1.1.1.1 vrf v1 siz 250 r2 tping 100 5 1234::1 vrf v1 siz 250 r1 tping 100 5 1.1.1.2 vrf v1 siz 250 r1 tping 100 5 1234::2 vrf v1 siz 250 freeRtr-24.11.16/cfg/crypt-acl34.tst000066400000000000000000000021151471627602100167240ustar00rootroot00000000000000description egress length matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all len 100-200 permit all any all any all exit access-list test6 deny all any all any all len 100-200 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 50 r2 tping 100 5 1234::1 vrf v1 siz 50 r1 tping 100 5 1.1.1.2 vrf v1 siz 50 r1 tping 100 5 1234::2 vrf v1 siz 50 r2 tping 0 5 1.1.1.1 vrf v1 siz 110 r2 tping 0 5 1234::1 vrf v1 siz 110 r1 tping 0 5 1.1.1.2 vrf v1 siz 110 r1 tping 0 5 1234::2 vrf v1 siz 110 r2 tping 100 5 1.1.1.1 vrf v1 siz 250 r2 tping 100 5 1234::1 vrf v1 siz 250 r1 tping 100 5 1.1.1.2 vrf v1 siz 250 r1 tping 100 5 1234::2 vrf v1 siz 250 freeRtr-24.11.16/cfg/crypt-acl35.tst000066400000000000000000000035061471627602100167320ustar00rootroot00000000000000description ingress source port matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any 123 any all permit all any all any all exit access-list test6 deny all any 123 any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl36.tst000066400000000000000000000035071471627602100167340ustar00rootroot00000000000000description egress source port matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any 123 any all permit all any all any all exit access-list test6 deny all any 123 any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl37.tst000066400000000000000000000035131471627602100167320ustar00rootroot00000000000000description ingress destination port matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any 123 permit all any all any all exit access-list test6 deny all any all any 123 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl38.tst000066400000000000000000000035141471627602100167340ustar00rootroot00000000000000description egress destination port matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any 123 permit all any all any all exit access-list test6 deny all any all any 123 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl39.tst000066400000000000000000000035711471627602100167400ustar00rootroot00000000000000description ingress source port matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group port test 123 exit access-list test4 deny all any obj test any all permit all any all any all exit access-list test6 deny all any obj test any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl40.tst000066400000000000000000000035721471627602100167310ustar00rootroot00000000000000description egress source port matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group port test 123 exit access-list test4 deny all any obj test any all permit all any all any all exit access-list test6 deny all any obj test any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl41.tst000066400000000000000000000035761471627602100167360ustar00rootroot00000000000000description ingress destination port matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group port test 123 exit access-list test4 deny all any all any obj test permit all any all any all exit access-list test6 deny all any all any obj test permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl42.tst000066400000000000000000000035771471627602100167400ustar00rootroot00000000000000description egress destination port matching hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! object-group port test 123 exit access-list test4 deny all any all any obj test permit all any all any all exit access-list test6 deny all any all any obj test permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl43.tst000066400000000000000000000035331471627602100167310ustar00rootroot00000000000000description ingress source port matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any 123 any all permit all any all any all exit access-list test6 deny all any 123 any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl44.tst000066400000000000000000000035341471627602100167330ustar00rootroot00000000000000description egress source port matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any 123 any all permit all any all any all exit access-list test6 deny all any 123 any all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl45.tst000066400000000000000000000035401471627602100167310ustar00rootroot00000000000000description ingress destination port matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any 123 permit all any all any all exit access-list test6 deny all any all any 123 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl46.tst000066400000000000000000000035411471627602100167330ustar00rootroot00000000000000description egress destination port matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any 123 permit all any all any all exit access-list test6 deny all any all any 123 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl47.tst000066400000000000000000000015071471627602100167340ustar00rootroot00000000000000description ingress protocol matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit 1 any all any all exit access-list test6a permit 58 any all any all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 0 5 1.1.1.2 vrf v1 r1 tping 0 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl48.tst000066400000000000000000000015101471627602100167270ustar00rootroot00000000000000description egress protocol matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit 1 any all any all exit access-list test6a permit 58 any all any all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 0 5 1.1.1.2 vrf v1 r1 tping 0 5 1234::2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl49.tst000066400000000000000000000032511471627602100167340ustar00rootroot00000000000000description ingress destination matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all 2.2.2.102 255.255.255.255 all permit all any all 2.2.2.202 255.255.255.255 all exit access-list test6a permit all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl50.tst000066400000000000000000000032521471627602100167250ustar00rootroot00000000000000description egress destination matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all 2.2.2.102 255.255.255.255 all permit all any all 2.2.2.202 255.255.255.255 all exit access-list test6a permit all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl51.tst000066400000000000000000000032441471627602100167270ustar00rootroot00000000000000description ingress source matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all 2.2.2.102 255.255.255.255 all any all permit all 2.2.2.202 255.255.255.255 all any all exit access-list test6a permit all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.202 vrf v1 sou lo0 r1 tping 0 5 4321::202 vrf v1 sou lo0 freeRtr-24.11.16/cfg/crypt-acl52.tst000066400000000000000000000032451471627602100167310ustar00rootroot00000000000000description egress source matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all 2.2.2.102 255.255.255.255 all any all permit all 2.2.2.202 255.255.255.255 all any all exit access-list test6a permit all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 sou lo1 r1 tping 0 5 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl53.tst000066400000000000000000000022531471627602100167300ustar00rootroot00000000000000description ingress ttl matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all ttl 110-120 exit access-list test6a permit all any all any all ttl 110-120 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r1 tping 100 5 1.1.1.2 vrf v1 ttl 90 r1 tping 100 5 1234::2 vrf v1 ttl 90 r2 tping 0 5 1.1.1.1 vrf v1 ttl 115 r2 tping 0 5 1234::1 vrf v1 ttl 115 r1 tping 100 5 1.1.1.2 vrf v1 ttl 115 r1 tping 100 5 1234::2 vrf v1 ttl 115 r2 tping 100 5 1.1.1.1 vrf v1 ttl 130 r2 tping 100 5 1234::1 vrf v1 ttl 130 r1 tping 100 5 1.1.1.2 vrf v1 ttl 130 r1 tping 100 5 1234::2 vrf v1 ttl 130 freeRtr-24.11.16/cfg/crypt-acl54.tst000066400000000000000000000022541471627602100167320ustar00rootroot00000000000000description egress ttl matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all ttl 110-120 exit access-list test6a permit all any all any all ttl 110-120 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r1 tping 100 5 1.1.1.2 vrf v1 ttl 90 r1 tping 100 5 1234::2 vrf v1 ttl 90 r2 tping 100 5 1.1.1.1 vrf v1 ttl 115 r2 tping 100 5 1234::1 vrf v1 ttl 115 r1 tping 0 5 1.1.1.2 vrf v1 ttl 115 r1 tping 0 5 1234::2 vrf v1 ttl 115 r2 tping 100 5 1.1.1.1 vrf v1 ttl 130 r2 tping 100 5 1234::1 vrf v1 ttl 130 r1 tping 100 5 1.1.1.2 vrf v1 ttl 130 r1 tping 100 5 1234::2 vrf v1 ttl 130 freeRtr-24.11.16/cfg/crypt-acl55.tst000066400000000000000000000022471471627602100167350ustar00rootroot00000000000000description ingress tos matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all tos 110-120 exit access-list test6a permit all any all any all tos 110-120 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 90 r2 tping 100 5 1234::1 vrf v1 tos 90 r1 tping 100 5 1.1.1.2 vrf v1 tos 90 r1 tping 100 5 1234::2 vrf v1 tos 90 r2 tping 0 5 1.1.1.1 vrf v1 tos 115 r2 tping 0 5 1234::1 vrf v1 tos 115 r1 tping 0 5 1.1.1.2 vrf v1 tos 115 r1 tping 0 5 1234::2 vrf v1 tos 115 r2 tping 100 5 1.1.1.1 vrf v1 tos 130 r2 tping 100 5 1234::1 vrf v1 tos 130 r1 tping 100 5 1.1.1.2 vrf v1 tos 130 r1 tping 100 5 1234::2 vrf v1 tos 130 freeRtr-24.11.16/cfg/crypt-acl56.tst000066400000000000000000000022501471627602100167300ustar00rootroot00000000000000description egress tos matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all tos 110-120 exit access-list test6a permit all any all any all tos 110-120 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 tos 90 r2 tping 100 5 1234::1 vrf v1 tos 90 r1 tping 100 5 1.1.1.2 vrf v1 tos 90 r1 tping 100 5 1234::2 vrf v1 tos 90 r2 tping 0 5 1.1.1.1 vrf v1 tos 115 r2 tping 0 5 1234::1 vrf v1 tos 115 r1 tping 0 5 1.1.1.2 vrf v1 tos 115 r1 tping 0 5 1234::2 vrf v1 tos 115 r2 tping 100 5 1.1.1.1 vrf v1 tos 130 r2 tping 100 5 1234::1 vrf v1 tos 130 r1 tping 100 5 1.1.1.2 vrf v1 tos 130 r1 tping 100 5 1234::2 vrf v1 tos 130 freeRtr-24.11.16/cfg/crypt-acl57.tst000066400000000000000000000022521471627602100167330ustar00rootroot00000000000000description ingress length matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all len 100-200 exit access-list test6a permit all any all any all len 100-200 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 50 r2 tping 100 5 1234::1 vrf v1 siz 50 r1 tping 100 5 1.1.1.2 vrf v1 siz 50 r1 tping 100 5 1234::2 vrf v1 siz 50 r2 tping 0 5 1.1.1.1 vrf v1 siz 110 r2 tping 0 5 1234::1 vrf v1 siz 110 r1 tping 0 5 1.1.1.2 vrf v1 siz 110 r1 tping 0 5 1234::2 vrf v1 siz 110 r2 tping 100 5 1.1.1.1 vrf v1 siz 250 r2 tping 100 5 1234::1 vrf v1 siz 250 r1 tping 100 5 1.1.1.2 vrf v1 siz 250 r1 tping 100 5 1234::2 vrf v1 siz 250 freeRtr-24.11.16/cfg/crypt-acl58.tst000066400000000000000000000022531471627602100167350ustar00rootroot00000000000000description egress length matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all len 100-200 exit access-list test6a permit all any all any all len 100-200 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 50 r2 tping 100 5 1234::1 vrf v1 siz 50 r1 tping 100 5 1.1.1.2 vrf v1 siz 50 r1 tping 100 5 1234::2 vrf v1 siz 50 r2 tping 0 5 1.1.1.1 vrf v1 siz 110 r2 tping 0 5 1234::1 vrf v1 siz 110 r1 tping 0 5 1.1.1.2 vrf v1 siz 110 r1 tping 0 5 1234::2 vrf v1 siz 110 r2 tping 100 5 1.1.1.1 vrf v1 siz 250 r2 tping 100 5 1234::1 vrf v1 siz 250 r1 tping 100 5 1.1.1.2 vrf v1 siz 250 r1 tping 100 5 1234::2 vrf v1 siz 250 freeRtr-24.11.16/cfg/crypt-acl59.tst000066400000000000000000000036711471627602100167430ustar00rootroot00000000000000description ingress source port matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any 123 any all exit access-list test6a permit all any 123 any all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl60.tst000066400000000000000000000036721471627602100167340ustar00rootroot00000000000000description egress source port matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any 123 any all exit access-list test6a permit all any 123 any all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl61.tst000066400000000000000000000036761471627602100167410ustar00rootroot00000000000000description ingress destination port matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any 123 exit access-list test6a permit all any all any 123 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl62.tst000066400000000000000000000036771471627602100167430ustar00rootroot00000000000000description egress destination port matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any 123 exit access-list test6a permit all any all any 123 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.1 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.1 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::2 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.1.2 255.255.255.0 exit int tun2 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 123 tun mod pckoudp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun3 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.3.2 255.255.255.0 exit int tun4 tun vrf v1 tun sou eth1 tun dest 1234::1 tun key 321 tun mod pckoudp vrf for v1 ipv4 addr 2.2.4.2 255.255.255.0 exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 0 5 2.2.1.2 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 2.2.3.2 vrf v1 r1 tping 100 5 2.2.4.2 vrf v1 freeRtr-24.11.16/cfg/crypt-acl63.tst000066400000000000000000000025401471627602100167300ustar00rootroot00000000000000description reflexive access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list dyn4i hidden exit access-list dyn4o hidden exit access-list dyn6i hidden exit access-list dyn6o hidden exit access-list test4i seq 10 evaluate permit dyn4i seq 20 deny all any all any all exit access-list test6i seq 1 permit 58 fe80:: ffff:: all any all seq 2 permit 58 any all fe80:: ffff:: all seq 10 evaluate permit dyn6i seq 20 deny all any all any all exit access-list test4o seq 10 evaluate permit dyn4o seq 20 permit all any all any all seq 20 reflect dyn4o dyn4i 30000 exit access-list test6o seq 10 evaluate permit dyn6o seq 20 permit all any all any all seq 20 reflect dyn6o dyn6i 30000 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4i ipv6 access-group-in test6i ipv4 access-group-out test4o ipv6 access-group-out test6o exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::1 vrf v1 r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1234::2 vrf v1 r2 tping 0 5 1.1.1.1 vrf v1 r2 tping 0 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl64.tst000066400000000000000000000043071471627602100167340ustar00rootroot00000000000000description ingress mpls access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test deny all any all 2.2.2.102 255.255.255.255 all deny all any all 2.2.2.202 255.255.255.255 all deny all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all deny all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls label-secu mpls access-group-in test exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.202 255.255.255.255 1.1.1.2 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.102 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.201 vrf v1 sou lo0 r1 tping 100 10 4321::201 vrf v1 sou lo0 r1 tping 0 10 2.2.2.201 vrf v1 sou lo1 r1 tping 0 10 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl65.tst000066400000000000000000000043071471627602100167350ustar00rootroot00000000000000description egress mpls access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test deny all 2.2.2.102 255.255.255.255 all any all deny all 2.2.2.202 255.255.255.255 all any all deny all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all any all any all exit vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls label-secu mpls access-group-out test exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.202 255.255.255.255 1.1.1.2 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.102 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.201 vrf v1 sou lo0 r1 tping 100 10 4321::201 vrf v1 sou lo0 r1 tping 0 10 2.2.2.201 vrf v1 sou lo1 r1 tping 0 10 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl66.tst000066400000000000000000000043251471627602100167360ustar00rootroot00000000000000description ingress mpls common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test deny all any all 2.2.2.102 255.255.255.255 all deny all any all 2.2.2.202 255.255.255.255 all deny all any all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all deny all any all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls label-secu mpls access-group-common-in test exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.202 255.255.255.255 1.1.1.2 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.102 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.201 vrf v1 sou lo0 r1 tping 100 10 4321::201 vrf v1 sou lo0 r1 tping 0 10 2.2.2.201 vrf v1 sou lo1 r1 tping 0 10 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl67.tst000066400000000000000000000043251471627602100167370ustar00rootroot00000000000000description egress mpls common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test deny all 2.2.2.102 255.255.255.255 all any all deny all 2.2.2.202 255.255.255.255 all any all deny all 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all permit all any all any all exit vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls label-secu mpls access-group-common-out test exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.202 255.255.255.255 1.1.1.2 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.102 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.201 vrf v1 sou lo0 r1 tping 100 10 4321::201 vrf v1 sou lo0 r1 tping 0 10 2.2.2.201 vrf v1 sou lo1 r1 tping 0 10 4321::201 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-acl68.tst000066400000000000000000000021031471627602100167300ustar00rootroot00000000000000description ingress flow matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all flow 110-120 permit all any all any all exit access-list test6 deny all any all any all flow 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 flow 90 r2 tping 100 5 1234::1 vrf v1 flow 90 r1 tping 100 5 1.1.1.2 vrf v1 flow 90 r1 tping 100 5 1234::2 vrf v1 flow 90 r2 tping 0 5 1.1.1.1 vrf v1 flow 115 r2 tping 0 5 1234::1 vrf v1 flow 115 r1 tping 0 5 1.1.1.2 vrf v1 flow 115 r1 tping 0 5 1234::2 vrf v1 flow 115 r2 tping 100 5 1.1.1.1 vrf v1 flow 130 r2 tping 100 5 1234::1 vrf v1 flow 130 r1 tping 100 5 1.1.1.2 vrf v1 flow 130 r1 tping 100 5 1234::2 vrf v1 flow 130 freeRtr-24.11.16/cfg/crypt-acl69.tst000066400000000000000000000021041471627602100167320ustar00rootroot00000000000000description egress flow matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all flow 110-120 permit all any all any all exit access-list test6 deny all any all any all flow 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 flow 90 r2 tping 100 5 1234::1 vrf v1 flow 90 r1 tping 100 5 1.1.1.2 vrf v1 flow 90 r1 tping 100 5 1234::2 vrf v1 flow 90 r2 tping 0 5 1.1.1.1 vrf v1 flow 115 r2 tping 0 5 1234::1 vrf v1 flow 115 r1 tping 0 5 1.1.1.2 vrf v1 flow 115 r1 tping 0 5 1234::2 vrf v1 flow 115 r2 tping 100 5 1.1.1.1 vrf v1 flow 130 r2 tping 100 5 1234::1 vrf v1 flow 130 r1 tping 100 5 1.1.1.2 vrf v1 flow 130 r1 tping 100 5 1234::2 vrf v1 flow 130 freeRtr-24.11.16/cfg/crypt-acl70.tst000066400000000000000000000021301471627602100167210ustar00rootroot00000000000000description ingress flow matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all flow 110-120 permit all any all any all exit access-list test6 deny all any all any all flow 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 flow 90 r2 tping 100 5 1234::1 vrf v1 flow 90 r1 tping 100 5 1.1.1.2 vrf v1 flow 90 r1 tping 100 5 1234::2 vrf v1 flow 90 r2 tping 0 5 1.1.1.1 vrf v1 flow 115 r2 tping 0 5 1234::1 vrf v1 flow 115 r1 tping 0 5 1.1.1.2 vrf v1 flow 115 r1 tping 0 5 1234::2 vrf v1 flow 115 r2 tping 100 5 1.1.1.1 vrf v1 flow 130 r2 tping 100 5 1234::1 vrf v1 flow 130 r1 tping 100 5 1.1.1.2 vrf v1 flow 130 r1 tping 100 5 1234::2 vrf v1 flow 130 freeRtr-24.11.16/cfg/crypt-acl71.tst000066400000000000000000000021311471627602100167230ustar00rootroot00000000000000description egress flow matching common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all flow 110-120 permit all any all any all exit access-list test6 deny all any all any all flow 110-120 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 flow 90 r2 tping 100 5 1234::1 vrf v1 flow 90 r1 tping 100 5 1.1.1.2 vrf v1 flow 90 r1 tping 100 5 1234::2 vrf v1 flow 90 r2 tping 0 5 1.1.1.1 vrf v1 flow 115 r2 tping 0 5 1234::1 vrf v1 flow 115 r1 tping 0 5 1.1.1.2 vrf v1 flow 115 r1 tping 0 5 1234::2 vrf v1 flow 115 r2 tping 100 5 1.1.1.1 vrf v1 flow 130 r2 tping 100 5 1234::1 vrf v1 flow 130 r1 tping 100 5 1.1.1.2 vrf v1 flow 130 r1 tping 100 5 1234::2 vrf v1 flow 130 freeRtr-24.11.16/cfg/crypt-acl72.tst000066400000000000000000000022661471627602100167350ustar00rootroot00000000000000description ingress flow matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all flow 110-120 exit access-list test6a permit all any all any all flow 110-120 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4b ipv6 access-group-in test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 flow 90 r2 tping 100 5 1234::1 vrf v1 flow 90 r1 tping 100 5 1.1.1.2 vrf v1 flow 90 r1 tping 100 5 1234::2 vrf v1 flow 90 r2 tping 0 5 1.1.1.1 vrf v1 flow 115 r2 tping 0 5 1234::1 vrf v1 flow 115 r1 tping 0 5 1.1.1.2 vrf v1 flow 115 r1 tping 0 5 1234::2 vrf v1 flow 115 r2 tping 100 5 1.1.1.1 vrf v1 flow 130 r2 tping 100 5 1234::1 vrf v1 flow 130 r1 tping 100 5 1.1.1.2 vrf v1 flow 130 r1 tping 100 5 1234::2 vrf v1 flow 130 freeRtr-24.11.16/cfg/crypt-acl73.tst000066400000000000000000000022671471627602100167370ustar00rootroot00000000000000description egress flow matching hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4a permit all any all any all flow 110-120 exit access-list test6a permit all any all any all flow 110-120 exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4b ipv6 access-group-out test6b exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 flow 90 r2 tping 100 5 1234::1 vrf v1 flow 90 r1 tping 100 5 1.1.1.2 vrf v1 flow 90 r1 tping 100 5 1234::2 vrf v1 flow 90 r2 tping 0 5 1.1.1.1 vrf v1 flow 115 r2 tping 0 5 1234::1 vrf v1 flow 115 r1 tping 0 5 1.1.1.2 vrf v1 flow 115 r1 tping 0 5 1234::2 vrf v1 flow 115 r2 tping 100 5 1.1.1.1 vrf v1 flow 130 r2 tping 100 5 1234::1 vrf v1 flow 130 r1 tping 100 5 1.1.1.2 vrf v1 flow 130 r1 tping 100 5 1234::2 vrf v1 flow 130 freeRtr-24.11.16/cfg/crypt-acl74.tst000066400000000000000000000020711471627602100167310ustar00rootroot00000000000000description ingress mask matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all len 256&896 permit all any all any all exit access-list test6 deny all any all any all len 256&896 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 100 r2 tping 100 5 1234::1 vrf v1 siz 100 r1 tping 100 5 1.1.1.2 vrf v1 siz 100 r1 tping 100 5 1234::2 vrf v1 siz 100 r2 tping 0 5 1.1.1.1 vrf v1 siz 300 r2 tping 0 5 1234::1 vrf v1 siz 300 r1 tping 0 5 1.1.1.2 vrf v1 siz 300 r1 tping 0 5 1234::2 vrf v1 siz 300 r2 tping 100 5 1.1.1.1 vrf v1 siz 500 r2 tping 100 5 1234::1 vrf v1 siz 500 r1 tping 100 5 1.1.1.2 vrf v1 siz 500 r1 tping 100 5 1234::2 vrf v1 siz 500 freeRtr-24.11.16/cfg/crypt-acl75.tst000066400000000000000000000020731471627602100167340ustar00rootroot00000000000000description egress mask matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all len 256&896 permit all any all any all exit access-list test6 deny all any all any all len 256&896 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 100 r2 tping 100 5 1234::1 vrf v1 siz 100 r1 tping 100 5 1.1.1.2 vrf v1 siz 100 r1 tping 100 5 1234::2 vrf v1 siz 100 r2 tping 0 5 1.1.1.1 vrf v1 siz 300 r2 tping 0 5 1234::1 vrf v1 siz 300 r1 tping 0 5 1.1.1.2 vrf v1 siz 300 r1 tping 0 5 1234::2 vrf v1 siz 300 r2 tping 100 5 1.1.1.1 vrf v1 siz 500 r2 tping 100 5 1234::1 vrf v1 siz 500 r1 tping 100 5 1.1.1.2 vrf v1 siz 500 r1 tping 100 5 1234::2 vrf v1 siz 500 freeRtr-24.11.16/cfg/crypt-acl76.tst000066400000000000000000000025471471627602100167430ustar00rootroot00000000000000description ingress sgt matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list test4 deny all any all any all sgt 123 permit all any all any all exit access-list test6 deny all any all any all sgt 123 permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 sgt ena ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 sgt ena ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit int eth2 vrf for v1 sgt ass 123 ipv4 addr 2.2.2.1 255.255.255.252 ipv6 addr 4321::1 ffff:ffff:: exit ! addrouter r3 int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 ipv6 addr 4321::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r2 tping 100 5 2.2.2.2 vrf v1 ttl 90 r2 tping 100 5 4321::2 vrf v1 ttl 90 r1 tping 100 5 2.2.2.1 vrf v1 ttl 90 r1 tping 100 5 4321::1 vrf v1 ttl 90 r1 tping 0 5 2.2.2.2 vrf v1 ttl 90 r1 tping 0 5 4321::2 vrf v1 ttl 90 freeRtr-24.11.16/cfg/crypt-acl77.tst000066400000000000000000000025501471627602100167360ustar00rootroot00000000000000description egress sgt matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 sgt ena ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny all any all any all sgt 123 permit all any all any all exit access-list test6 deny all any all any all sgt 123 permit all any all any all exit int eth1 vrf for v1 sgt ena ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 exit int eth2 vrf for v1 sgt ass 123 ipv4 addr 2.2.2.1 255.255.255.252 ipv6 addr 4321::1 ffff:ffff:: exit ! addrouter r3 int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 ipv6 addr 4321::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r2 tping 100 5 1.1.1.1 vrf v1 ttl 90 r2 tping 100 5 1234::1 vrf v1 ttl 90 r2 tping 100 5 2.2.2.2 vrf v1 ttl 90 r2 tping 100 5 4321::2 vrf v1 ttl 90 r1 tping 100 5 2.2.2.1 vrf v1 ttl 90 r1 tping 100 5 4321::1 vrf v1 ttl 90 r1 tping 0 5 2.2.2.2 vrf v1 ttl 90 r1 tping 0 5 4321::2 vrf v1 ttl 90 freeRtr-24.11.16/cfg/crypt-acl78.tst000066400000000000000000000022001471627602100167270ustar00rootroot00000000000000description ingress fragment matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny all any all any all frag permit all any all any all exit access-list test6 deny all any all any all frag permit all any all any all exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r2 tping 100 15 1.1.1.1 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r2 tping 100 15 1234::1 vrf v1 siz 222 r1 tping 0 15 1.1.1.2 vrf v1 siz 2222 r2 tping 0 15 1.1.1.1 vrf v1 siz 2222 r1 tping 0 15 1234::2 vrf v1 siz 2222 r2 tping 0 15 1234::1 vrf v1 siz 2222 freeRtr-24.11.16/cfg/crypt-acl79.tst000066400000000000000000000015711471627602100167420ustar00rootroot00000000000000description ingress alert matching access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny all any all any all alrt permit all any all any all exit access-list test6 deny all any all any all alrt permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 15 1.1.1.2 vrf v1 r2 tping 100 15 1.1.1.1 vrf v1 r1 tping 100 15 1234::2 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 tping 100 15 1.1.1.2 vrf v1 alert 123 r2 tping 0 15 1.1.1.1 vrf v1 alert 123 r1 tping 100 15 1234::2 vrf v1 alert 123 r2 tping 0 15 1234::1 vrf v1 alert 123 freeRtr-24.11.16/cfg/crypt-acl80.tst000066400000000000000000000015431471627602100167310ustar00rootroot00000000000000description gre over ipv4 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl81.tst000066400000000000000000000017211471627602100167300ustar00rootroot00000000000000description sreth over ipv4 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.2 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1.1.1.1 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl82.tst000066400000000000000000000015461471627602100167360ustar00rootroot00000000000000description ipip over ipv4 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl83.tst000066400000000000000000000015101471627602100167260ustar00rootroot00000000000000description icmptunnel over ipv4 filtered addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl84.tst000066400000000000000000000022331471627602100167320ustar00rootroot00000000000000description ipv4 in esp over ipv4 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r2 tping 0 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl85.tst000066400000000000000000000015541471627602100167400ustar00rootroot00000000000000description ipcomp over ipv4 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl86.tst000066400000000000000000000022621471627602100167360ustar00rootroot00000000000000description swipe over ipv4 filtered addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 send conf t r1 send int ser1 r1 send mpls srv6-secur r1 send end r2 send conf t r2 send int ser1 r2 send mpls srv6-secur r2 send end r1 tping 0 5 2.2.2.2 vrf v1 r2 tping 0 5 2.2.2.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r2 tping 0 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl87.tst000066400000000000000000000015431471627602100167400ustar00rootroot00000000000000description gre over ipv6 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl88.tst000066400000000000000000000017211471627602100167370ustar00rootroot00000000000000description sreth over ipv6 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1234::2 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit bridge 1 mac-learn exit vpdn er bridge-group 1 proxy p1 target 1234::1 vcid 123 protocol sreth exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl89.tst000066400000000000000000000015461471627602100167450ustar00rootroot00000000000000description ipip over ipv6 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl90.tst000066400000000000000000000015101471627602100167240ustar00rootroot00000000000000description icmptunnel over ipv6 filtered addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode icmp tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl91.tst000066400000000000000000000022331471627602100167300ustar00rootroot00000000000000description ipv4 in esp over ipv6 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r2 tping 0 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl92.tst000066400000000000000000000015541471627602100167360ustar00rootroot00000000000000description ipcomp over ipv6 filtered addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls srv6-secur exit int tun1 tunnel vrf v1 tunnel mode ipcomp tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-acl93.tst000066400000000000000000000022621471627602100167340ustar00rootroot00000000000000description swipe over ipv6 filtered addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 send conf t r1 send int ser1 r1 send mpls srv6-secur r1 send end r2 send conf t r2 send int ser1 r2 send mpls srv6-secur r2 send end r1 tping 0 5 2.2.2.2 vrf v1 r2 tping 0 5 2.2.2.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r2 tping 0 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-dtls.tst000066400000000000000000000016631471627602100167730ustar00rootroot00000000000000description dtls test addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa server udptn udptn security rsakey rsa security dsakey dsa security ecdsakey ecdsa security rsacert rsa security dsacert dsa security ecdsacert ecdsa security protocol dtls vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 dtls r2 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/crypt-esp101.tst000066400000000000000000000025141471627602100170320ustar00rootroot00000000000000description ipv4 in esp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r2 tping 0 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-esp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-esp102.tst000066400000000000000000000021601471627602100170300ustar00rootroot00000000000000description ipv4 in esp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r2 tping 0 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-esp103.tst000066400000000000000000000021601471627602100170310ustar00rootroot00000000000000description ipv6 in esp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 0 5 2.2.2.2 vrf v1 r2 tping 0 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-esp104.tst000066400000000000000000000021601471627602100170320ustar00rootroot00000000000000description ipv6 in esp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 0 5 2.2.2.2 vrf v1 r2 tping 0 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike101.tst000066400000000000000000000021611471627602100170110ustar00rootroot00000000000000description ipv4 in ike1 over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 0 10 4321::2 vrf v1 r2 tping 0 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike102.tst000066400000000000000000000021611471627602100170120ustar00rootroot00000000000000description ipv4 in ike1 over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 0 10 4321::2 vrf v1 r2 tping 0 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike103.tst000066400000000000000000000021611471627602100170130ustar00rootroot00000000000000description ipv6 in ike1 over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 0 10 2.2.2.2 vrf v1 r2 tping 0 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike104.tst000066400000000000000000000021611471627602100170140ustar00rootroot00000000000000description ipv6 in ike1 over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 0 10 2.2.2.2 vrf v1 r2 tping 0 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike105.tst000066400000000000000000000017061471627602100170210ustar00rootroot00000000000000description ike1 with des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike106.tst000066400000000000000000000017251471627602100170230ustar00rootroot00000000000000description ike1 with blowfish addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher blowfish hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher blowfish hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike107.tst000066400000000000000000000017111471627602100170170ustar00rootroot00000000000000description ike1 with 3des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher 3des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher 3des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike108.tst000066400000000000000000000017301471627602100170210ustar00rootroot00000000000000description ike1 with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128cbc hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes128cbc hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike109.tst000066400000000000000000000017301471627602100170220ustar00rootroot00000000000000description ike1 with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192cbc hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes192cbc hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike110.tst000066400000000000000000000017301471627602100170120ustar00rootroot00000000000000description ike1 with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256cbc hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes256cbc hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike111.tst000066400000000000000000000017061471627602100170160ustar00rootroot00000000000000description ike1 with md5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike112.tst000066400000000000000000000017111471627602100170130ustar00rootroot00000000000000description ike1 with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha1 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash sha1 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike113.tst000066400000000000000000000017171471627602100170220ustar00rootroot00000000000000description ike1 with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha256 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash sha256 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike114.tst000066400000000000000000000017171471627602100170230ustar00rootroot00000000000000description ike1 with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha512 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash sha512 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike115.tst000066400000000000000000000017111471627602100170160ustar00rootroot00000000000000description ike1 with group1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 01 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 01 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike116.tst000066400000000000000000000017111471627602100170170ustar00rootroot00000000000000description ike1 with group2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike117.tst000066400000000000000000000017111471627602100170200ustar00rootroot00000000000000description ike1 with group5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 05 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 05 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike118.tst000066400000000000000000000017121471627602100170220ustar00rootroot00000000000000description ike1 with group14 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 14 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 14 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike119.tst000066400000000000000000000017121471627602100170230ustar00rootroot00000000000000description ike1 with group15 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 15 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 15 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike120.tst000066400000000000000000000017121471627602100170130ustar00rootroot00000000000000description ike1 with group16 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 16 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 16 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike121.tst000066400000000000000000000017121471627602100170140ustar00rootroot00000000000000description ike1 with group17 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 17 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 17 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike122.tst000066400000000000000000000017201471627602100170140ustar00rootroot00000000000000description ike1 with group18 exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 18 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 18 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike123.tst000066400000000000000000000017121471627602100170160ustar00rootroot00000000000000description ike1 with group22 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 22 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 22 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike124.tst000066400000000000000000000017121471627602100170170ustar00rootroot00000000000000description ike1 with group23 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 23 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 23 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike125.tst000066400000000000000000000017121471627602100170200ustar00rootroot00000000000000description ike1 with group24 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 24 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 24 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike126.tst000066400000000000000000000025051471627602100170220ustar00rootroot00000000000000description ike1 over ipsec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 3.3.3.2 vrf v1 r2 tping 100 10 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike201.tst000066400000000000000000000022031471627602100170070ustar00rootroot00000000000000description ipv4 in ike2 over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 0 10 4321::2 vrf v1 r2 tping 0 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike202.tst000066400000000000000000000022031471627602100170100ustar00rootroot00000000000000description ipv4 in ike2 over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 0 10 4321::2 vrf v1 r2 tping 0 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike203.tst000066400000000000000000000022031471627602100170110ustar00rootroot00000000000000description ipv6 in ike2 over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 0 10 2.2.2.2 vrf v1 r2 tping 0 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike204.tst000066400000000000000000000022031471627602100170120ustar00rootroot00000000000000description ipv6 in ike2 over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 0 10 2.2.2.2 vrf v1 r2 tping 0 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike205.tst000066400000000000000000000017301471627602100170170ustar00rootroot00000000000000description ike2 with des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike206.tst000066400000000000000000000017471471627602100170300ustar00rootroot00000000000000description ike2 with blowfish addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher blowfish hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher blowfish hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike207.tst000066400000000000000000000017331471627602100170240ustar00rootroot00000000000000description ike2 with 3des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher 3des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher 3des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike208.tst000066400000000000000000000017521471627602100170260ustar00rootroot00000000000000description ike2 with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128cbc hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes128cbc hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike209.tst000066400000000000000000000017521471627602100170270ustar00rootroot00000000000000description ike2 with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192cbc hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes192cbc hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike210.tst000066400000000000000000000017521471627602100170170ustar00rootroot00000000000000description ike2 with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256cbc hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes256cbc hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike211.tst000066400000000000000000000017301471627602100170140ustar00rootroot00000000000000description ike2 with md5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike212.tst000066400000000000000000000017351471627602100170220ustar00rootroot00000000000000description ike2 with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha1 prf sha1 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash sha1 prf sha1 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike213.tst000066400000000000000000000017471471627602100170260ustar00rootroot00000000000000description ike2 with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha256 prf sha256 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash sha256 prf sha256 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike214.tst000066400000000000000000000017471471627602100170270ustar00rootroot00000000000000description ike2 with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha512 prf sha512 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash sha512 prf sha512 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike215.tst000066400000000000000000000017331471627602100170230ustar00rootroot00000000000000description ike2 with group1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 01 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 01 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike216.tst000066400000000000000000000017331471627602100170240ustar00rootroot00000000000000description ike2 with group2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike217.tst000066400000000000000000000017331471627602100170250ustar00rootroot00000000000000description ike2 with group5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 05 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 05 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike218.tst000066400000000000000000000017341471627602100170270ustar00rootroot00000000000000description ike2 with group14 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 14 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 14 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike219.tst000066400000000000000000000017341471627602100170300ustar00rootroot00000000000000description ike2 with group15 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 15 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 15 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike220.tst000066400000000000000000000017341471627602100170200ustar00rootroot00000000000000description ike2 with group16 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 16 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 16 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike221.tst000066400000000000000000000017341471627602100170210ustar00rootroot00000000000000description ike2 with group17 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 17 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 17 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike222.tst000066400000000000000000000017421471627602100170210ustar00rootroot00000000000000description ike2 with group18 exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 18 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 18 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike223.tst000066400000000000000000000017341471627602100170230ustar00rootroot00000000000000description ike2 with group22 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 22 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 22 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike224.tst000066400000000000000000000017341471627602100170240ustar00rootroot00000000000000description ike2 with group23 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 23 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 23 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike225.tst000066400000000000000000000017341471627602100170250ustar00rootroot00000000000000description ike2 with group24 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 24 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 24 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 30 2.2.2.2 vrf v1 r2 tping 100 30 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike226.tst000066400000000000000000000025271471627602100170270ustar00rootroot00000000000000description ike2 over ipsec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 3.3.3.2 vrf v1 r2 tping 100 10 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike227.tst000066400000000000000000000017261471627602100170300ustar00rootroot00000000000000description ike2 with aes128gcm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128gcm prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes128gcm prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike228.tst000066400000000000000000000017261471627602100170310ustar00rootroot00000000000000description ike2 with aes192gcm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192gcm prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes192gcm prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-ike229.tst000066400000000000000000000017261471627602100170320ustar00rootroot00000000000000description ike2 with aes256gcm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256gcm prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips group 02 cipher aes256gcm prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp01.tst000066400000000000000000000022141471627602100173040ustar00rootroot00000000000000description inlsp over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-inlsp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-inlsp02.tst000066400000000000000000000016561471627602100173160ustar00rootroot00000000000000description inlsp over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp03.tst000066400000000000000000000023341471627602100173110ustar00rootroot00000000000000description inlsp over inlsp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp04.tst000066400000000000000000000021731471627602100173130ustar00rootroot00000000000000description inlsp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp05.tst000066400000000000000000000016551471627602100173200ustar00rootroot00000000000000description inlsp with des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp06.tst000066400000000000000000000016741471627602100173220ustar00rootroot00000000000000description inlsp with blowfish addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp07.tst000066400000000000000000000016601471627602100173160ustar00rootroot00000000000000description inlsp with 3des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp08.tst000066400000000000000000000016771471627602100173270ustar00rootroot00000000000000description inlsp with aes128cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp09.tst000066400000000000000000000016771471627602100173300ustar00rootroot00000000000000description inlsp with aes192cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp10.tst000066400000000000000000000016771471627602100173200ustar00rootroot00000000000000description inlsp with aes256cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp11.tst000066400000000000000000000016551471627602100173150ustar00rootroot00000000000000description inlsp with md5 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp12.tst000066400000000000000000000016601471627602100173120ustar00rootroot00000000000000description inlsp with sha1 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp13.tst000066400000000000000000000016661471627602100173210ustar00rootroot00000000000000description inlsp with sha256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp14.tst000066400000000000000000000016661471627602100173220ustar00rootroot00000000000000description inlsp with sha512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp15.tst000066400000000000000000000016771471627602100173250ustar00rootroot00000000000000description inlsp with aes128cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp16.tst000066400000000000000000000016771471627602100173260ustar00rootroot00000000000000description inlsp with aes192cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp17.tst000066400000000000000000000016771471627602100173270ustar00rootroot00000000000000description inlsp with aes256cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp18.tst000066400000000000000000000016771471627602100173300ustar00rootroot00000000000000description inlsp with aes128ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp19.tst000066400000000000000000000016771471627602100173310ustar00rootroot00000000000000description inlsp with aes192ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp20.tst000066400000000000000000000016771471627602100173210ustar00rootroot00000000000000description inlsp with aes256ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp21.tst000066400000000000000000000016661471627602100173200ustar00rootroot00000000000000description inlsp with sha224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp22.tst000066400000000000000000000016661471627602100173210ustar00rootroot00000000000000description inlsp with sha384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp23.tst000066400000000000000000000016711471627602100173160ustar00rootroot00000000000000description inlsp with sha3224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp24.tst000066400000000000000000000016711471627602100173170ustar00rootroot00000000000000description inlsp with sha3256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp25.tst000066400000000000000000000016711471627602100173200ustar00rootroot00000000000000description inlsp with sha3384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp26.tst000066400000000000000000000016711471627602100173210ustar00rootroot00000000000000description inlsp with sha3512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp27.tst000066400000000000000000000016731471627602100173240ustar00rootroot00000000000000description inlsp with none encryption addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-inlsp28.tst000066400000000000000000000016651471627602100173260ustar00rootroot00000000000000description inlsp with none hash addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode inlsp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-insp01.tst000066400000000000000000000047261471627602100171420ustar00rootroot00000000000000description route inspection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r1 tping 100 5 2.2.2.3 vrf v1 sou lo0 r1 tping 100 5 4321::3 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 tping 100 5 2.2.2.3 vrf v1 sou lo0 r2 tping 100 5 4321::3 vrf v1 sou lo0 r3 tping 100 5 2.2.2.1 vrf v1 sou lo0 r3 tping 100 5 4321::1 vrf v1 sou lo0 r3 tping 100 5 2.2.2.2 vrf v1 sou lo0 r3 tping 100 5 4321::2 vrf v1 sou lo0 r2 output show ipv4 counter v1 r2 output show ipv6 counter v1 output ../binTmp/crypt-insp01.html here is the ipv4 counters:
show:0
here is the ipv6 counters:
show:1
! freeRtr-24.11.16/cfg/crypt-insp02.tst000066400000000000000000000052231471627602100171340ustar00rootroot00000000000000description flow inspection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit ipv4 flow v1 coll ipv6 flow v1 coll int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r1 tping 100 5 2.2.2.3 vrf v1 sou lo0 r1 tping 100 5 4321::3 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 tping 100 5 2.2.2.3 vrf v1 sou lo0 r2 tping 100 5 4321::3 vrf v1 sou lo0 r3 tping 100 5 2.2.2.1 vrf v1 sou lo0 r3 tping 100 5 4321::1 vrf v1 sou lo0 r3 tping 100 5 2.2.2.2 vrf v1 sou lo0 r3 tping 100 5 4321::2 vrf v1 sou lo0 r2 output show ipv4 flow v1 sess r2 output show ipv6 flow v1 sess r2 output show ipv4 flow v1 top r2 output show ipv6 flow v1 top output ../binTmp/crypt-insp02.html here is the ipv4 flows:
show:0
here is the ipv6 flows:
show:1
here is the ipv4 tops:
show:2
here is the ipv6 tops:
show:3
! freeRtr-24.11.16/cfg/crypt-insp03.tst000066400000000000000000000052141471627602100171350ustar00rootroot00000000000000description interface inspection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 inspect mac ipv6 inspect mac exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r1 tping 100 5 2.2.2.3 vrf v1 sou lo0 r1 tping 100 5 4321::3 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 tping 100 5 2.2.2.3 vrf v1 sou lo0 r2 tping 100 5 4321::3 vrf v1 sou lo0 r3 tping 100 5 2.2.2.1 vrf v1 sou lo0 r3 tping 100 5 4321::1 vrf v1 sou lo0 r3 tping 100 5 2.2.2.2 vrf v1 sou lo0 r3 tping 100 5 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 output ../binTmp/crypt-insp03.html here is the ipv4 flows:
show:0
here is the ipv6 flows:
show:1
here is the ipv4 tops:
show:2
here is the ipv6 tops:
show:3
! freeRtr-24.11.16/cfg/crypt-insp04.tst000066400000000000000000000045561471627602100171460ustar00rootroot00000000000000description bridge inspection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 inspect mac exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r1 tping 100 5 2.2.2.3 vrf v1 sou lo0 r1 tping 100 5 4321::3 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 tping 100 5 2.2.2.3 vrf v1 sou lo0 r2 tping 100 5 4321::3 vrf v1 sou lo0 r3 tping 100 5 2.2.2.1 vrf v1 sou lo0 r3 tping 100 5 4321::1 vrf v1 sou lo0 r3 tping 100 5 2.2.2.2 vrf v1 sou lo0 r3 tping 100 5 4321::2 vrf v1 sou lo0 r2 output show bridge 1 output ../binTmp/crypt-insp04.html here is the flows:
show:0
! freeRtr-24.11.16/cfg/crypt-insp05.tst000066400000000000000000000063361471627602100171450ustar00rootroot00000000000000description mpls inspection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls inspect mac exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show mpls insp eth1 sess r2 output show mpls insp eth1 top output ../binTmp/crypt-insp05.html here is the flows:
show:0
here is the tops:
show:1
! freeRtr-24.11.16/cfg/crypt-insp06.tst000066400000000000000000000046751471627602100171520ustar00rootroot00000000000000description interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 host-static 1234:1::2 0000.0000.2222 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 host-static 1234:1::1 0000.0000.1111 ipv4 inspect mac drop-rx ipv6 inspect mac drop-rx exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 freeRtr-24.11.16/cfg/crypt-insp07.tst000066400000000000000000000046741471627602100171520ustar00rootroot00000000000000description interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 host-static 1234:1::2 0000.0000.2222 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 host-static 1234:1::1 0000.0000.1111 ipv4 inspect mac drop-tx ipv6 inspect mac drop-tx exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 0 10 2.2.2.1 vrf v1 sou lo0 r3 tping 0 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 freeRtr-24.11.16/cfg/crypt-insp08.tst000066400000000000000000000060141471627602100171410ustar00rootroot00000000000000description mpls inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls inspect mac drop-rx exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show mpls insp eth1 sess r2 output show mpls insp eth1 top freeRtr-24.11.16/cfg/crypt-insp09.tst000066400000000000000000000060131471627602100171410ustar00rootroot00000000000000description mpls inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls inspect mac drop-tx exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 0 10 2.2.2.1 vrf v1 sou lo0 r3 tping 0 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show mpls insp eth1 sess r2 output show mpls insp eth1 top freeRtr-24.11.16/cfg/crypt-insp10.tst000066400000000000000000000052251471627602100171350ustar00rootroot00000000000000description interface inspection with selective ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 host-static 1234:1::2 0000.0000.2222 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 permit all any all 2.2.2.3 255.255.255.255 all exit access-list test6 permit all any all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 host-static 1234:1::1 0000.0000.1111 ipv4 inspect mac drop-rx allow-list test4 ipv6 inspect mac drop-rx allow-list test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 freeRtr-24.11.16/cfg/crypt-insp11.tst000066400000000000000000000052241471627602100171350ustar00rootroot00000000000000description interface inspection with selective egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 host-static 1234:1::2 0000.0000.2222 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 permit all 2.2.2.3 255.255.255.255 all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 host-static 1234:1::1 0000.0000.1111 ipv4 inspect mac drop-tx allow-list test4 ipv6 inspect mac drop-tx allow-list test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 freeRtr-24.11.16/cfg/crypt-insp12.tst000066400000000000000000000062711471627602100171410ustar00rootroot00000000000000description mpls inspection with selective ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test permit all any all 2.2.2.3 255.255.255.255 all permit all any all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls inspect mac drop-rx allow-list test exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show mpls insp eth1 sess r2 output show mpls insp eth1 top freeRtr-24.11.16/cfg/crypt-insp13.tst000066400000000000000000000062701471627602100171410ustar00rootroot00000000000000description mpls inspection with selective egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test permit all 2.2.2.3 255.255.255.255 all any all permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 mpls inspect mac drop-tx allow-list test exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show mpls insp eth1 sess r2 output show mpls insp eth1 top freeRtr-24.11.16/cfg/crypt-insp14.tst000066400000000000000000000047701471627602100171450ustar00rootroot00000000000000description interface inspection with member ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 host-static 1234:1::2 0000.0000.2222 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit session ins4 drop-rx exit session ins6 drop-rx exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 host-static 1234:1::1 0000.0000.1111 ipv4 inspect memb ins4 ipv6 inspect memb ins6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 freeRtr-24.11.16/cfg/crypt-insp15.tst000066400000000000000000000047671471627602100171540ustar00rootroot00000000000000description interface inspection with member egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 host-static 1234:1::2 0000.0000.2222 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit session ins4 drop-tx exit session ins6 drop-tx exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 host-static 1234:1::1 0000.0000.1111 ipv4 inspect memb ins4 ipv6 inspect memb ins6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 0 10 2.2.2.1 vrf v1 sou lo0 r3 tping 0 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r2 output show ipv4 insp eth1 r2 output show ipv6 insp eth1 r2 output show ipv4 top eth1 r2 output show ipv6 top eth1 freeRtr-24.11.16/cfg/crypt-macsec01.tst000066400000000000000000000016161471627602100174170ustar00rootroot00000000000000description macsec over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 r1 output show inter eth1 full output ../binTmp/crypt-macsec.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-macsec02.tst000066400000000000000000000012721471627602100174160ustar00rootroot00000000000000description macsec over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1.11 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1.11 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec03.tst000066400000000000000000000013411471627602100174140ustar00rootroot00000000000000description macsec over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec04.tst000066400000000000000000000012451471627602100174200ustar00rootroot00000000000000description macsec over hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc hdlc vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc hdlc vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec05.tst000066400000000000000000000013461471627602100174230ustar00rootroot00000000000000description macsec over ppp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec06.tst000066400000000000000000000013661471627602100174260ustar00rootroot00000000000000description macsec over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc framerelay framerelay dlci 123 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec07.tst000066400000000000000000000013431471627602100174220ustar00rootroot00000000000000description macsec over atmdxi addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec08.tst000066400000000000000000000013131471627602100174200ustar00rootroot00000000000000description macsec over atmsar addrouter r1 int atm1 atm - $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int atm1 atmsar vpi 1 atmsar vci 2 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int atm1 atm - $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int atm1 atmsar vpi 1 atmsar vci 2 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec09.tst000066400000000000000000000020041471627602100174170ustar00rootroot00000000000000description macsec over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::2 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec10.tst000066400000000000000000000012341471627602100174130ustar00rootroot00000000000000description macsec with des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec11.tst000066400000000000000000000012531471627602100174150ustar00rootroot00000000000000description macsec with blowfish addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher blowfish hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher blowfish hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec12.tst000066400000000000000000000012371471627602100174200ustar00rootroot00000000000000description macsec with 3des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher 3des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher 3des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec13.tst000066400000000000000000000012561471627602100174220ustar00rootroot00000000000000description macsec with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128cbc hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128cbc hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec14.tst000066400000000000000000000012561471627602100174230ustar00rootroot00000000000000description macsec with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192cbc hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192cbc hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec15.tst000066400000000000000000000012561471627602100174240ustar00rootroot00000000000000description macsec with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec16.tst000066400000000000000000000012341471627602100174210ustar00rootroot00000000000000description macsec with md5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec17.tst000066400000000000000000000012371471627602100174250ustar00rootroot00000000000000description macsec with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec18.tst000066400000000000000000000012451471627602100174250ustar00rootroot00000000000000description macsec with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha256 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha256 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec19.tst000066400000000000000000000012451471627602100174260ustar00rootroot00000000000000description macsec with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec20.tst000066400000000000000000000012371471627602100174170ustar00rootroot00000000000000description macsec with group1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 01 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 01 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec21.tst000066400000000000000000000012371471627602100174200ustar00rootroot00000000000000description macsec with group2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec22.tst000066400000000000000000000012371471627602100174210ustar00rootroot00000000000000description macsec with group5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 05 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 05 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec23.tst000066400000000000000000000012401471627602100174140ustar00rootroot00000000000000description macsec with group14 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 14 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 14 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec24.tst000066400000000000000000000012401471627602100174150ustar00rootroot00000000000000description macsec with group15 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 15 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 15 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec25.tst000066400000000000000000000012401471627602100174160ustar00rootroot00000000000000description macsec with group16 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 16 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 16 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec26.tst000066400000000000000000000012401471627602100174170ustar00rootroot00000000000000description macsec with group17 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 17 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 17 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec27.tst000066400000000000000000000012401471627602100174200ustar00rootroot00000000000000description macsec with group18 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 18 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 18 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec28.tst000066400000000000000000000012401471627602100174210ustar00rootroot00000000000000description macsec with group22 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 22 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 22 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec29.tst000066400000000000000000000012401471627602100174220ustar00rootroot00000000000000description macsec with group23 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 23 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 23 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec30.tst000066400000000000000000000012401471627602100174120ustar00rootroot00000000000000description macsec with group24 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 24 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 24 cipher des hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec31.tst000066400000000000000000000013501471627602100174150ustar00rootroot00000000000000description macsec over ethernet bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bundle 1 ether exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 bundle-gr 1 exit int bun1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec32.tst000066400000000000000000000014311471627602100174160ustar00rootroot00000000000000description macsec over ethernet hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit hairpin 1 ether exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 bridge-gr 1 exit int hair11 bridge-gr 1 exit int hair12 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec33.tst000066400000000000000000000011411471627602100174150ustar00rootroot00000000000000description no macsec over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 macsec ips disable-macsec ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec34.tst000066400000000000000000000012561471627602100174250ustar00rootroot00000000000000description macsec with aes128cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128cfb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128cfb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec35.tst000066400000000000000000000012561471627602100174260ustar00rootroot00000000000000description macsec with aes192cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192cfb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192cfb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec36.tst000066400000000000000000000012561471627602100174270ustar00rootroot00000000000000description macsec with aes256cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cfb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cfb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec37.tst000066400000000000000000000012561471627602100174300ustar00rootroot00000000000000description macsec with aes128ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128ecb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128ecb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec38.tst000066400000000000000000000012561471627602100174310ustar00rootroot00000000000000description macsec with aes192ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192ecb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192ecb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec39.tst000066400000000000000000000012561471627602100174320ustar00rootroot00000000000000description macsec with aes256ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256ecb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256ecb hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec40.tst000066400000000000000000000012451471627602100174200ustar00rootroot00000000000000description macsec with sha224 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha224 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha224 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec41.tst000066400000000000000000000012451471627602100174210ustar00rootroot00000000000000description macsec with sha384 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha384 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha384 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec42.tst000066400000000000000000000012501471627602100174160ustar00rootroot00000000000000description macsec with sha3224 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3224 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3224 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec43.tst000066400000000000000000000012501471627602100174170ustar00rootroot00000000000000description macsec with sha3256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3256 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3256 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec44.tst000066400000000000000000000012501471627602100174200ustar00rootroot00000000000000description macsec with sha3384 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3384 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3384 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec45.tst000066400000000000000000000012501471627602100174210ustar00rootroot00000000000000description macsec with sha3512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3512 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash sha3512 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec46.tst000066400000000000000000000012521471627602100174240ustar00rootroot00000000000000description macsec with none encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher none hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher none hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec47.tst000066400000000000000000000012441471627602100174260ustar00rootroot00000000000000description macsec with none hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec48.tst000066400000000000000000000012671471627602100174340ustar00rootroot00000000000000description macsec with aes128gcm and hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128gcm hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128gcm hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec49.tst000066400000000000000000000012671471627602100174350ustar00rootroot00000000000000description macsec with aes192gcm and hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192gcm hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192gcm hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec50.tst000066400000000000000000000012671471627602100174250ustar00rootroot00000000000000description macsec with aes256gcm and hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256gcm hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256gcm hash md5 key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec51.tst000066400000000000000000000012711471627602100174210ustar00rootroot00000000000000description macsec with aes128gcm and aead addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128gcm hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes128gcm hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec52.tst000066400000000000000000000012711471627602100174220ustar00rootroot00000000000000description macsec with aes192gcm and aead addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192gcm hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes192gcm hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec53.tst000066400000000000000000000012711471627602100174230ustar00rootroot00000000000000description macsec with aes256gcm and aead addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256gcm hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256gcm hash none key tester exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec54.tst000066400000000000000000000020071471627602100174220ustar00rootroot00000000000000description macsec over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 9999::2 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode tmux tunnel source ethernet1 tunnel destination 9999::1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec55.tst000066400000000000000000000020541471627602100174250ustar00rootroot00000000000000description macsec over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel key 1234 tunnel mode l2tp3 tunnel source ethernet1 tunnel destination 9999::2 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher aes256cbc hash sha1 key tester exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel key 1234 tunnel mode l2tp3 tunnel source ethernet1 tunnel destination 9999::1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-macsec56.tst000066400000000000000000000022451471627602100174300ustar00rootroot00000000000000description macsec with static key addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role stat group 02 cipher aes256cbc hash sha1 key 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role stat group 02 cipher aes256cbc hash sha1 key 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 exit int eth1 vrf for v1 macsec ips ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 30 1.1.1.2 vrf v1 r2 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 1234::2 vrf v1 r2 tping 100 30 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-nat01.tst000066400000000000000000000026261471627602100167500ustar00rootroot00000000000000description source list translation to interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 nat v1 srclist test4 interface ethernet1 ipv6 nat v1 srclist test6 interface ethernet1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran output ../binTmp/crypt-nat.html here is the translation list:
show:0
here is the ipv6 translation list:
show:1
! freeRtr-24.11.16/cfg/crypt-nat02.tst000066400000000000000000000022021471627602100167370ustar00rootroot00000000000000description source list translation to address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 nat v1 srclist test4 1.1.1.2 ipv6 nat v1 srclist test6 1234:1::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat03.tst000066400000000000000000000026401471627602100167460ustar00rootroot00000000000000description source list translation to pool addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 gateway-process ipv6 gateway-process exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 pool a4 1.1.2.1 0.0.0.1 222 ipv6 pool a6 1234:3::1 ::1234 222 ipv4 nat v1 srclist test4 pool a4 ipv6 nat v1 srclist test6 pool a6 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat04.tst000066400000000000000000000023411471627602100167450ustar00rootroot00000000000000description source address translation to interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 8.8.8.8 255.255.255.255 1.1.1.6 ipv6 route v1 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 nat v1 source 8.8.8.8 interface eth1 ipv6 nat v1 source 8888::8 interface eth1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 8.8.8.8 255.255.255.255 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 sou lo1 r3 tping 100 5 1234:1::1 vrf v1 sou lo1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat05.tst000066400000000000000000000026051471627602100167510ustar00rootroot00000000000000description source address translation to address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 route v1 8.8.8.8 255.255.255.255 1.1.1.6 ipv6 route v1 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 nat v1 source 8.8.8.8 1.1.1.2 ipv6 nat v1 source 8888::8 1234:1::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 8.8.8.8 255.255.255.255 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 sou lo1 r3 tping 100 5 1234:1::1 vrf v1 sou lo1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat06.tst000066400000000000000000000027621471627602100167560ustar00rootroot00000000000000description source address translation to pool addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 gateway-process ipv6 gateway-process exit ipv4 route v1 8.8.8.8 255.255.255.255 1.1.1.6 ipv6 route v1 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 pool a4 1.1.2.1 0.0.0.1 222 ipv6 pool a6 1234:3::1 ::1234 222 ipv4 nat v1 source 8.8.8.8 pool a4 ipv6 nat v1 source 8888::8 pool a6 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 8.8.8.8 255.255.255.255 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 sou lo1 r3 tping 100 5 1234:1::1 vrf v1 sou lo1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat07.tst000066400000000000000000000023111471627602100167450ustar00rootroot00000000000000description target address translation to address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 nat v1 target 8.8.8.8 1.1.1.1 ipv6 nat v1 target 8888::1 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 8.8.8.8 vrf v1 r3 tping 100 5 8888::1 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat08.tst000066400000000000000000000036751471627602100167640ustar00rootroot00000000000000description more sources translation to interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.129 255.255.255.128 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.128 255.255.255.128 all 1.1.1.0 255.255.255.128 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 nat v1 srclist test4 interface ethernet1 ipv6 nat v1 srclist test6 interface ethernet1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ int eth3 eth 0000.0000.3333 $4a$ $4b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.130 255.255.255.128 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.129 ipv6 route v1 :: :: 1234:2::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.131 255.255.255.128 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.129 ipv6 route v1 :: :: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.132 255.255.255.128 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.129 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r5 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r5 tping 100 5 1234:1::1 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat09.tst000066400000000000000000000020521471627602100167510ustar00rootroot00000000000000description ipv4-ipv6 protocol translation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int eth2 vrf for v1 ipv6 addr 1234::101:106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc exit int tun1 tunnel vrf v1 tunnel key 120 tunnel mode 6to4 tunnel source eth2 tunnel destination 1234::101:101 vrf for v1 ipv4 addr 1.1.1.0 255.255.255.0 ipv6 addr 1234::101:100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv6 addr 1234::101:105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc exit ipv6 route v1 :: :: 1234::101:106 ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::101:105 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234::101:101 vrf v1 freeRtr-24.11.16/cfg/crypt-nat10.tst000066400000000000000000000027521471627602100167500ustar00rootroot00000000000000description source prefix translation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 7.7.7.0 255.255.255.0 1.1.1.2 ipv6 route v1 7777:: ffff:ffff:: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 route v1 8.8.8.8 255.255.255.255 1.1.1.6 ipv6 route v1 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 nat v1 srcpref 8.8.8.8 7.7.7.7 255.255.255.0 ipv6 nat v1 srcpref 8888::8 7777::7 ffff:ffff:: ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 8.8.8.8 255.255.255.255 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.1 vrf v1 sou lo1 r3 tping 100 5 1234:1::1 vrf v1 sou lo1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat11.tst000066400000000000000000000027301471627602100167450ustar00rootroot00000000000000description target prefix translation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 7.7.7.0 255.255.255.0 1.1.1.2 ipv6 route v1 7777:: ffff:ffff:: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 route v1 8.8.8.8 255.255.255.255 1.1.1.6 ipv6 route v1 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 nat v1 trgpref 7.7.7.7 8.8.8.8 255.255.255.0 ipv6 nat v1 trgpref 7777::7 8888::8 ffff:ffff:: ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 8.8.8.8 255.255.255.255 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r1 tping 100 5 7.7.7.8 vrf v1 r1 tping 100 5 7777::8 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat12.tst000066400000000000000000000026321471627602100167470ustar00rootroot00000000000000description nat64 translation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234::2 access-list nat deny all fe80:: ffff:: all any all deny all any all fe80:: ffff:: all deny all any all ff00:: ff00:: all deny all 6464:: ffff:ffff:ffff:ffff:: all 6464:: ffff:ffff:ffff:ffff:: all perm all any all 6464:: ffff:ffff:ffff:ffff:: all exit int tun1 tun key 96 tun vrf v1 tun sou eth2 tun des 6464::a01:4042 tun mod 6to4 vrf forwarding v1 ipv4 addr 10.1.64.65 255.255.255.252 ipv6 addr 6464::a01:4042 ffff:ffff:ffff:ffff:ffff:ffff:: exit ipv6 nat v1 srclist nat int tun1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv6 addr 1234::2 ffff:ffff:: exit int lo1 vrf for v1 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv6 route v1 :: :: 1234::1 ! r1 tping 100 5 1.1.1.2 vrf v1 r3 tping 100 5 1234::1 vrf v1 r3 tping 100 5 6464::0202:0202 vrf v1 sou lo1 freeRtr-24.11.16/cfg/crypt-nat13.tst000066400000000000000000000030111471627602100167400ustar00rootroot00000000000000description source port randomization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 nat v1 seq 10 srclist test4 interface ethernet1 ipv4 nat v1 seq 10 random 1024 2048 ipv6 nat v1 seq 10 srclist test6 interface ethernet1 ipv6 nat v1 seq 10 random 1024 2048 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r2 tping 100 5 1.1.1.6 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r3 send telnet 1.1.1.1 666 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 send exit r3 read closed r3 send telnet 1234:1::1 666 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r3 send exit r3 read closed r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat14.tst000066400000000000000000000025211471627602100167460ustar00rootroot00000000000000description source interface translation to address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 route v1 8.8.8.8 255.255.255.255 1.1.1.6 ipv6 route v1 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 nat v1 source interface eth2 1.1.1.2 ipv6 nat v1 source interface eth2 1234:1::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 8.8.8.8 255.255.255.255 ipv6 addr 8888::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! r3 tping 100 5 1.1.1.5 vrf v1 sou lo1 r3 tping 100 5 1234:2::1 vrf v1 sou lo1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat15.tst000066400000000000000000000023331471627602100167500ustar00rootroot00000000000000description target interface translation to address addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list test4 permit all 1.1.1.4 255.255.255.252 all 1.1.1.0 255.255.255.252 all exit access-list test6 permit all 1234:2:: ffff:ffff:: all 1234:1:: ffff:ffff:: all exit ipv4 nat v1 target interface eth2 1.1.1.1 ipv6 nat v1 target interface eth2 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234:2::1 vrf v1 r2 output show ipv4 nat v1 tran r2 output show ipv6 nat v1 tran freeRtr-24.11.16/cfg/crypt-nat16.tst000066400000000000000000000034121471627602100167500ustar00rootroot00000000000000description ipv4 target port selection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun dom 1.1.1.2 10000-19999 1.1.1.6 20000-29999 tun mod aplusp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 ipv6 addr 4321::1234 ffff:ffff:: exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 client tcp-portrange 12000 13000 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 client tcp-portrange 22000 23000 ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234:2::1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 sou lo1 r2 tping 100 5 3.3.3.3 vrf v2 r2 send exit r2 read closed r3 send telnet 1.1.1.1 666 vrf v1 sou lo1 r3 tping 100 5 3.3.3.3 vrf v2 r3 send exit r3 read closed freeRtr-24.11.16/cfg/crypt-nat17.tst000066400000000000000000000034221471627602100167520ustar00rootroot00000000000000description ipv6 target port selection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun dom 1234:1::2 10000-19999 1234:2::2 20000-29999 tun mod aplusp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 ipv6 addr 4321::1234 ffff:ffff:: exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 client tcp-portrange 12000 13000 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 client tcp-portrange 22000 23000 ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1234:2::1 vrf v1 r2 send telnet 1234:1::1 666 vrf v1 sou lo1 r2 tping 100 5 3.3.3.3 vrf v2 r2 send exit r2 read closed r3 send telnet 1234:1::1 666 vrf v1 sou lo1 r3 tping 100 5 3.3.3.3 vrf v2 r3 send exit r3 read closed freeRtr-24.11.16/cfg/crypt-openvpn01.tst000066400000000000000000000042101471627602100176420ustar00rootroot00000000000000description openvpn over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-openvpn.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-openvpn02.tst000066400000000000000000000036501471627602100176520ustar00rootroot00000000000000description openvpn over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn03.tst000066400000000000000000000067041471627602100176560ustar00rootroot00000000000000description openvpn over openvpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips1 cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit crypto ipsec ips2 cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips2 tunnel mode openvpn tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips1 tunnel mode openvpn tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit crypto ipsec ips1 cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit crypto ipsec ips2 cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips2 tunnel mode openvpn tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips1 tunnel mode openvpn tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn04.tst000066400000000000000000000041651471627602100176560ustar00rootroot00000000000000description openvpn over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn05.tst000066400000000000000000000036471471627602100176630ustar00rootroot00000000000000description openvpn with des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn06.tst000066400000000000000000000036661471627602100176650ustar00rootroot00000000000000description openvpn with blowfish addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn07.tst000066400000000000000000000036521471627602100176610ustar00rootroot00000000000000description openvpn with 3des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher 3des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher 3des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn08.tst000066400000000000000000000036711471627602100176630ustar00rootroot00000000000000description openvpn with aes128cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn09.tst000066400000000000000000000036711471627602100176640ustar00rootroot00000000000000description openvpn with aes192cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn10.tst000066400000000000000000000036711471627602100176540ustar00rootroot00000000000000description openvpn with aes256cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn11.tst000066400000000000000000000036471471627602100176600ustar00rootroot00000000000000description openvpn with md5 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn12.tst000066400000000000000000000036521471627602100176550ustar00rootroot00000000000000description openvpn with sha1 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha1 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha1 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn13.tst000066400000000000000000000036601471627602100176550ustar00rootroot00000000000000description openvpn with sha256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha256 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha256 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn14.tst000066400000000000000000000036601471627602100176560ustar00rootroot00000000000000description openvpn with sha512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha512 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha512 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn15.tst000066400000000000000000000037401471627602100176560ustar00rootroot00000000000000description openvpn over asymmetric ports addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel key 1234 4321 tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel key 4321 1234 tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn16.tst000066400000000000000000000036711471627602100176620ustar00rootroot00000000000000description openvpn with aes128cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn17.tst000066400000000000000000000036711471627602100176630ustar00rootroot00000000000000description openvpn with aes192cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn18.tst000066400000000000000000000036711471627602100176640ustar00rootroot00000000000000description openvpn with aes256cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn19.tst000066400000000000000000000036711471627602100176650ustar00rootroot00000000000000description openvpn with aes128ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn20.tst000066400000000000000000000036711471627602100176550ustar00rootroot00000000000000description openvpn with aes192ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn21.tst000066400000000000000000000036711471627602100176560ustar00rootroot00000000000000description openvpn with aes256ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn22.tst000066400000000000000000000036601471627602100176550ustar00rootroot00000000000000description openvpn with sha224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha224 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha224 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn23.tst000066400000000000000000000036601471627602100176560ustar00rootroot00000000000000description openvpn with sha384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha384 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha384 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn24.tst000066400000000000000000000036631471627602100176620ustar00rootroot00000000000000description openvpn with sha3224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3224 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3224 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn25.tst000066400000000000000000000036631471627602100176630ustar00rootroot00000000000000description openvpn with sha3256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3256 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3256 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn26.tst000066400000000000000000000036631471627602100176640ustar00rootroot00000000000000description openvpn with sha3384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3384 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3384 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn27.tst000066400000000000000000000036631471627602100176650ustar00rootroot00000000000000description openvpn with sha3512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3512 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3512 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn28.tst000066400000000000000000000036651471627602100176700ustar00rootroot00000000000000description openvpn with none encryption addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher none hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher none hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-openvpn29.tst000066400000000000000000000036571471627602100176720ustar00rootroot00000000000000description openvpn with none hash addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash none key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash none key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode openvpn tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-proxy.tst000066400000000000000000000024501471627602100172010ustar00rootroot00000000000000description transparent proxy addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 proxy-profile p1 vrf v1 exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int ser1 transproxy p1 exit int ser2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit int lo0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:: exit server telnet telnet vrf v1 exit ! r2 tping 100 10 2.2.2.3 vrf v1 r1 tping 0 5 3.3.3.3 vrf v1 r1 send telnet 2.2.2.3 prox p1 r1 tping 100 5 3.3.3.3 vrf v1 r1 send exit r1 read closed r1 tping 0 60 3.3.3.3 vrf v1 r1 send telnet 4321::3 prox p1 r1 tping 100 5 3.3.3.3 vrf v1 r1 send exit r1 read closed r1 tping 0 60 3.3.3.3 vrf v1 r2 output show transprox ser1 output ../binTmp/crypt-proxy.html here is the session list:
show:0
! freeRtr-24.11.16/cfg/crypt-satp01.tst000066400000000000000000000022101471627602100171220ustar00rootroot00000000000000description satp over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-satp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-satp02.tst000066400000000000000000000016531471627602100171350ustar00rootroot00000000000000description satp over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp03.tst000066400000000000000000000023261471627602100171340ustar00rootroot00000000000000description satp over satp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp04.tst000066400000000000000000000021701471627602100171320ustar00rootroot00000000000000description satp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp05.tst000066400000000000000000000016521471627602100171370ustar00rootroot00000000000000description satp with des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp06.tst000066400000000000000000000016711471627602100171410ustar00rootroot00000000000000description satp with blowfish addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp07.tst000066400000000000000000000016551471627602100171440ustar00rootroot00000000000000description satp with 3des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp08.tst000066400000000000000000000016741471627602100171460ustar00rootroot00000000000000description satp with aes128cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp09.tst000066400000000000000000000016741471627602100171470ustar00rootroot00000000000000description satp with aes192cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp10.tst000066400000000000000000000016741471627602100171370ustar00rootroot00000000000000description satp with aes256cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp11.tst000066400000000000000000000016521471627602100171340ustar00rootroot00000000000000description satp with md5 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp12.tst000066400000000000000000000016551471627602100171400ustar00rootroot00000000000000description satp with sha1 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp13.tst000066400000000000000000000016631471627602100171400ustar00rootroot00000000000000description satp with sha256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp14.tst000066400000000000000000000016631471627602100171410ustar00rootroot00000000000000description satp with sha512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp15.tst000066400000000000000000000017431471627602100171410ustar00rootroot00000000000000description satp over asymmetric ports addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel key 1234 4321 tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel key 4321 1234 tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp16.tst000066400000000000000000000016741471627602100171450ustar00rootroot00000000000000description satp with aes128cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp17.tst000066400000000000000000000016741471627602100171460ustar00rootroot00000000000000description satp with aes192cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp18.tst000066400000000000000000000016741471627602100171470ustar00rootroot00000000000000description satp with aes256cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp19.tst000066400000000000000000000016741471627602100171500ustar00rootroot00000000000000description satp with aes128ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp20.tst000066400000000000000000000016741471627602100171400ustar00rootroot00000000000000description satp with aes192ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp21.tst000066400000000000000000000016741471627602100171410ustar00rootroot00000000000000description satp with aes256ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp22.tst000066400000000000000000000016631471627602100171400ustar00rootroot00000000000000description satp with sha224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp23.tst000066400000000000000000000016631471627602100171410ustar00rootroot00000000000000description satp with sha384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp24.tst000066400000000000000000000016661471627602100171450ustar00rootroot00000000000000description satp with sha3224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp25.tst000066400000000000000000000016661471627602100171460ustar00rootroot00000000000000description satp with sha3256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp26.tst000066400000000000000000000016661471627602100171470ustar00rootroot00000000000000description satp with sha3384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp27.tst000066400000000000000000000016661471627602100171500ustar00rootroot00000000000000description satp with sha3512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp28.tst000066400000000000000000000016701471627602100171440ustar00rootroot00000000000000description satp with none encryption addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-satp29.tst000066400000000000000000000016621471627602100171460ustar00rootroot00000000000000description satp with none hash addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode satp tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt01.tst000066400000000000000000000010011471627602100167450ustar00rootroot00000000000000description sgt ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt02.tst000066400000000000000000000010051471627602100167520ustar00rootroot00000000000000description sgt vlan encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt03.tst000066400000000000000000000010521471627602100167550ustar00rootroot00000000000000description sgt bridge encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt04.tst000066400000000000000000000010521471627602100167560ustar00rootroot00000000000000description sgt bundle encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bundle 1 exit int eth1 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt05.tst000066400000000000000000000007671471627602100167730ustar00rootroot00000000000000description sgt hdlc encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc hdlc ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt06.tst000066400000000000000000000007641471627602100167710ustar00rootroot00000000000000description sgt ppp encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc ppp ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt07.tst000066400000000000000000000011621471627602100167630ustar00rootroot00000000000000description sgt framerelay encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt08.tst000066400000000000000000000010651471627602100167660ustar00rootroot00000000000000description sgt atmdxi encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt09.tst000066400000000000000000000010061471627602100167620ustar00rootroot00000000000000description sgt isdn encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc isdn ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt10.tst000066400000000000000000000007641471627602100167640ustar00rootroot00000000000000description sgt sep encapsulation addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 enc sep ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt11.tst000066400000000000000000000015431471627602100167610ustar00rootroot00000000000000description sgt gre encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun mod gre sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun mod gre sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt12.tst000066400000000000000000000027511471627602100167640ustar00rootroot00000000000000description sgt ethernet chain encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-out p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/crypt-sgt13.tst000066400000000000000000000027651471627602100167720ustar00rootroot00000000000000description sgt vlan chain encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1.123 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1.123 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2.123 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1.123 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-out p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/crypt-sgt14.tst000066400000000000000000000030251471627602100167610ustar00rootroot00000000000000description sgt vlan map out encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1.123 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1.123 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena exit int eth2.123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 sgt ena exit int eth1.123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-out p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/crypt-sgt15.tst000066400000000000000000000034071471627602100167660ustar00rootroot00000000000000description sgt tunnel map out encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int tun1 tun vrf v1 tun sou eth2 tun dest 3.3.3.2 tun mod gre sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 3.3.3.1 tun mod gre sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-out p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/crypt-sgt16.tst000066400000000000000000000032571471627602100167720ustar00rootroot00000000000000description sgt over macsec ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 macsec ips sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 macsec ips sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-out p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 30 2.2.2.2 vrf v1 siz 200 r3 tping 100 30 1.1.1.1 vrf v1 siz 200 r1 tping 100 30 4321::2 vrf v1 siz 200 r3 tping 100 30 1234::1 vrf v1 siz 200 r1 tping 0 30 2.2.2.2 vrf v1 siz 400 r3 tping 0 30 1.1.1.1 vrf v1 siz 400 r1 tping 0 30 4321::2 vrf v1 siz 400 r3 tping 0 30 1234::1 vrf v1 siz 400 r1 tping 100 30 2.2.2.2 vrf v1 siz 600 r3 tping 100 30 1.1.1.1 vrf v1 siz 600 r1 tping 100 30 4321::2 vrf v1 siz 600 r3 tping 100 30 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/crypt-sgt17.tst000066400000000000000000000033211471627602100167630ustar00rootroot00000000000000description sgt over macsec vlan encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 macsec ips exit int eth1.123 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int eth1 macsec ips exit int eth1.123 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-out p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 30 2.2.2.2 vrf v1 siz 200 r3 tping 100 30 1.1.1.1 vrf v1 siz 200 r1 tping 100 30 4321::2 vrf v1 siz 200 r3 tping 100 30 1234::1 vrf v1 siz 200 r1 tping 0 30 2.2.2.2 vrf v1 siz 400 r3 tping 0 30 1.1.1.1 vrf v1 siz 400 r1 tping 0 30 4321::2 vrf v1 siz 400 r3 tping 0 30 1234::1 vrf v1 siz 400 r1 tping 100 30 2.2.2.2 vrf v1 siz 600 r3 tping 100 30 1.1.1.1 vrf v1 siz 600 r1 tping 100 30 4321::2 vrf v1 siz 600 r3 tping 100 30 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/crypt-sgt18.tst000066400000000000000000000011421471627602100167630ustar00rootroot00000000000000description sgt hairpin encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit hairpin 1 ether exit int eth1 bridge-gr 1 exit int hair11 bridge-gr 1 exit int hair12 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt19.tst000066400000000000000000000010101471627602100167560ustar00rootroot00000000000000description no sgt ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena disable-sgt exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt20.tst000066400000000000000000000024101471627602100167530ustar00rootroot00000000000000description sgt encapsulation with ingress allow addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena sgt allow-in 0 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 sgt 0 r3 tping 100 5 1.1.1.1 vrf v1 sgt 0 r1 tping 100 5 4321::2 vrf v1 sgt 0 r3 tping 100 5 1234::1 vrf v1 sgt 0 r1 tping 0 5 2.2.2.2 vrf v1 sgt 1 r3 tping 0 5 1.1.1.1 vrf v1 sgt 1 r1 tping 0 5 4321::2 vrf v1 sgt 1 r3 tping 0 5 1234::1 vrf v1 sgt 1 r1 tping 100 5 2.2.2.2 vrf v1 sgt 2 r3 tping 100 5 1.1.1.1 vrf v1 sgt 2 r1 tping 100 5 4321::2 vrf v1 sgt 2 r3 tping 100 5 1234::1 vrf v1 sgt 2 freeRtr-24.11.16/cfg/crypt-sgt21.tst000066400000000000000000000024101471627602100167540ustar00rootroot00000000000000description sgt encapsulation with egress allow addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena sgt allow-out 0 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 sgt 0 r3 tping 100 5 1.1.1.1 vrf v1 sgt 0 r1 tping 100 5 4321::2 vrf v1 sgt 0 r3 tping 100 5 1234::1 vrf v1 sgt 0 r1 tping 0 5 2.2.2.2 vrf v1 sgt 1 r3 tping 0 5 1.1.1.1 vrf v1 sgt 1 r1 tping 0 5 4321::2 vrf v1 sgt 1 r3 tping 0 5 1234::1 vrf v1 sgt 1 r1 tping 100 5 2.2.2.2 vrf v1 sgt 2 r3 tping 100 5 1.1.1.1 vrf v1 sgt 2 r1 tping 100 5 4321::2 vrf v1 sgt 2 r3 tping 100 5 1234::1 vrf v1 sgt 2 freeRtr-24.11.16/cfg/crypt-sgt22.tst000066400000000000000000000024101471627602100167550ustar00rootroot00000000000000description sgt encapsulation with ingress forbid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena sgt forbid-in 1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 sgt 0 r3 tping 100 5 1.1.1.1 vrf v1 sgt 0 r1 tping 100 5 4321::2 vrf v1 sgt 0 r3 tping 100 5 1234::1 vrf v1 sgt 0 r1 tping 0 5 2.2.2.2 vrf v1 sgt 1 r3 tping 0 5 1.1.1.1 vrf v1 sgt 1 r1 tping 0 5 4321::2 vrf v1 sgt 1 r3 tping 0 5 1234::1 vrf v1 sgt 1 r1 tping 100 5 2.2.2.2 vrf v1 sgt 2 r3 tping 100 5 1.1.1.1 vrf v1 sgt 2 r1 tping 100 5 4321::2 vrf v1 sgt 2 r3 tping 100 5 1234::1 vrf v1 sgt 2 freeRtr-24.11.16/cfg/crypt-sgt23.tst000066400000000000000000000024101471627602100167560ustar00rootroot00000000000000description sgt encapsulation with egress forbid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena sgt forbid-out 1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 sgt 0 r3 tping 100 5 1.1.1.1 vrf v1 sgt 0 r1 tping 100 5 4321::2 vrf v1 sgt 0 r3 tping 100 5 1234::1 vrf v1 sgt 0 r1 tping 0 5 2.2.2.2 vrf v1 sgt 1 r3 tping 0 5 1.1.1.1 vrf v1 sgt 1 r1 tping 0 5 4321::2 vrf v1 sgt 1 r3 tping 0 5 1234::1 vrf v1 sgt 1 r1 tping 100 5 2.2.2.2 vrf v1 sgt 2 r3 tping 100 5 1.1.1.1 vrf v1 sgt 2 r1 tping 100 5 4321::2 vrf v1 sgt 2 r3 tping 100 5 1234::1 vrf v1 sgt 2 freeRtr-24.11.16/cfg/crypt-sgt24.tst000066400000000000000000000015461471627602100167700ustar00rootroot00000000000000description sgt tmux encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun mod tmux sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun mod tmux sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-sgt25.tst000066400000000000000000000016051471627602100167650ustar00rootroot00000000000000description sgt l2tp3 encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 1234 tun mod l2tp3 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.1 tun key 1234 tun mod l2tp3 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r2 tping 100 10 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip01.tst000066400000000000000000000022101471627602100171210ustar00rootroot00000000000000description skip over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-skip.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-skip02.tst000066400000000000000000000016531471627602100171340ustar00rootroot00000000000000description skip over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip03.tst000066400000000000000000000023261471627602100171330ustar00rootroot00000000000000description skip over skip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip04.tst000066400000000000000000000021701471627602100171310ustar00rootroot00000000000000description skip over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip05.tst000066400000000000000000000016521471627602100171360ustar00rootroot00000000000000description skip with des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip06.tst000066400000000000000000000016711471627602100171400ustar00rootroot00000000000000description skip with blowfish addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip07.tst000066400000000000000000000016551471627602100171430ustar00rootroot00000000000000description skip with 3des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip08.tst000066400000000000000000000016741471627602100171450ustar00rootroot00000000000000description skip with aes128cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip09.tst000066400000000000000000000016741471627602100171460ustar00rootroot00000000000000description skip with aes192cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip10.tst000066400000000000000000000016741471627602100171360ustar00rootroot00000000000000description skip with aes256cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip11.tst000066400000000000000000000016521471627602100171330ustar00rootroot00000000000000description skip with md5 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip12.tst000066400000000000000000000016551471627602100171370ustar00rootroot00000000000000description skip with sha1 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip13.tst000066400000000000000000000016631471627602100171370ustar00rootroot00000000000000description skip with sha256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip14.tst000066400000000000000000000016631471627602100171400ustar00rootroot00000000000000description skip with sha512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip15.tst000066400000000000000000000016741471627602100171430ustar00rootroot00000000000000description skip with aes128cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip16.tst000066400000000000000000000016741471627602100171440ustar00rootroot00000000000000description skip with aes192cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip17.tst000066400000000000000000000016741471627602100171450ustar00rootroot00000000000000description skip with aes256cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip18.tst000066400000000000000000000016741471627602100171460ustar00rootroot00000000000000description skip with aes128ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip19.tst000066400000000000000000000016741471627602100171470ustar00rootroot00000000000000description skip with aes192ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip20.tst000066400000000000000000000016741471627602100171370ustar00rootroot00000000000000description skip with aes256ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip21.tst000066400000000000000000000016631471627602100171360ustar00rootroot00000000000000description skip with sha224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip22.tst000066400000000000000000000016631471627602100171370ustar00rootroot00000000000000description skip with sha384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip23.tst000066400000000000000000000016661471627602100171430ustar00rootroot00000000000000description skip with sha3224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip24.tst000066400000000000000000000016661471627602100171440ustar00rootroot00000000000000description skip with sha3256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip25.tst000066400000000000000000000016661471627602100171450ustar00rootroot00000000000000description skip with sha3384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip26.tst000066400000000000000000000016661471627602100171460ustar00rootroot00000000000000description skip with sha3512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip27.tst000066400000000000000000000016701471627602100171420ustar00rootroot00000000000000description skip with none encryption addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-skip28.tst000066400000000000000000000016621471627602100171440ustar00rootroot00000000000000description skip with none hash addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode skip tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-ssh.tst000066400000000000000000000015431471627602100166170ustar00rootroot00000000000000description ssh test addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit aaa userlist usr username c password c username c privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 server telnet ssh security rsakey rsa security dsakey dsa security ecdsakey ecdsa security authentication usr security protocol ssh port 666 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 ssh r2 send c r2 send c r2 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe01.tst000066400000000000000000000022141471627602100173060ustar00rootroot00000000000000description swipe over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-swipe.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-swipe02.tst000066400000000000000000000016561471627602100173200ustar00rootroot00000000000000description swipe over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe03.tst000066400000000000000000000023341471627602100173130ustar00rootroot00000000000000description swipe over swipe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe04.tst000066400000000000000000000021731471627602100173150ustar00rootroot00000000000000description swipe over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe05.tst000066400000000000000000000016551471627602100173220ustar00rootroot00000000000000description swipe with des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe06.tst000066400000000000000000000016741471627602100173240ustar00rootroot00000000000000description swipe with blowfish addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher blowfish hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe07.tst000066400000000000000000000016601471627602100173200ustar00rootroot00000000000000description swipe with 3des addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher 3des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe08.tst000066400000000000000000000016771471627602100173310ustar00rootroot00000000000000description swipe with aes128cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe09.tst000066400000000000000000000016771471627602100173320ustar00rootroot00000000000000description swipe with aes192cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe10.tst000066400000000000000000000016771471627602100173220ustar00rootroot00000000000000description swipe with aes256cbc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cbc hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe11.tst000066400000000000000000000016551471627602100173170ustar00rootroot00000000000000description swipe with md5 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe12.tst000066400000000000000000000016601471627602100173140ustar00rootroot00000000000000description swipe with sha1 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha1 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe13.tst000066400000000000000000000016661471627602100173230ustar00rootroot00000000000000description swipe with sha256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe14.tst000066400000000000000000000016661471627602100173240ustar00rootroot00000000000000description swipe with sha512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe15.tst000066400000000000000000000016771471627602100173270ustar00rootroot00000000000000description swipe with aes128cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe16.tst000066400000000000000000000016771471627602100173300ustar00rootroot00000000000000description swipe with aes192cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe17.tst000066400000000000000000000016771471627602100173310ustar00rootroot00000000000000description swipe with aes256cfb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256cfb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe18.tst000066400000000000000000000016771471627602100173320ustar00rootroot00000000000000description swipe with aes128ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes128ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe19.tst000066400000000000000000000016771471627602100173330ustar00rootroot00000000000000description swipe with aes192ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes192ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe20.tst000066400000000000000000000016771471627602100173230ustar00rootroot00000000000000description swipe with aes256ecb addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher aes256ecb hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe21.tst000066400000000000000000000016661471627602100173220ustar00rootroot00000000000000description swipe with sha224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe22.tst000066400000000000000000000016661471627602100173230ustar00rootroot00000000000000description swipe with sha384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe23.tst000066400000000000000000000016711471627602100173200ustar00rootroot00000000000000description swipe with sha3224 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3224 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe24.tst000066400000000000000000000016711471627602100173210ustar00rootroot00000000000000description swipe with sha3256 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3256 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe25.tst000066400000000000000000000016711471627602100173220ustar00rootroot00000000000000description swipe with sha3384 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3384 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe26.tst000066400000000000000000000016711471627602100173230ustar00rootroot00000000000000description swipe with sha3512 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash sha3512 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe27.tst000066400000000000000000000016731471627602100173260ustar00rootroot00000000000000description swipe with none encryption addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher none hash md5 key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-swipe28.tst000066400000000000000000000016651471627602100173300ustar00rootroot00000000000000description swipe with none hash addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips cipher des hash none key tester exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode swipe tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-tls.tst000066400000000000000000000016571471627602100166320ustar00rootroot00000000000000description tls test addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa server telnet tel security rsakey rsa security dsakey dsa security ecdsakey ecdsa security rsacert rsa security dsacert dsa security ecdsacert ecdsa security protocol tls vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 tls r2 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/crypt-wireguard01.tst000066400000000000000000000024241471627602100201530ustar00rootroot00000000000000description wireguard over ipv4 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode wireguard tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode wireguard tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 r1 output show inter tun1 full output ../binTmp/crypt-wireguard.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/crypt-wireguard02.tst000066400000000000000000000020621471627602100201520ustar00rootroot00000000000000description wireguard over ipv6 addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode wireguard tunnel source ser1 tunnel destination 1234::2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode wireguard tunnel source ser1 tunnel destination 1234::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-wireguard03.tst000066400000000000000000000033301471627602100201520ustar00rootroot00000000000000description wireguard over wireguard addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit crypto ipsec ips1 key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit crypto ipsec ips2 key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit int tun1 tunnel vrf v1 tunnel prot ips2 tunnel mode wireguard tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips1 tunnel mode wireguard tunnel source tun1 tunnel destination 2.2.2.2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 exit crypto ipsec ips1 key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit crypto ipsec ips2 key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit int tun1 tunnel vrf v1 tunnel prot ips2 tunnel mode wireguard tunnel source ethernet1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun2 tunnel vrf v1 tunnel prot ips1 tunnel mode wireguard tunnel source tun1 tunnel destination 2.2.2.1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 1234::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/crypt-wireguard04.tst000066400000000000000000000023771471627602100201650ustar00rootroot00000000000000description wireguard over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.101 255.255.255.255 exit ipv4 route v1 1.1.1.102 255.255.255.255 1.1.1.2 crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode wireguard tunnel source lo0 tunnel destination 1.1.1.102 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 exit int lo0 vrf for v1 ipv4 addr 1.1.1.102 255.255.255.255 exit ipv4 route v1 1.1.1.101 255.255.255.255 1.1.1.1 crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode wireguard tunnel source lo0 tunnel destination 1.1.1.101 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/crypt-wireguard05.tst000066400000000000000000000021521471627602100201550ustar00rootroot00000000000000description wireguard over asymmetric ports addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel key 1234 4321 tunnel mode wireguard tunnel source ser1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit int tun1 tunnel vrf v1 tunnel prot ips tunnel key 4321 1234 tunnel mode wireguard tunnel source ser1 tunnel destination 1.1.1.1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 2.2.2.1 vrf v1 r1 tping 100 5 4321::2 vrf v1 r2 tping 100 5 4321::1 vrf v1 freeRtr-24.11.16/cfg/demo01.tst000066400000000000000000000015001471627602100157410ustar00rootroot00000000000000description empty demo network addrouter r1 int eth1 eth 0000.1111.0001 $1a$ $1b$ int eth2 eth 0000.1111.0002 $2a$ $2b$ ! int eth1 desc r2 e1 lldp ena exit int eth2 desc r3 e2 lldp ena exit ! addrouter r2 int eth1 eth 0000.2222.0001 $1b$ $1a$ int eth2 eth 0000.2222.0002 $3a$ $3b$ ! int eth1 desc r1 e1 lldp ena exit int eth2 desc r4 e2 lldp ena exit ! addrouter r3 int eth1 eth 0000.3333.0001 $4a$ $4b$ int eth2 eth 0000.3333.0002 $2b$ $2a$ ! int eth1 desc r4 e1 lldp ena exit int eth2 desc r1 e2 lldp ena exit ! addrouter r4 int eth1 eth 0000.4444.0001 $4b$ $4a$ int eth2 eth 0000.4444.0002 $3b$ $3a$ ! int eth1 desc r3 e1 lldp ena exit int eth2 desc r2 e2 lldp ena exit ! exit r1----e1----r2 | | | | e2 e2 | | | | r3----e1----r4 freeRtr-24.11.16/cfg/demo02.tst000066400000000000000000000046411471627602100157530ustar00rootroot00000000000000description addressed demo network addrouter r1 int eth1 eth 0000.1111.0001 $1a$ $1b$ int eth2 eth 0000.1111.0002 $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit server telnet tel security protocol tel vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 desc r2 e1 lldp ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 desc r3 e2 lldp ena vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit client proxy p1 ! addrouter r2 int eth1 eth 0000.2222.0001 $1b$ $1a$ int eth2 eth 0000.2222.0002 $3a$ $3b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit server telnet tel security protocol tel vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 desc r1 e1 lldp ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 desc r4 e2 lldp ena vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit client proxy p1 ! addrouter r3 int eth1 eth 0000.3333.0001 $4a$ $4b$ int eth2 eth 0000.3333.0002 $2b$ $2a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit server telnet tel security protocol tel vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 desc r4 e1 lldp ena vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit int eth2 desc r1 e2 lldp ena vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit client proxy p1 ! addrouter r4 int eth1 eth 0000.4444.0001 $4b$ $4a$ int eth2 eth 0000.4444.0002 $3b$ $3a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit server telnet tel security protocol tel vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 desc r3 e1 lldp ena vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit int eth2 desc r2 e2 lldp ena vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit client proxy p1 ! exit r1----e1----r2 | | | | e2 e2 | | | | r3----e1----r4 freeRtr-24.11.16/cfg/intop1-bgp01.tst000066400000000000000000000022031471627602100167760ustar00rootroot00000000000000description interop1: ebgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 2 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 redistribute connected address-family ipv6 unicast neighbor 1234::1 remote-as 1 redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp02.tst000066400000000000000000000021471471627602100170060ustar00rootroot00000000000000description interop1: ibgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 redistribute connected address-family ipv6 unicast neighbor 1234::1 remote-as 1 redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp03.tst000066400000000000000000000033561471627602100170120ustar00rootroot00000000000000description interop1: bgp locpref addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set local-preference 1234 exit route-map rm1 permit 20 set local-preference 4321 exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp04.tst000066400000000000000000000033321471627602100170050ustar00rootroot00000000000000description interop1: bgp origin addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match origin 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set origin incomplete exit route-map rm1 permit 20 set origin igp exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp05.tst000066400000000000000000000033301471627602100170040ustar00rootroot00000000000000description interop1: bgp metric addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match metric 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set metric 1234 exit route-map rm1 permit 20 set metric 4321 exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp06.tst000066400000000000000000000035731471627602100170160ustar00rootroot00000000000000description interop1: bgp community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set community 1234:4321 exit route-map rm1 permit 20 set community 1234:1234 exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 send-community both redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 send-community both redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp07.tst000066400000000000000000000040541471627602100170120ustar00rootroot00000000000000description interop1: bgp aspath addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match aspath .*1234.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl4 seq 5 permit 2.2.2.3/32 ipv6 prefix-list pl6 seq 5 permit 4321::3/128 route-map rm4 permit 10 match ip address prefix-list pl4 set as-path prepend 1234 exit route-map rm4 permit 20 set as-path prepend 4321 exit route-map rm6 permit 10 match ipv6 address prefix-list pl6 set as-path prepend 1234 exit route-map rm6 permit 20 set as-path prepend 4321 exit router bgp 2 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 route-map rm4 out redistribute connected address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 route-map rm6 out redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp08.tst000066400000000000000000000063711471627602100170170ustar00rootroot00000000000000description interop1: bgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234:1::2/64 mpls bgp forwarding no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 address 1234:2::2/64 mpls bgp forwarding no shutdown exit router bgp 2 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 send-label explicit-null neighbor 1.1.2.1 remote-as 3 neighbor 1.1.2.1 send-label explicit-null redistribute connected address-family ipv6 unicast neighbor 1234:1::1 remote-as 1 neighbor 1234:1::1 send-label neighbor 1234:2::1 remote-as 3 neighbor 1234:2::1 send-label redistribute connected exit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 120 4321::2 vrf v1 sou lo0 r3 tping 100 120 2.2.2.2 vrf v1 sou lo0 !r3 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 100 120 2.2.2.3 vrf v1 sou lo0 !r1 tping 100 120 4321::3 vrf v1 sou lo0 r3 tping 100 120 2.2.2.1 vrf v1 sou lo0 !r3 tping 100 120 4321::1 vrf v1 sou lo0 r1 tping 100 120 3.3.3.2 vrf v1 r3 tping 100 120 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp09.tst000066400000000000000000000025161471627602100170150ustar00rootroot00000000000000description interop1: bgp addpath addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 additional-path-tx uni neigh 1.1.1.2 additional-path-rx uni red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 additional-path-tx uni neigh 1234::2 additional-path-rx uni red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast bgp additional-paths send receive neighbor 1.1.1.1 remote-as 1 redistribute connected address-family ipv6 unicast bgp additional-paths send receive neighbor 1234::1 remote-as 1 redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp10.tst000066400000000000000000000030101471627602100167730ustar00rootroot00000000000000description interop1: bgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 redistribute connected address-family ipv6 unicast neighbor 1234::1 remote-as 1 redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 0 120 2.2.2.2 vrf v1 sou lo0 r1 tping 0 120 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp11.tst000066400000000000000000000056331471627602100170110ustar00rootroot00000000000000description interop1: bgp vpnv4 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null vrf definition v2 rd 1:2 route-target export 1:2 route-target import 1:2 address-family ipv4 address-family ipv6 exit vrf definition v3 rd 1:3 route-target export 1:3 route-target import 1:3 address-family ipv4 address-family ipv6 exit interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback2 vrf forwarding v2 ip address 9.9.2.2 255.255.255.255 ipv6 address 9992::2/128 exit interface loopback3 vrf forwarding v3 ip address 9.9.3.2 255.255.255.255 ipv6 address 9993::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 neighbor 4321::1 remote-as 1 neighbor 4321::1 update-source loopback0 neighbor 4321::1 shutdown address-family vpnv4 unicast neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both address-family vpnv6 unicast neighbor 4321::1 activate neighbor 4321::1 send-community both address-family ipv4 vrf v2 redistribute connected address-family ipv6 vrf v2 redistribute connected address-family ipv4 vrf v3 redistribute connected address-family ipv6 vrf v3 redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 100 120 9.9.2.2 vrf v2 !r1 tping 100 120 9992::2 vrf v2 r1 tping 100 120 9.9.3.2 vrf v3 !r1 tping 100 120 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop1-bgp12.tst000066400000000000000000000023711471627602100170060ustar00rootroot00000000000000description interop1: bgp authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 password tester red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 password tester redistribute connected address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 password tester redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp13.tst000066400000000000000000000056451471627602100170160ustar00rootroot00000000000000description interop1: bgp vpnv6 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null vrf definition v2 rd 1:2 route-target export 1:2 route-target import 1:2 address-family ipv4 address-family ipv6 exit vrf definition v3 rd 1:3 route-target export 1:3 route-target import 1:3 address-family ipv4 address-family ipv6 exit interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback2 vrf forwarding v2 ip address 9.9.2.2 255.255.255.255 ipv6 address 9992::2/128 exit interface loopback3 vrf forwarding v3 ip address 9.9.3.2 255.255.255.255 ipv6 address 9993::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 neighbor 4321::1 remote-as 1 neighbor 4321::1 update-source loopback0 neighbor 4321::1 shutdown address-family vpnv4 unicast neighbor 4321::1 activate neighbor 4321::1 send-community both address-family vpnv6 unicast neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both address-family ipv4 vrf v2 redistribute connected address-family ipv6 vrf v2 redistribute connected address-family ipv4 vrf v3 redistribute connected address-family ipv6 vrf v3 redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 !r1 tping 100 120 9.9.2.2 vrf v2 r1 tping 100 120 9992::2 vrf v2 !r1 tping 100 120 9.9.3.2 vrf v3 r1 tping 100 120 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop1-bgp14.tst000066400000000000000000000043551471627602100170140ustar00rootroot00000000000000description interop1: vpls/ldp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 neighbor 4321::1 remote-as 1 neighbor 4321::1 update-source loopback0 neighbor 4321::1 shutdown address-family l2vpn vpls neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both neighbor 2.2.2.1 prefix-length-size 2 neighbor 4321::1 activate neighbor 4321::1 send-community both neighbor 4321::1 prefix-length-size 2 exit l2vpn vfi context a vpn id 1 autodiscovery bgp signaling ldp vpls-id 1:1 rd 1:1 route-target export 1:1 route-target import 1:1 exit bridge-domain 1 member vfi a exit interface bdi1 ip address 3.3.3.2 255.255.255.252 ipv6 address 4444::2/64 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 100 120 3.3.3.2 vrf v1 r1 tping 100 120 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp15.tst000066400000000000000000000045501471627602100170120ustar00rootroot00000000000000description interop1: vpls/bgp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 neighbor 4321::1 remote-as 1 neighbor 4321::1 update-source loopback0 neighbor 4321::1 shutdown address-family l2vpn vpls neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both neighbor 2.2.2.1 prefix-length-size 2 neighbor 2.2.2.1 suppress-signaling-protocol ldp neighbor 4321::1 activate neighbor 4321::1 send-community both neighbor 4321::1 prefix-length-size 2 neighbor 4321::1 suppress-signaling-protocol ldp exit l2vpn vfi context a vpn id 1 autodiscovery bgp signaling bgp ve id 2 rd 1:1 route-target export 1:1 route-target import 1:1 exit bridge-domain 1 member vfi a exit interface bdi1 ip address 3.3.3.2 255.255.255.252 ipv6 address 4444::2/64 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 100 120 3.3.3.2 vrf v1 r1 tping 100 120 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp16.tst000066400000000000000000000036371471627602100170200ustar00rootroot00000000000000description interop1: bgp extended community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match extcomm 17153:33036:1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set extcommunity cost igp 12 1234 exit route-map rm1 permit 20 set extcommunity cost igp 23 4321 exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 send-community both redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 send-community both redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp17.tst000066400000000000000000000051131471627602100170100ustar00rootroot00000000000000description interop1: evpn/cmac over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 10 bridge 1 afi-evpn 10 encap cmac afi-evpn 10 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit interface gigabit2 no shutdown service instance 10 ethernet encapsulation dot1q 10 rewrite ingress tag pop 1 symmetric exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 neighbor 4321::1 remote-as 1 neighbor 4321::1 update-source loopback0 neighbor 4321::1 shutdown address-family l2vpn evpn neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both neighbor 4321::1 activate neighbor 4321::1 send-community both exit l2vpn evpn replication-type ingress router-id Loopback0 exit l2vpn evpn instance 10 vlan-aware rd 1:1 route-target export 1:1 route-target import 1:1 exit bridge-domain 10 member gigabit2 service-instance 10 member evpn-instance 10 ethernet-tag 10 exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit int eth1.10 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r3 tping 100 120 3.3.3.1 vrf v1 r3 tping 100 120 4444::1 vrf v1 r1 tping 100 120 3.3.3.2 vrf v1 r1 tping 100 120 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp18.tst000066400000000000000000000022321471627602100170100ustar00rootroot00000000000000description interop1: bgp 6pe addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 mpls enable mpls ldp4 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other ena afi-other red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 address-family ipv6 unicast neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both neighbor 2.2.2.1 send-label red conn exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 4321::2 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp19.tst000066400000000000000000000034001471627602100170070ustar00rootroot00000000000000description interop1: bgp aigp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match aigp 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set aigp 1234 exit route-map rm1 permit 20 set aigp 4321 exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 aigp redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 aigp redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp20.tst000066400000000000000000000064711471627602100170120ustar00rootroot00000000000000description interop1: bgp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234:1::2/64 mpls bgp forwarding no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 address 1234:2::2/64 mpls bgp forwarding no shutdown exit router bgp 2 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 send-label neighbor 1.1.2.1 remote-as 3 neighbor 1.1.2.1 send-label redistribute connected address-family ipv6 unicast neighbor 1234:1::1 remote-as 1 neighbor 1234:1::1 send-label neighbor 1234:2::1 remote-as 3 neighbor 1234:2::1 send-label redistribute connected exit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 0 120 2.2.2.2 vrf v1 sou lo0 !r1 tping 0 120 4321::2 vrf v1 sou lo0 r3 tping 0 120 2.2.2.2 vrf v1 sou lo0 !r3 tping 0 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 !r1 tping 0 120 4321::3 vrf v1 sou lo0 r3 tping 0 120 2.2.2.1 vrf v1 sou lo0 !r3 tping 0 120 4321::1 vrf v1 sou lo0 r1 tping 100 120 3.3.3.2 vrf v1 r3 tping 100 120 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp21.tst000066400000000000000000000036201471627602100170040ustar00rootroot00000000000000description interop1: bgp large community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match lrgcomm 12:34:1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ip addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ip addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-map rm1 permit 10 match interface Loopback1 set large-community 12:34:1234 exit route-map rm1 permit 20 set large-community 12:34:4321 exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 send-community both redistribute connected route-map rm1 address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 send-community both redistribute connected route-map rm1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 0 120 2.2.2.3 vrf v1 sou lo0 r1 tping 0 120 4321::3 vrf v1 sou lo0 r1 tping 100 120 2.2.2.4 vrf v1 sou lo0 r1 tping 100 120 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-bgp22.tst000066400000000000000000000044061471627602100170100ustar00rootroot00000000000000description interop1: vpls/ldp cw over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 router bgp 1 neighbor 2.2.2.1 remote-as 1 neighbor 2.2.2.1 update-source loopback0 neighbor 4321::1 remote-as 1 neighbor 4321::1 update-source loopback0 neighbor 4321::1 shutdown address-family l2vpn vpls neighbor 2.2.2.1 activate neighbor 2.2.2.1 send-community both neighbor 2.2.2.1 prefix-length-size 2 neighbor 4321::1 activate neighbor 4321::1 send-community both neighbor 4321::1 prefix-length-size 2 exit l2vpn vfi context a vpn id 1 autodiscovery bgp signaling ldp vpls-id 1:1 rd 1:1 route-target export 1:1 route-target import 1:1 exit bridge-domain 1 member vfi a exit interface bdi1 ip address 3.3.3.2 255.255.255.252 ipv6 address 4444::2/64 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 tping 100 120 3.3.3.2 vrf v1 r1 tping 100 120 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop1-bgp23.tst000066400000000000000000000031041471627602100170030ustar00rootroot00000000000000description interop1: bgp ao authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 connection pass neigh 1.1.1.2 authen-type sha1 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 connection pass neigh 1234::2 authen-type sha1 1 neigh 1234::2 password tester red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit key chain kc tcp key 1 send-id 1 recv-id 1 include-tcp-options cryptographic-algorithm hmac-sha-1 key-string tester send-lifetime 00:00:00 Jul 9 2022 infinite exit router bgp 1 address-family ipv4 unicast neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 ao kc include-tcp-options redistribute connected address-family ipv6 unicast neighbor 1234::1 remote-as 1 neighbor 1234::1 ao kc include-tcp-options redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-dhcp01.tst000066400000000000000000000015671471627602100171600ustar00rootroot00000000000000description interop1: dhcp server addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server dhcp4 dh pool 1.1.1.11 1.1.1.99 gateway 1.1.1.1 netmask 255.255.255.0 interface ethernet1 static 0000.0000.1100 1.1.1.2 vrf v1 exit server dhcp6 dh netmask ffff:ffff:ffff:ffff:: gateway 1234::1 static 0000.0000.1100 1234::2 interface ethernet1 vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loop0 ipv6 address fe80::1 link-local ipv6 enable ipv6 address prefix ::/128 exit interface gigabit1 ip address dhcp ipv6 address fe80::1 link-local ipv6 enable ipv6 dhcp client pd hint 1234::2/64 ipv6 dhcp client pd prefix no shutdown exit ! r1 tping 100 30 1.1.1.2 vrf v1 !r1 tping 100 30 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-dhcp02.tst000066400000000000000000000016411471627602100171520ustar00rootroot00000000000000description interop1: dhcp client addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit prefix-list p4 permit 0.0.0.0/0 exit prefix-list p6 permit ::/0 exit int eth1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.128 ipv4 dhcp-client enable ipv4 dhcp-client early ipv4 gateway-prefix p4 ipv6 addr 3333::3 ffff:: ipv6 dhcp-client enable ipv6 dhcp-client prefix ipv6 gateway-prefix p6 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing ipv6 local pool dhcpv6 1234:1234:1234::/40 48 ipv6 dhcp pool dhcpv6 prefix-delegation pool dhcpv6 lifetime 1800 1800 exit interface loop0 ipv6 address 4321::1/128 exit interface gigabit1 ip address 1.1.1.1 255.255.255.0 ipv6 enable ipv6 dhcp server dhcpv6 no shutdown exit ip dhcp pool p1 network 1.1.1.0 255.255.255.0 default-router 1.1.1.1 exit ! r1 tping 100 30 1.1.1.1 vrf v1 r1 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/intop1-dns.tst000066400000000000000000000031051471627602100166530ustar00rootroot00000000000000description interop1: dns addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr ip4.test.corp ip4a 2.2.2.2 rr ip6.test.corp ip6a 1234::1 vrf v1 exit int lo1 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 exit server tel tel vrf v1 security protocol tel exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface gigabit2 ip address 2.2.2.1 255.255.255.0 ipv6 address 4321::1/64 no shutdown exit ip name-server 1.1.1.1 ip domain lookup line vty 0 4 transport input all transport output all no motd-banner no exec-banner no vacant-message no login exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 exit server tel tel vrf v1 security protocol tel exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 4321::1 vrf v1 r1 send telnet 1.1.1.2 vrf v1 telnet sleep 3000 r1 char 13 r1 read vxe# r1 send telnet ip4.test.corp /ipv4 sleep 3000 r1 tping 100 10 3.3.3.3 vrf v1 r3 send telnet 2.2.2.1 vrf v1 telnet sleep 3000 r3 char 13 r3 read vxe# r3 send telnet ip6.test.corp /ipv6 sleep 3000 r3 tping 100 10 4.4.4.4 vrf v1 freeRtr-24.11.16/cfg/intop1-eigrp01.tst000066400000000000000000000017111471627602100173370ustar00rootroot00000000000000description interop1: eigrp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router eigrp 1 network 1.0.0.0 redistribute connected exit ipv6 router eigrp 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ipv6 eigrp 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-eigrp02.tst000066400000000000000000000025611471627602100173440ustar00rootroot00000000000000description interop1: eigrp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router eigrp 1 network 1.0.0.0 redistribute connected exit ipv6 router eigrp 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ipv6 eigrp 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router eigrp4 1 r1 send no red conn r1 send exit r1 send router eigrp6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router eigrp4 1 r1 send red conn r1 send exit r1 send router eigrp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-eth01.tst000066400000000000000000000007101471627602100170070ustar00rootroot00000000000000description interop1: ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth02.tst000066400000000000000000000007771471627602100170250ustar00rootroot00000000000000description interop1: dot1q encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 no shutdown exit interface gigabit1.123 encapsulation dot1q 123 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth03.tst000066400000000000000000000013151471627602100170130ustar00rootroot00000000000000description interop1: spantree nonroot exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit bridge 1 stp-priority 40960 stp-mode ieee mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing bridge irb bridge 1 protocol ieee bridge 1 route ip interface gigabit1 bridge-group 1 no shutdown exit interface gigabit2 bridge-group 1 no shutdown exit interface bvi1 ip address 1.1.1.2 255.255.255.0 no shutdown exit ! r1 tping 100 60 1.1.1.2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth04.tst000066400000000000000000000013111471627602100170100ustar00rootroot00000000000000description interop1: spantree root exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit bridge 1 stp-priority 4096 stp-mode ieee mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing bridge irb bridge 1 protocol ieee bridge 1 route ip interface gigabit1 bridge-group 1 no shutdown exit interface gigabit2 bridge-group 1 no shutdown exit interface bvi1 ip address 1.1.1.2 255.255.255.0 no shutdown exit ! r1 tping 100 60 1.1.1.2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth05.tst000066400000000000000000000007721471627602100170230ustar00rootroot00000000000000description interop1: point2point ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.3 255.255.255.254 ipv6 address 1234::3/127 no shutdown exit ! r1 tping 100 10 1.1.1.3 vrf v1 r1 tping 100 10 1234::3 vrf v1 freeRtr-24.11.16/cfg/intop1-eth06.tst000066400000000000000000000010551471627602100170170ustar00rootroot00000000000000description interop1: lacp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 lacp 0000.0000.1111 123 12345 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface port-channel1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface gigabit1 lacp rate fast channel-group 1 mode active no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth07.tst000066400000000000000000000012451471627602100170210ustar00rootroot00000000000000description interop1: fragmentation and reassembly addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r1 tping 100 15 1.1.1.2 vrf v1 siz 2222 r1 tping 100 15 1234::2 vrf v1 siz 2222 freeRtr-24.11.16/cfg/intop1-eth08.tst000066400000000000000000000007511471627602100170230ustar00rootroot00000000000000description interop1: sgt encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 cts manual propagate sgt no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 !r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth09.tst000066400000000000000000000007371471627602100170300ustar00rootroot00000000000000description interop1: verify source addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 verify rx ipv6 verify rx exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-eth10.tst000066400000000000000000000010541471627602100170110ustar00rootroot00000000000000description interop1: qinq encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1.123 exit int eth1.123.1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 no shutdown exit interface gigabit1.1231234 encapsulation dot1q 123 second-dot1q 1234 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike101.tst000066400000000000000000000024431471627602100170650ustar00rootroot00000000000000description interop1: ike1 with ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike102.tst000066400000000000000000000024351471627602100170670ustar00rootroot00000000000000description interop1: ike1 with ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ipv6 address 4321::2/64 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 v6 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 4321::2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike103.tst000066400000000000000000000024461471627602100170720ustar00rootroot00000000000000description interop1: ike1 with 3des addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher 3des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption 3des hash md5 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-3des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike104.tst000066400000000000000000000024661471627602100170750ustar00rootroot00000000000000description interop1: ike1 with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes128cbc hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption aes 128 hash md5 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-aes 128 esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike105.tst000066400000000000000000000024661471627602100170760ustar00rootroot00000000000000description interop1: ike1 with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes192cbc hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption aes 192 hash md5 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-aes 192 esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike106.tst000066400000000000000000000024661471627602100170770ustar00rootroot00000000000000description interop1: ike1 with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes256cbc hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption aes 256 hash md5 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-aes 256 esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike107.tst000066400000000000000000000024441471627602100170740ustar00rootroot00000000000000description interop1: ike1 with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash sha1 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash sha authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-sha-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike108.tst000066400000000000000000000024561471627602100171000ustar00rootroot00000000000000description interop1: ike1 with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash sha256 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash sha256 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-sha256-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike109.tst000066400000000000000000000024561471627602100171010ustar00rootroot00000000000000description interop1: ike1 with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash sha512 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash sha512 authentication pre-share group 1 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-sha512-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike110.tst000066400000000000000000000024451471627602100170670ustar00rootroot00000000000000description interop1: ike1 with group2 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 2 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike111.tst000066400000000000000000000024451471627602100170700ustar00rootroot00000000000000description interop1: ike1 with group5 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 05 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 5 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike112.tst000066400000000000000000000024471471627602100170730ustar00rootroot00000000000000description interop1: ike1 with group14 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 14 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 14 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike113.tst000066400000000000000000000024471471627602100170740ustar00rootroot00000000000000description interop1: ike1 with group15 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 15 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 15 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike114.tst000066400000000000000000000024471471627602100170750ustar00rootroot00000000000000description interop1: ike1 with group16 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 16 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 16 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike115.tst000066400000000000000000000024471471627602100170760ustar00rootroot00000000000000description interop1: ike1 with group24 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 24 cipher des hash md5 seconds 3600 bytes 67108864 key tester role init isakmp 1 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto isakmp policy 10 encryption des hash md5 authentication pre-share group 24 lifetime 3600 exit crypto isakmp key tester address 1.1.1.1 crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike201.tst000066400000000000000000000030571471627602100170700ustar00rootroot00000000000000description interop1: ike2 with ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike202.tst000066400000000000000000000030511471627602100170630ustar00rootroot00000000000000description interop1: ike2 with ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv6 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ipv6 address 4321::2/64 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 v6 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 4321::2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike203.tst000066400000000000000000000030621471627602100170660ustar00rootroot00000000000000description interop1: ike2 with 3des addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher 3des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption 3des integrity md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-3des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike204.tst000066400000000000000000000031061471627602100170660ustar00rootroot00000000000000description interop1: ike2 with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes128cbc hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption aes-cbc-128 integrity md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-aes 128 esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike205.tst000066400000000000000000000031061471627602100170670ustar00rootroot00000000000000description interop1: ike2 with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes192cbc hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption aes-cbc-192 integrity md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-aes 192 esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike206.tst000066400000000000000000000031061471627602100170700ustar00rootroot00000000000000description interop1: ike2 with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes256cbc hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption aes-cbc-256 integrity md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-aes 256 esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike207.tst000066400000000000000000000030621471627602100170720ustar00rootroot00000000000000description interop1: ike2 with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash sha1 prf sha1 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity sha1 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-sha-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike208.tst000066400000000000000000000030751471627602100170770ustar00rootroot00000000000000description interop1: ike2 with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash sha256 prf sha256 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity sha256 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-sha256-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike209.tst000066400000000000000000000030751471627602100171000ustar00rootroot00000000000000description interop1: ike2 with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher des hash sha512 prf sha512 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity sha512 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-sha512-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike210.tst000066400000000000000000000030611471627602100170630ustar00rootroot00000000000000description interop1: ike2 with group2 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 2 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike211.tst000066400000000000000000000030611471627602100170640ustar00rootroot00000000000000description interop1: ike2 with group5 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 05 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 5 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike212.tst000066400000000000000000000030631471627602100170670ustar00rootroot00000000000000description interop1: ike2 with group14 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 14 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 14 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike213.tst000066400000000000000000000030631471627602100170700ustar00rootroot00000000000000description interop1: ike2 with group15 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 15 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 15 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike214.tst000066400000000000000000000030631471627602100170710ustar00rootroot00000000000000description interop1: ike2 with group16 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 16 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 16 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike215.tst000066400000000000000000000030631471627602100170720ustar00rootroot00000000000000description interop1: ike2 with group24 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 24 cipher des hash md5 prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption des integrity md5 group 24 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-des esp-md5-hmac mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike216.tst000066400000000000000000000030511471627602100170700ustar00rootroot00000000000000description interop1: ike2 with aes128gcm addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes128gcm prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption aes-gcm-128 prf md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-gcm 128 mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ike217.tst000066400000000000000000000030511471627602100170710ustar00rootroot00000000000000description interop1: ike2 with aes256gcm addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit crypto ipsec ips group 01 cipher aes256gcm prf md5 seconds 3600 bytes 67108864 key tester role init isakmp 2 protected ipv4 exit int tun1 tunnel vrf v1 tunnel prot ips tunnel mode ipsec tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit crypto ikev2 proposal pr1 encryption aes-gcm-256 prf md5 group 1 exit crypto ikev2 policy pl1 proposal pr1 exit crypto ikev2 keyring kr1 peer p1 address 1.1.1.1 pre-shared-key tester exit crypto ikev2 profile pr1 match identity remote address 1.1.1.1 255.255.255.255 authentication local pre-share authentication remote pre-share lifetime 3600 keyring local kr1 exit crypto ipsec transform-set ts1 esp-gcm 256 mode tunnel exit crypto ipsec profile pr1 set security-association lifetime seconds 3600 set security-association lifetime kilobytes 65536 set transform-set ts1 set ikev2-profile pr1 exit interface tunnel1 ip address 2.2.2.2 255.255.255.0 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipsec ipv4 tunnel protection ipsec profile pr1 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-isis01.tst000066400000000000000000000023011471627602100171740ustar00rootroot00000000000000description interop1: point2point isis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis02.tst000066400000000000000000000023411471627602100172010ustar00rootroot00000000000000description interop1: isis dis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 50 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 50 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ip router isis no shutdown exit interface gigabit2 ipv6 enable ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis03.tst000066400000000000000000000023441471627602100172050ustar00rootroot00000000000000description interop1: isis nondis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 70 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 70 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ip router isis no shutdown exit interface gigabit2 ipv6 enable ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis04.tst000066400000000000000000000023451471627602100172070ustar00rootroot00000000000000description interop1: isis narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style narrow redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis05.tst000066400000000000000000000072541471627602100172140ustar00rootroot00000000000000description interop1: isis te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ int eth3 eth 0000.0000.2233 $per3$ int eth4 eth 0000.0000.2244 $per4$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit3 ip address 1.1.2.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit4 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface Tunnel1 ip address 3.3.3.2 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.1 tunnel mpls traffic-eng path-option 1 dynamic exit interface Tunnel2 ip address 3.3.3.6 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.3 tunnel mpls traffic-eng path-option 1 dynamic exit ! addrouter r3 int eth1 eth 0000.0000.1121 $per3$ int eth2 eth 0000.0000.3343 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop1-isis06.tst000066400000000000000000000023451471627602100172110ustar00rootroot00000000000000description interop1: isis multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 multi-topology redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis07.tst000066400000000000000000000031271471627602100172110ustar00rootroot00000000000000description interop1: isis prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send no red conn r1 send exit r1 send router isis6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send red conn r1 send exit r1 send router isis6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis08.tst000066400000000000000000000026711471627602100172150ustar00rootroot00000000000000description interop1: isis text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit key chain kc key 0 key-string tester exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point isis authentication key-chain kc isis authentication mode text ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point isis authentication key-chain kc isis authentication mode text ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis09.tst000066400000000000000000000064151471627602100172160ustar00rootroot00000000000000description interop1: isis p2mp te exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.3 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ int eth3 eth 0000.0000.2233 $per3$ int eth4 eth 0000.0000.2244 $per4$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit3 ip address 1.1.2.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit4 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.5555 $per3$ int eth2 eth 0000.0000.7777 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::2 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.1 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 100 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis10.tst000066400000000000000000000101101471627602100171710ustar00rootroot00000000000000description interop1: isis sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ int eth3 eth 0000.0000.2233 $per3$ int eth4 eth 0000.0000.2244 $per4$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit segment-routing mpls set-attributes address-family ipv4 explicit-null connected-prefix-sid-map address-family ipv4 2.2.2.2/32 index 3 router isis net 48.0000.0000.1234.00 metric-style wide mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 redistribute connected is-type level-2-only segment-routing mpls address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit3 ip address 1.1.2.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit4 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.1121 $per3$ int eth2 eth 0000.0000.3343 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 5 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 6 router isis6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo1 r1 tping 0 60 4321::2 vrf v1 sou lo2 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo1 r3 tping 0 60 4321::2 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-isis11.tst000066400000000000000000000024471471627602100172100ustar00rootroot00000000000000description interop1: isis lsp text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 domain-password tester area-password tester metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis12.tst000066400000000000000000000102011471627602100171740ustar00rootroot00000000000000description interop1: isis php sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node router isis6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ int eth3 eth 0000.0000.2233 $per3$ int eth4 eth 0000.0000.2244 $per4$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit segment-routing mpls set-attributes address-family ipv4 explicit-null connected-prefix-sid-map address-family ipv4 2.2.2.2/32 index 3 router isis net 48.0000.0000.1234.00 metric-style wide mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 redistribute connected is-type level-2-only segment-routing mpls address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit3 ip address 1.1.2.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit4 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.1121 $per3$ int eth2 eth 0000.0000.3343 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 5 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 6 router isis6 1 segrout node router isis6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo1 r1 tping 0 60 4321::2 vrf v1 sou lo2 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo1 r3 tping 0 60 4321::2 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-isis13.tst000066400000000000000000000114671471627602100172140ustar00rootroot00000000000000description interop1: isis te with pcep addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ int eth3 eth 0000.0000.2233 $per3$ int eth4 eth 0000.0000.2244 $per4$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null mpls traffic-eng pcc peer 1.1.3.2 interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide mpls traffic-eng router-id Loopback0 mpls traffic-eng level-2 redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit3 ip address 1.1.2.2 255.255.255.0 isis network point-to-point ip router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit4 ipv6 enable isis network point-to-point ipv6 router isis ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface Tunnel1 ip address 3.3.3.2 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.1 tunnel mpls traffic-eng path-option 1 dynamic pce exit interface Tunnel2 ip address 3.3.3.6 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.3 tunnel mpls traffic-eng path-option 1 dynamic pce exit ! addrouter r3 int eth1 eth 0000.0000.1121 $per3$ int eth2 eth 0000.0000.3343 $per4$ int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser2 vrf for v1 ipv6 addr 4444::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! addrouter r4 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit serv pcep p export-vrf v1 vrf v1 exit router isis4 1 vrf v1 net 48.4444.0000.4444.00 traffeng 2.2.2.4 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.4444.00 traffeng 6.6.6.4 both traff red conn exit int ser1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser2 vrf for v1 ipv6 addr 4444::2 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit ! r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop1-isis14.tst000066400000000000000000000020071471627602100172030ustar00rootroot00000000000000description interop1: integrated isis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable isis network point-to-point ip router isis ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis15.tst000066400000000000000000000027661471627602100172200ustar00rootroot00000000000000description interop1: isis md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router isis net 48.0000.0000.1234.00 metric-style wide redistribute connected address-family ipv6 redistribute connected exit key chain kc key 0 key-string tester exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point isis authentication key-chain kc isis authentication mode md5 ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point isis authentication key-chain kc isis authentication mode md5 ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-isis16.tst000066400000000000000000000026041471627602100172100ustar00rootroot00000000000000description interop1: isis lsp md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit key chain kc1 key 0 key-string tester router isis net 48.0000.0000.1234.00 authentication key-chain kc1 authentication mode md5 metric-style wide redistribute connected address-family ipv6 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 isis network point-to-point ip router isis no shutdown exit interface gigabit2 ipv6 enable isis network point-to-point ipv6 router isis no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-l2tp01.tst000066400000000000000000000017441471627602100171200ustar00rootroot00000000000000description interop1: l2tp2 client addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp ppp ip4cp open vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit vpdn l2tp int di1 proxy p1 tar 1.1.1.2 called 1234 calling 4321 dir in prot l2tp2 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface Loopback0 ip address 2.2.2.1 255.255.255.255 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 no shutdown exit ip local pool p1 2.2.2.11 2.2.2.99 interface virtual-template1 ip unnumbered Loopback0 peer default ip address pool p1 exit vpdn enable vpdn-group 1 accept-dialin protocol l2tp virtual-template 1 no l2tp tunnel authentication exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/intop1-l2tp02.tst000066400000000000000000000015561471627602100171220ustar00rootroot00000000000000description interop1: l2tp2 server exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open exit server l2tp2 l2tp clone di1 vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 no shutdown exit vpdn enable pseudowire-class l2tp encapsulation l2tpv2 protocol l2tpv2 ip local interface gigabit1 exit interface virtual-ppp1 ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local pseudowire 1.1.1.1 1234 pw-class l2tp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 fe80::4321 vrf v1 freeRtr-24.11.16/cfg/intop1-l2tp03.tst000066400000000000000000000016171471627602100171210ustar00rootroot00000000000000description interop1: l2tp3 server exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open exit server l2tp3 l2tp clone di1 vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 no shutdown exit vpdn enable l2tp-class l2tpc exit pseudowire-class l2tp encapsulation l2tpv3 protocol l2tpv3ietf l2tpc ip local interface gigabit1 exit interface virtual-ppp1 ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local pseudowire 1.1.1.1 1234 pw-class l2tp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 fe80::4321 vrf v1 freeRtr-24.11.16/cfg/intop1-l2tp04.tst000066400000000000000000000020701471627602100171140ustar00rootroot00000000000000description interop1: ethernet tunneling with l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 exit bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit server l2tp3 l2tp bridge 1 vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 no shutdown exit vpdn enable l2tp-class l2tpc exit pseudowire-class l2tp encapsulation l2tpv3 protocol l2tpv3ietf l2tpc ip local interface gigabit1 exit interface gigabit2 xconnect 1.1.1.1 1234 pw-class l2tp no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/intop1-ldp01.tst000066400000000000000000000053121471627602100170110ustar00rootroot00000000000000description interop1: ldp lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234:1::2/64 mpls ip no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 address 1234:2::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234:1::1 ip route 2.2.2.3 255.255.255.255 1.1.2.1 ipv6 route 4321::3/128 1234:2::1 ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-ldp02.tst000066400000000000000000000030011471627602100170030ustar00rootroot00000000000000description interop1: ethernet over mpls addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit interface gigabit2 xconnect 2.2.2.1 1234 encapsulation mpls no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop1-ldp03.tst000066400000000000000000000054371471627602100170230ustar00rootroot00000000000000description interop1: ldp p2mp lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 address 1235::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 ip route 2.2.2.3 255.255.255.255 1.1.2.1 ipv6 route 4321::3/128 1235::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 0 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ldp04.tst000066400000000000000000000054441471627602100170220ustar00rootroot00000000000000description interop1: ldp mp2mp lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 address 1235::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 ip route 2.2.2.3 255.255.255.255 1.1.2.1 ipv6 route 4321::3/128 1235::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 100 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ldp05.tst000066400000000000000000000053631471627602100170230ustar00rootroot00000000000000description interop1: ldp php lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls label4pop mpls ldp6 mpls label6pop exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234:1::2/64 mpls ip no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 address 1234:2::2/64 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234:1::1 ip route 2.2.2.3 255.255.255.255 1.1.2.1 ipv6 route 4321::3/128 1234:2::1 ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls label4pop mpls ldp6 mpls label6pop exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-ldp06.tst000066400000000000000000000054541471627602100170250ustar00rootroot00000000000000description interop1: ldp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.3 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.3 255.255.255.254 ipv6 address 1234:1::3/127 mpls ip no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.254 ipv6 address 1234:2::2/127 mpls ip no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.2 ipv6 route 4321::1/128 1234:1::2 ip route 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route 4321::3/128 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.254 ipv6 addr 1234:2::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.3 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-ldp07.tst000066400000000000000000000030151471627602100170150ustar00rootroot00000000000000description interop1: ethernet over mpls cw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth control protocol pweompls exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls ldp explicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 mpls ip no shutdown exit interface gigabit2 xconnect 2.2.2.1 1234 encapsulation mpls no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 1234::1 ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop1-mcast01.tst000066400000000000000000000025501471627602100173420ustar00rootroot00000000000000description interop1: igmp3/mld2 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing ip multicast-routing distributed ipv6 multicast-routing ip pim ssm default interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 ip pim sparse-mode ip igmp version 3 ipv6 pim exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ipv6 address fe80::2 link-local ip pim sparse-mode ip igmp version 3 ipv6 pim ip igmp join-group 232.2.2.2 source 2.2.2.1 ipv6 mld join-group ff06::1 4321::1 no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 gigabit1 fe80::1 ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 232.2.2.2 vrf v1 sou lo0 r1 tping 100 60 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-mcast02.tst000066400000000000000000000023611471627602100173430ustar00rootroot00000000000000description interop1: pim addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing ip multicast-routing distributed ipv6 multicast-routing ip pim ssm default interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ipv6 address fe80::2 link-local ip pim sparse-mode ip igmp version 3 ipv6 pim no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::1/128 gigabit1 fe80::1 interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 ip pim sparse-mode ip igmp version 3 ipv6 pim ip igmp join-group 232.2.2.2 source 2.2.2.1 ipv6 mld join-group ff06::1 4321::1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 232.2.2.2 vrf v1 sou lo0 r1 tping 100 60 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-modem01.tst000066400000000000000000000045011471627602100173320ustar00rootroot00000000000000description interop1: modem with alaw exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec alaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.1234.2222 $1b$ $1a$ int eth2 eth 0000.1234.2222 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit dial-peer 1 codec alaw match-calling .* match-called .* vrf v1 myname 99 port-local 5060 target 1.1.1.1 direction both exit dial-peer 2 codec alaw match-calling .* match-called .* vrf v1 myname 99 port-local 5060 target 1.1.2.1 direction both exit ! addpersist r3 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.2.1 255.255.255.0 no shutdown exit interface gigabit2 ip address 1.1.3.1 255.255.255.0 no shutdown exit voice service voip no ip address trusted authenticate allow-connections h323 to h323 allow-connections h323 to sip allow-connections sip to h323 allow-connections sip to sip sip-ua connection-reuse dial-peer voice 1 voip destination-pattern 2[0-9] media flow-through session protocol sipv2 session target ipv4:1.1.2.2 session transport udp codec g711alaw no vad dial-peer voice 2 voip destination-pattern 3[0-9] media flow-through session protocol sipv2 session target ipv4:1.1.3.2 session transport udp codec g711alaw no vad ! addrouter r4 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit translation-rule 1 match ^.*.*)@(?.*)>.*$ match ^sip:(?.*)@(?.*)$ match ^(?.*)$ text " variable n text " character 32 text exit dial-peer 1 codec alaw match-calling .* match-called .* port-local 5060 translate-out-calling 1 translate-out-called 1 vrf v1 myname 99 target 1.1.3.1 direction both exit ! r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1.1.3.1 vrf v1 r4 send pack modem 22 33 r4 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-modem02.tst000066400000000000000000000045011471627602100173330ustar00rootroot00000000000000description interop1: modem with ulaw exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server modem sm codec ulaw vrf v1 exit ! addrouter r2 int eth1 eth 0000.1234.2222 $1b$ $1a$ int eth2 eth 0000.1234.2222 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit dial-peer 1 codec ulaw match-calling .* match-called .* vrf v1 myname 99 port-local 5060 target 1.1.1.1 direction both exit dial-peer 2 codec ulaw match-calling .* match-called .* vrf v1 myname 99 port-local 5060 target 1.1.2.1 direction both exit ! addpersist r3 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.2.1 255.255.255.0 no shutdown exit interface gigabit2 ip address 1.1.3.1 255.255.255.0 no shutdown exit voice service voip no ip address trusted authenticate allow-connections h323 to h323 allow-connections h323 to sip allow-connections sip to h323 allow-connections sip to sip sip-ua connection-reuse dial-peer voice 1 voip destination-pattern 2[0-9] media flow-through session protocol sipv2 session target ipv4:1.1.2.2 session transport udp codec g711ulaw no vad dial-peer voice 2 voip destination-pattern 3[0-9] media flow-through session protocol sipv2 session target ipv4:1.1.3.2 session transport udp codec g711ulaw no vad ! addrouter r4 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit translation-rule 1 match ^.*.*)@(?.*)>.*$ match ^sip:(?.*)@(?.*)$ match ^(?.*)$ text " variable n text " character 32 text exit dial-peer 1 codec ulaw match-calling .* match-called .* port-local 5060 translate-out-calling 1 translate-out-called 1 vrf v1 myname 99 target 1.1.3.1 direction both exit ! r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1.1.3.1 vrf v1 r4 send pack modem 22 33 r4 tping 100 5 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/intop1-ospf01.tst000066400000000000000000000020521471627602100171770ustar00rootroot00000000000000description interop1: point2point ospf addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf02.tst000066400000000000000000000021731471627602100172040ustar00rootroot00000000000000description interop1: ospf dr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 10 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 10 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network broadcast ip ospf 1 area 0 ipv6 ospf network broadcast ipv6 ospf 1 area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf03.tst000066400000000000000000000021741471627602100172060ustar00rootroot00000000000000description interop1: ospf nondr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 0 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network broadcast ip ospf 1 area 0 ipv6 ospf network broadcast ipv6 ospf 1 area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf04.tst000066400000000000000000000020551471627602100172050ustar00rootroot00000000000000description interop1: ospf transit area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 ip ospf 1 area 1 ipv6 ospf 1 area 1 exit router ospf 1 exit ipv6 router ospf 1 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 1 ipv6 ospf network point-to-point ipv6 ospf 1 area 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf05.tst000066400000000000000000000021361471627602100172060ustar00rootroot00000000000000description interop1: ospf stub area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 1 stub exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 1 stub exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 ip ospf 1 area 1 ipv6 ospf 1 area 1 exit router ospf 1 area 1 stub exit ipv6 router ospf 1 area 1 stub exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 1 ipv6 ospf network point-to-point ipv6 ospf 1 area 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf06.tst000066400000000000000000000021361471627602100172070ustar00rootroot00000000000000description interop1: ospf nssa area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 1 nssa exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 1 nssa exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 ip ospf 1 area 1 ipv6 ospf 1 area 1 exit router ospf 1 area 1 nssa exit ipv6 router ospf 1 area 1 nssa exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 1 ipv6 ospf network point-to-point ipv6 ospf 1 area 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf07.tst000066400000000000000000000064331471627602100172140ustar00rootroot00000000000000description interop1: ospf te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface Tunnel1 ip address 3.3.3.2 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.1 tunnel mpls traffic-eng path-option 1 dynamic exit interface Tunnel2 ip address 3.3.3.6 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.3 tunnel mpls traffic-eng path-option 1 dynamic exit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop1-ospf08.tst000066400000000000000000000027001471627602100172060ustar00rootroot00000000000000description interop1: ospf prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send no red conn r1 send exit r1 send router ospf6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send red conn r1 send exit r1 send router ospf6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf09.tst000066400000000000000000000022151471627602100172100ustar00rootroot00000000000000description interop1: ospf text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf authentication ip ospf authentication-key tester ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf10.tst000066400000000000000000000055741471627602100172130ustar00rootroot00000000000000description interop1: ospf p2mp te exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.3 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::3 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.1 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 100 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ospf11.tst000066400000000000000000000072721471627602100172110ustar00rootroot00000000000000description interop1: ospf sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit segment-routing mpls set-attributes address-family ipv4 explicit-null connected-prefix-sid-map address-family ipv4 2.2.2.2/32 index 3 router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 segment-routing area 0 mpls segment-routing mpls redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 5 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 6 router ospf6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-ospf12.tst000066400000000000000000000073631471627602100172130ustar00rootroot00000000000000description interop1: ospf php sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node router ospf6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit segment-routing mpls set-attributes address-family ipv4 explicit-null connected-prefix-sid-map address-family ipv4 2.2.2.2/32 index 3 router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 segment-routing area 0 mpls segment-routing mpls redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 5 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 6 router ospf6 1 segrout node router ospf6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop1-ospf13.tst000066400000000000000000000103741471627602100172100ustar00rootroot00000000000000description interop1: ospf te with pcep addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing mpls traffic-eng tunnels no mpls traffic-eng signalling advertise implicit-null mpls traffic-eng pcc peer 1.1.3.2 interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface gigabit2 ip address 1.1.2.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 ip rsvp bandwidth mpls traffic-eng tunnels no shutdown exit interface Tunnel1 ip address 3.3.3.2 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.1 tunnel mpls traffic-eng path-option 1 dynamic pce exit interface Tunnel2 ip address 3.3.3.6 255.255.255.252 tunnel mode mpls traffic-eng tunnel destination 2.2.2.3 tunnel mpls traffic-eng path-option 1 dynamic pce exit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 4444::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! addrouter r4 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit serv pcep p export-vrf v1 vrf v1 exit router ospf4 1 vrf v1 router 4.4.4.4 traffeng 2.2.2.4 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.4 traffeng 6.6.6.4 area 0 ena area 0 traff red conn exit int ser1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 4444::2 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit ! r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop1-ospf14.tst000066400000000000000000000023411471627602100172040ustar00rootroot00000000000000description interop1: ospf md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf4 1 authen-id 123 router ospf4 1 authen-type md5 router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router ospf 1 redistribute connected subnets exit ipv6 router ospf 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip ospf network point-to-point ip ospf authentication message-digest ip ospf message-digest-key 123 md5 tester ip ospf 1 area 0 ipv6 ospf network point-to-point ipv6 ospf 1 area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-pppoe01.tst000066400000000000000000000013761471627602100173630ustar00rootroot00000000000000description interop1: pppoe client addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit prefix-list p1 permit 0.0.0.0/0 exit int di1 enc ppp ppp ip4cp open vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ppp ip4cp local 0.0.0.0 ipv4 gateway-prefix p1 exit int eth1 p2poe client di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface Loopback0 ip address 2.2.2.1 255.255.255.255 exit ip local pool p1 2.2.2.11 2.2.2.99 interface virtual-template1 ip unnumbered Loopback0 peer default ip address pool p1 exit vpdn enable bba-group pppoe global virtual-template 1 ac name inet exit interface gigabit1 pppoe enable group global no shutdown exit ! r1 tping 100 60 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/intop1-pppoe02.tst000066400000000000000000000012371471627602100173600ustar00rootroot00000000000000description interop1: pppoe server addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open exit int eth1 p2poe server di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface dialer1 encapsulation ppp ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local dialer pool 1 dialer persistent exit interface gigabit1 pppoe-client dial-pool-number 1 no shutdown exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 fe80::4321 vrf v1 freeRtr-24.11.16/cfg/intop1-pppoe03.tst000066400000000000000000000013571471627602100173640ustar00rootroot00000000000000description interop1: pppoe with pap addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open ppp user usr ppp pass pwd exit int eth1 p2poe server di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing username usr password pwd interface dialer1 encapsulation ppp ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local dialer pool 1 dialer persistent ppp authentication pap exit interface gigabit1 pppoe-client dial-pool-number 1 no shutdown exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 fe80::4321 vrf v1 freeRtr-24.11.16/cfg/intop1-pppoe04.tst000066400000000000000000000013611471627602100173600ustar00rootroot00000000000000description interop1: pppoe with chap addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open ppp user usr ppp pass pwd exit int eth1 p2poe server di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing username usr password pwd interface dialer1 encapsulation ppp ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local dialer pool 1 dialer persistent ppp authentication chap exit interface gigabit1 pppoe-client dial-pool-number 1 no shutdown exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 fe80::4321 vrf v1 freeRtr-24.11.16/cfg/intop1-pppoe05.tst000066400000000000000000000013761471627602100173670ustar00rootroot00000000000000description interop1: pppoe with eap addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open ppp user usr ppp pass pwd exit int eth1 p2poe server di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing username usr password pwd interface dialer1 encapsulation ppp ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local dialer pool 1 dialer persistent ppp authentication eap ppp eap local exit interface gigabit1 pppoe-client dial-pool-number 1 no shutdown exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 fe80::4321 vrf v1 freeRtr-24.11.16/cfg/intop1-pppoe06.tst000066400000000000000000000015021471627602100173570ustar00rootroot00000000000000description interop1: pppoe with long multilink fragmentation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 2.2.2.1 ppp ip4cp open ppp ip6cp open ppp multi 1500 long ppp frag 256 exit int eth1 p2poe server di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface dialer1 encapsulation ppp ppp multilink ppp multilink fragment size 111 ppp multilink fragment maximum 16 ip address 2.2.2.2 255.255.255.0 ipv6 address fe80::4321 link-local dialer pool 1 dialer persistent exit interface gigabit1 pppoe-client dial-pool-number 1 no shutdown exit ! r1 tping 100 60 2.2.2.2 vrf v1 siz 1111 r1 tping 100 60 fe80::4321 vrf v1 siz 1111 freeRtr-24.11.16/cfg/intop1-radius.tst000066400000000000000000000026751471627602100173710ustar00rootroot00000000000000description interop1: radius addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit aaa userlist usr username usr password pwd exit server radius rad authen usr secret tester vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface gigabit2 ip address 2.2.2.1 255.255.255.0 ipv6 address 4321::1/64 no shutdown exit aaa new-model aaa authentication login default group radius radius server radius address ipv4 1.1.1.1 auth-port 1812 acct-port 1813 key tester exit line vty 0 4 transport input all transport output all no motd-banner no exec-banner no vacant-message exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 exit server tel tel vrf v1 security protocol tel exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 4321::1 vrf v1 r1 send telnet 1.1.1.2 vrf v1 telnet sleep 1000 r1 send usr sleep 1000 r1 send pwd sleep 3000 r1 char 13 r1 read vxe# r1 send telnet 2.2.2.2 sleep 3000 r1 tping 100 10 3.3.3.3 vrf v1 freeRtr-24.11.16/cfg/intop1-rip01.tst000066400000000000000000000016571471627602100170340ustar00rootroot00000000000000description interop1: rip addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router rip version 2 redistribute connected no auto-summary network 1.0.0.0 exit ipv6 router rip 1 redistribute connected exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ipv6 rip 1 enable no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-rip02.tst000066400000000000000000000030671471627602100170320ustar00rootroot00000000000000description interop1: rip prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip4 1 update-time 5000 router rip4 1 hold-time 15000 router rip4 1 flush-time 15000 router rip6 1 ena router rip6 1 update-time 5000 router rip6 1 hold-time 15000 router rip6 1 flush-time 15000 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router rip version 2 redistribute connected no auto-summary timers basic 5 15 15 15 network 1.0.0.0 exit ipv6 router rip 1 redistribute connected timers 5 15 15 15 exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ipv6 rip 1 enable no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router rip4 1 r1 send no red conn r1 send exit r1 send router rip6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router rip4 1 r1 send red conn r1 send exit r1 send router rip6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-rip03.tst000066400000000000000000000021141471627602100170230ustar00rootroot00000000000000description interop1: rip authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip4 1 pass tester router rip6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface loopback0 ip addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router rip version 2 redistribute connected no auto-summary network 1.0.0.0 exit ipv6 router rip 1 redistribute connected exit key chain kc key 0 key-string tester exit interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 enable ip rip authentication key-chain kc ip rip authentication mode text ipv6 rip 1 enable no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop1-ssh.tst000066400000000000000000000024521471627602100166700ustar00rootroot00000000000000description interop1: ssh exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface gigabit2 ip address 2.2.2.1 255.255.255.0 ipv6 address 4321::1/64 no shutdown exit ip domain name lab aaa new-model aaa authentication login default local username usr password pwd crypto key generate rsa modulus 2048 line vty 0 4 transport input all transport output all no motd-banner no exec-banner no vacant-message exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 exit server tel tel vrf v1 security protocol tel exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 4321::1 vrf v1 r1 send telnet 1.1.1.2 vrf v1 ssh r1 send usr r1 send pwd sleep 5000 r1 char 13 r1 read vxe# r1 send telnet 2.2.2.2 sleep 5000 r1 tping 100 10 3.3.3.3 vrf v1 freeRtr-24.11.16/cfg/intop1-tacacs.tst000066400000000000000000000026411471627602100173310ustar00rootroot00000000000000description interop1: tacacs addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit aaa userlist usr username usr password pwd exit server tacacs tac authen usr secret tester vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2211 $per2$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface gigabit2 ip address 2.2.2.1 255.255.255.0 ipv6 address 4321::1/64 no shutdown exit aaa new-model aaa authentication login default group tacacs+ tacacs server tacacs+ address ipv4 1.1.1.1 key tester exit line vty 0 4 transport input all transport output all no motd-banner no exec-banner no vacant-message exit ! addrouter r3 int eth1 eth 0000.0000.1111 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 exit server tel tel vrf v1 security protocol tel exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 4321::1 vrf v1 r1 send telnet 1.1.1.2 vrf v1 telnet sleep 1000 r1 send usr sleep 1000 r1 send pwd sleep 3000 r1 char 13 r1 read vxe# r1 send telnet 2.2.2.2 sleep 3000 r1 tping 100 10 3.3.3.3 vrf v1 freeRtr-24.11.16/cfg/intop1-tun01.tst000066400000000000000000000023061471627602100170400ustar00rootroot00000000000000description interop1: gre tunnel addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface tunnel1 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode gre ip ip address 2.2.2.2 255.255.255.0 ipv6 address 2222::2/64 exit interface tunnel2 tunnel source gigabit1 tunnel destination 1234::1 tunnel mode gre ipv6 ip address 3.3.3.2 255.255.255.0 ipv6 address 3333::2/64 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 2222::2 vrf v1 r1 tping 100 10 3.3.3.2 vrf v1 r1 tping 100 10 3333::2 vrf v1 freeRtr-24.11.16/cfg/intop1-tun02.tst000066400000000000000000000016401471627602100170410ustar00rootroot00000000000000description interop1: ipip tunnel addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface tunnel1 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipip ip address 2.2.2.2 255.255.255.0 exit interface tunnel2 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode ipv6ip ipv6 address 2222::2/64 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 2222::2 vrf v1 freeRtr-24.11.16/cfg/intop1-tun03.tst000066400000000000000000000021351471627602100170420ustar00rootroot00000000000000description interop1: vxlan tunnel addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit bridge 1 exit vpdn bvi1 bridge-group 1 proxy p1 target 1.1.1.2 vcid 1111 pwtype atm-port protocol vxlan exit int bvi1 macaddr 0000.0000.1234 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: ipv4 host-static 2.2.2.2 0000.0000.4321 ipv6 host-static 2222::2 0000.0000.4321 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! ip routing ipv6 unicast-routing interface gigabit1 ip address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit vxlan source-port-range dummy-l2-tunnel-udp 4789 4789 interface Tunnel1 tunnel source gigabit1 tunnel destination 1.1.1.1 tunnel mode vxlan ipv4 0000.0000.4321 0000.0000.1234 tunnel vxlan vni 1111 ip address 2.2.2.2 255.255.255.252 ipv6 address 2222::2/64 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 !r1 tping 100 10 2222::2 vrf v1 freeRtr-24.11.16/cfg/intop1.ini000066400000000000000000000011061471627602100160350ustar00rootroot00000000000000../img/v8k.img pc-i440fx-7.1 4096 4 vmxnet3 0 .*Line protocol on Interface GigabitEthernet1, changed state to up enable terminal length 0 configure terminal !!!separator- end configure replace nvram:startup-config force configure terminal !license boot level network-premier addon dna-premier no logging console !not to put into startup config hostname vxe no ip domain lookup cdp run crypto engine compliance shield disable interface gigabit1 cdp enable no shutdown exit line vty 0 4 transport input all transport output all no login privilege level 15 exit freeRtr-24.11.16/cfg/intop2-bgp01.tst000066400000000000000000000024571471627602100170120ustar00rootroot00000000000000description interop2: ebgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy all pass end-policy router bgp 2 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast route-policy all in route-policy all out neighbor 1234::1 remote-as 1 address-family ipv6 unicast route-policy all in route-policy all out root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp02.tst000066400000000000000000000022231471627602100170020ustar00rootroot00000000000000description interop2: ibgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp03.tst000066400000000000000000000034551471627602100170130ustar00rootroot00000000000000description interop2: bgp locpref addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set local-preference 1234 else set local-preference 4321 endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp04.tst000066400000000000000000000034311471627602100170060ustar00rootroot00000000000000description interop2: bgp origin addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match origin 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set origin incomplete else set origin igp endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp05.tst000066400000000000000000000034211471627602100170060ustar00rootroot00000000000000description interop2: bgp metric addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match metric 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set med 1234 else set med 4321 endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp06.tst000066400000000000000000000035601471627602100170130ustar00rootroot00000000000000description interop2: bgp community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set community (1234:4321) else set community (1234:1234) endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp07.tst000066400000000000000000000037011471627602100170110ustar00rootroot00000000000000description interop2: bgp aspath addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match aspath .*1234.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then prepend as-path 1234 else prepend as-path 4321 endif pass end-policy route-policy all pass end-policy router bgp 2 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast route-policy all in route-policy all out neighbor 1234::1 remote-as 1 address-family ipv6 unicast route-policy all in route-policy all out root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp08.tst000066400000000000000000000075701471627602100170220ustar00rootroot00000000000000description interop2: bgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2221 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234:1::2/64 no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 address 1234:2::2/64 no shutdown exit router static address-family ipv4 unicast 1.1.1.1/32 gigabit0/0/0/0 1.1.1.1 address-family ipv4 unicast 1.1.2.1/32 gigabit0/0/0/1 1.1.2.1 address-family ipv6 unicast 1234:1::1/128 gigabit0/0/0/0 1234:1::1 address-family ipv6 unicast 1234:2::1/128 gigabit0/0/0/1 1234:2::1 route-policy all pass end-policy router bgp 2 mpls activate interface gigabit0/0/0/0 interface gigabit0/0/0/1 address-family ipv4 unicast allocate-label all redistribute connected address-family ipv6 unicast allocate-label all redistribute connected neighbor 1.1.1.1 remote-as 1 ebgp-multihop address-family ipv4 labeled-unicast route-policy all in route-policy all out neighbor 1.1.2.1 remote-as 3 ebgp-multihop address-family ipv4 labeled-unicast route-policy all in route-policy all out ! neighbor 1234:1::1 ! remote-as 1 ! ebgp-multihop ! address-family ipv6 labeled-unicast ! route-policy all in ! route-policy all out ! neighbor 1234:2::1 ! remote-as 3 ! ebgp-multihop ! address-family ipv6 labeled-unicast ! route-policy all in ! route-policy all out root commit ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 !r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 !r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp09.tst000066400000000000000000000026301471627602100170130ustar00rootroot00000000000000description interop2: bgp addpath addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 additional-path-tx uni neigh 1.1.1.2 additional-path-rx uni red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 additional-path-tx uni neigh 1234::2 additional-path-rx uni red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast additional-paths receive additional-paths send redistribute connected address-family ipv6 unicast additional-paths receive additional-paths send redistribute connected neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp10.tst000066400000000000000000000030601471627602100170010ustar00rootroot00000000000000description interop2: bgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp11.tst000066400000000000000000000060301471627602100170020ustar00rootroot00000000000000description interop2: bgp vpnv4 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit vrf v2 address-family ipv4 unicast import route-target 1:2 export route-target 1:2 address-family ipv6 unicast import route-target 1:2 export route-target 1:2 vrf v3 address-family ipv4 unicast import route-target 1:3 export route-target 1:3 address-family ipv6 unicast import route-target 1:3 export route-target 1:3 interface loopback2 vrf v2 ipv4 address 9.9.2.2 255.255.255.255 ipv6 address 9992::2/128 exit interface loopback3 vrf v3 ipv4 address 9.9.3.2 255.255.255.255 ipv6 address 9993::2/128 exit router bgp 1 address-family vpnv4 unicast address-family vpnv6 unicast neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family vpnv4 unicast ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family vpnv6 unicast vrf v2 rd 1:2 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected vrf v3 rd 1:3 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 !r1 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 !r1 tping 100 60 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop2-bgp12.tst000066400000000000000000000024031471627602100170030ustar00rootroot00000000000000description interop2: bgp authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 password tester red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router bgp 1 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected neighbor 1.1.1.1 remote-as 1 password tester address-family ipv4 unicast neighbor 1234::1 remote-as 1 password tester address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp13.tst000066400000000000000000000060421471627602100170070ustar00rootroot00000000000000description interop2: bgp vpnv6 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit vrf v2 address-family ipv4 unicast import route-target 1:2 export route-target 1:2 address-family ipv6 unicast import route-target 1:2 export route-target 1:2 vrf v3 address-family ipv4 unicast import route-target 1:3 export route-target 1:3 address-family ipv6 unicast import route-target 1:3 export route-target 1:3 interface loopback2 vrf v2 ipv4 address 9.9.2.2 255.255.255.255 ipv6 address 9992::2/128 exit interface loopback3 vrf v3 ipv4 address 9.9.3.2 255.255.255.255 ipv6 address 9993::2/128 exit router bgp 1 address-family vpnv4 unicast address-family vpnv6 unicast neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family vpnv6 unicast ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family vpnv4 unicast vrf v2 rd 1:2 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected vrf v3 rd 1:3 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 !r1 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9992::2 vrf v2 !r1 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop2-bgp14.tst000066400000000000000000000043331471627602100170110ustar00rootroot00000000000000description interop2: vpls/ldp over bgp exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 l2vpn bridge group a bridge-domain a vfi a autodiscovery bgp rd 1:1 route-target import 1:1 route-target export 1:1 signaling-protocol ldp vpls-id 1:1 routed interface bvi1 root interface bvi1 ipv4 address 3.3.3.2 255.255.255.252 ipv6 address 4444::2/64 no shutdown exit router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit router bgp 1 address-family l2vpn vpls-vpws neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family l2vpn vpls-vpws ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family l2vpn vpls-vpws root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp15.tst000066400000000000000000000044011471627602100170060ustar00rootroot00000000000000description interop2: vpls/bgp over bgp exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 l2vpn bridge group a bridge-domain a vfi a vpn-id 1 autodiscovery bgp rd 1:1 route-target import 1:1 route-target export 1:1 signaling-protocol bgp ve-id 2 routed interface bvi1 root interface bvi1 ipv4 address 3.3.3.2 255.255.255.252 ipv6 address 4444::2/64 no shutdown exit router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit router bgp 1 address-family l2vpn vpls-vpws neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family l2vpn vpls-vpws ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family l2vpn vpls-vpws root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp16.tst000066400000000000000000000043021471627602100170070ustar00rootroot00000000000000description interop2: evpn/pbb over bgp exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:101 rt-both 1:101 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 l2vpn bridge group a bridge-domain core pbb core evi 1 bridge-domain edge pbb edge i-sid 101 core-bridge core routed interface bvi1 root interface bvi1 ipv4 address 3.3.3.2 255.255.255.252 ipv6 address 4444::2/64 no shutdown exit router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit router bgp 1 address-family l2vpn evpn neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family l2vpn evpn ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family l2vpn evpn root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp17.tst000066400000000000000000000036241471627602100170160ustar00rootroot00000000000000description interop2: bgp extended community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match extcomm 17153:33036:1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set extcommunity cost (igp:12:1234) else set extcommunity cost (igp:23:4321) endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp18.tst000066400000000000000000000036051471627602100170160ustar00rootroot00000000000000description interop2: bgp large community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match lrgcomm 12:34:1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set large-community (12:34:1234) else set large-community (23:45:4321) endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast neighbor 1234::1 remote-as 1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp19.tst000066400000000000000000000070741471627602100170230ustar00rootroot00000000000000description interop2: bgp vpnv4 over srv6 exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 2222:: ffff:ffff:: tun sour eth1 tun dest 2222:: tun vrf v1 tun mod srv6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 1111:: ffff:: 1234::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 segrou neigh 4321::2 extended-nexthop-current ovpnuni afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 address-family ipv6 unicast 2222::/64 1234::1 gigabit0/0/0/0 exit vrf v2 address-family ipv4 unicast import route-target 1:2 export route-target 1:2 address-family ipv6 unicast import route-target 1:2 export route-target 1:2 vrf v3 address-family ipv4 unicast import route-target 1:3 export route-target 1:3 address-family ipv6 unicast import route-target 1:3 export route-target 1:3 interface loopback2 vrf v2 ipv4 address 9.9.2.2 255.255.255.255 ipv6 address 9992::2/128 exit interface loopback3 vrf v3 ipv4 address 9.9.3.2 255.255.255.255 ipv6 address 9993::2/128 exit segment-routing srv6 locators locator a prefix 1111:1111:1111:1111::/64 segment-routing srv6 encapsulation source-address 4321::2 router bgp 2 segment-routing srv6 locator a address-family vpnv4 unicast segment-routing srv6 locator a address-family vpnv6 unicast segment-routing srv6 locator a neighbor 4321::1 remote-as 1 update-source loopback0 address-family vpnv4 unicast vrf v2 rd 1:2 address-family ipv4 unicast segment-routing srv6 alloc mode per-ce redistribute connected address-family ipv6 unicast segment-routing srv6 alloc mode per-ce redistribute connected vrf v3 rd 1:3 address-family ipv4 unicast segment-routing srv6 alloc mode per-ce redistribute connected address-family ipv6 unicast segment-routing srv6 alloc mode per-ce redistribute connected root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 !r1 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 !r1 tping 100 60 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop2-bgp20.tst000066400000000000000000000070721471627602100170110ustar00rootroot00000000000000description interop2: bgp vpnv6 over srv6 exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 2222:: ffff:ffff:: tun sour eth1 tun dest 2222:: tun vrf v1 tun mod srv6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 1111:: ffff:: 1234::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 segrou afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 segrou afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 address-family ipv6 unicast 2222::/64 1234::1 gigabit0/0/0/0 exit vrf v2 address-family ipv4 unicast import route-target 1:2 export route-target 1:2 address-family ipv6 unicast import route-target 1:2 export route-target 1:2 vrf v3 address-family ipv4 unicast import route-target 1:3 export route-target 1:3 address-family ipv6 unicast import route-target 1:3 export route-target 1:3 interface loopback2 vrf v2 ipv4 address 9.9.2.2 255.255.255.255 ipv6 address 9992::2/128 exit interface loopback3 vrf v3 ipv4 address 9.9.3.2 255.255.255.255 ipv6 address 9993::2/128 exit segment-routing srv6 locators locator a prefix 1111:1111:1111:1111::/64 router bgp 1 segment-routing srv6 locator a address-family vpnv4 unicast segment-routing srv6 locator a address-family vpnv6 unicast segment-routing srv6 locator a neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family vpnv6 unicast ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family vpnv4 unicast vrf v2 rd 1:2 address-family ipv4 unicast segment-routing srv6 alloc mode per-vrf redistribute connected address-family ipv6 unicast segment-routing srv6 alloc mode per-vrf redistribute connected vrf v3 rd 1:3 address-family ipv4 unicast segment-routing srv6 alloc mode per-vrf redistribute connected address-family ipv6 unicast segment-routing srv6 alloc mode per-vrf redistribute connected root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 !r1 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9992::2 vrf v2 !r1 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop2-bgp21.tst000066400000000000000000000024541471627602100170110ustar00rootroot00000000000000description interop2: bgp 6pe addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 mpls enable mpls ldp4 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other ena afi-other red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit mpls ldp address-family ipv4 interface gigabit0/0/0/0 address-family ipv4 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 exit router bgp 1 address-family ipv4 unicast allocate-label all redistribute connected address-family ipv6 unicast allocate-label all redistribute connected neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family ipv4 labeled-unicast address-family ipv6 labeled-unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp22.tst000066400000000000000000000044061471627602100170110ustar00rootroot00000000000000description interop2: evpn/vpws over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 rd 1:101 rt-both 1:101 mac-learn private exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 encap vpws afi-evpn 101 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2222 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 ipv6 enable no shutdown exit interface gigabit0/0/0/1 l2transport no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit l2vpn xconnect group a p2p a interface gigabit0/0/0/1 neighbor evpn evi 101 target 101 source 101 exit router bgp 1 address-family l2vpn evpn neighbor 2.2.2.1 remote-as 1 update-source loopback0 address-family l2vpn evpn ! neighbor 4321::1 ! remote-as 1 ! update-source loopback0 ! address-family l2vpn evpn root commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp23.tst000066400000000000000000000034371471627602100170150ustar00rootroot00000000000000description interop2: bgp aigp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match aigp 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface loopback1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3/128 exit interface loopback2 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy rp1 if destination in (2.2.2.3/32, 4321::3/128) then set aigp 1234 else set aigp 4321 endif pass end-policy router bgp 1 address-family ipv4 unicast redistribute connected route-policy rp1 address-family ipv6 unicast redistribute connected route-policy rp1 neighbor 1.1.1.1 remote-as 1 address-family ipv4 unicast aigp neighbor 1234::1 remote-as 1 address-family ipv6 unicast aigp root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-bgp24.tst000066400000000000000000000077241471627602100170210ustar00rootroot00000000000000description interop2: bgp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2221 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234:1::2/64 no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 address 1234:2::2/64 no shutdown exit router static address-family ipv4 unicast 1.1.1.1/32 gigabit0/0/0/0 1.1.1.1 address-family ipv4 unicast 1.1.2.1/32 gigabit0/0/0/1 1.1.2.1 address-family ipv6 unicast 1234:1::1/128 gigabit0/0/0/0 1234:1::1 address-family ipv6 unicast 1234:2::1/128 gigabit0/0/0/1 1234:2::1 route-policy all pass end-policy router bgp 2 mpls activate interface gigabit0/0/0/0 interface gigabit0/0/0/1 address-family ipv4 unicast allocate-label all redistribute connected address-family ipv6 unicast allocate-label all redistribute connected neighbor 1.1.1.1 remote-as 1 ebgp-multihop address-family ipv4 labeled-unicast route-policy all in route-policy all out neighbor 1.1.2.1 remote-as 3 ebgp-multihop address-family ipv4 labeled-unicast route-policy all in route-policy all out ! neighbor 1234:1::1 ! remote-as 1 ! ebgp-multihop ! address-family ipv6 labeled-unicast ! route-policy all in ! route-policy all out ! neighbor 1234:2::1 ! remote-as 3 ! ebgp-multihop ! address-family ipv6 labeled-unicast ! route-policy all in ! route-policy all out root commit ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 !r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 !r1 tping 0 60 4321::3 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 !r3 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop2-bgp25.tst000066400000000000000000000030471471627602100170140ustar00rootroot00000000000000description interop2: bgp ao authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 authen-type sha1 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 authen-type sha1 1 neigh 1234::2 password tester red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit tcp ao keychain kc key 1 SendID 1 ReceiveID 1 exit key chain kc key 1 key-string clear tester send-lifetime 00:00:00 july 09 2022 infinite cryptographic-algorithm HMAC-SHA1-96 exit router bgp 1 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected neighbor 1.1.1.1 remote-as 1 ao kc include-tcp-options enable address-family ipv4 unicast neighbor 1234::1 remote-as 1 ao kc include-tcp-options enable address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-eigrp01.tst000066400000000000000000000021651471627602100173440ustar00rootroot00000000000000description interop2: eigrp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy all set eigrp-metric 1000 1 255 1 1500 pass end-policy router eigrp 1 address-family ipv4 redistribute connected route-policy all interface gigabit0/0/0/0 address-family ipv6 redistribute connected route-policy all interface gigabit0/0/0/0 root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-eigrp02.tst000066400000000000000000000030331471627602100173400ustar00rootroot00000000000000description interop2: eigrp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit route-policy all set eigrp-metric 1000 1 255 1 1500 pass end-policy router eigrp 1 address-family ipv4 redistribute connected route-policy all interface gigabit0/0/0/0 address-family ipv6 redistribute connected route-policy all interface gigabit0/0/0/0 root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router eigrp4 1 r1 send no red conn r1 send exit r1 send router eigrp6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router eigrp4 1 r1 send red conn r1 send exit r1 send router eigrp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-eth01.tst000066400000000000000000000006741471627602100170210ustar00rootroot00000000000000description interop2: ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-eth02.tst000066400000000000000000000007711471627602100170200ustar00rootroot00000000000000description interop2: dot1q encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 no shutdown exit interface gigabit0/0/0/0.123 encapsulation dot1q 123 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-eth03.tst000066400000000000000000000010261471627602100170130ustar00rootroot00000000000000description interop2: dot1ad encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 enc dot1ad exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 no shutdown exit interface gigabit0/0/0/0.123 encapsulation dot1ad 123 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-eth04.tst000066400000000000000000000007561471627602100170250ustar00rootroot00000000000000description interop2: point2point ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.3 255.255.255.254 ipv6 address 1234::3/127 no shutdown exit root commit ! r1 tping 100 10 1.1.1.3 vrf v1 r1 tping 100 10 1234::3 vrf v1 freeRtr-24.11.16/cfg/intop2-eth05.tst000066400000000000000000000010401471627602100170110ustar00rootroot00000000000000description interop2: lacp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 lacp 0000.0000.1111 123 12345 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface bundle-ether1 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface gigabit0/0/0/0 bundle id 1 mode active lacp period short no shutdown exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-eth06.tst000066400000000000000000000012311471627602100170140ustar00rootroot00000000000000description interop2: fragmentation and reassembly addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit root commit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r1 tping 100 15 1.1.1.2 vrf v1 siz 2222 r1 tping 100 15 1234::2 vrf v1 siz 2222 freeRtr-24.11.16/cfg/intop2-eth07.tst000066400000000000000000000007231471627602100170220ustar00rootroot00000000000000description interop2: verify source addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 verify rx ipv6 verify rx exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-eth08.tst000066400000000000000000000010461471627602100170220ustar00rootroot00000000000000description interop2: qinq encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1.123 exit int eth1.123.1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 no shutdown exit interface gigabit0/0/0/0.1231234 encapsulation dot1q 123 second-dot1q 1234 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-eth09.tst000066400000000000000000000011211471627602100170150ustar00rootroot00000000000000description interop2: dot1q in dot1ad encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 enc dot1ad exit int eth1.123 enc dot1q exit int eth1.123.1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 no shutdown exit interface gigabit0/0/0/0.1231234 encapsulation dot1ad 123 dot1q 1234 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop2-isis01.tst000066400000000000000000000024721471627602100172060ustar00rootroot00000000000000description interop2: point2point isis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis02.tst000066400000000000000000000025631471627602100172100ustar00rootroot00000000000000description interop2: isis dis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 50 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 50 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 address-family ipv4 unicast interface gigabit0/0/0/1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis03.tst000066400000000000000000000025661471627602100172140ustar00rootroot00000000000000description interop2: isis nondis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 70 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 70 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 address-family ipv4 unicast interface gigabit0/0/0/1 address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis04.tst000066400000000000000000000024641471627602100172120ustar00rootroot00000000000000description interop2: isis narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast redistribute connected address-family ipv6 unicast redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis05.tst000066400000000000000000000072331471627602100172120ustar00rootroot00000000000000description interop2: isis te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit interface gigabit0/0/0/2 ipv4 address 1.1.2.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/3 ipv6 enable no shutdown exit interface tunnel-te1 ipv4 address 3.3.3.2 255.255.255.252 destination 2.2.2.1 path-option 1 dynamic exit interface tunnel-te2 ipv4 address 3.3.3.6 255.255.255.252 destination 2.2.2.3 path-option 1 dynamic exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/2 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/2 router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected mpls traffic-eng level-1-2 mpls traffic-eng router-id Loopback0 address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast interface gigabit0/0/0/2 point-to-point address-family ipv4 unicast interface gigabit0/0/0/3 point-to-point address-family ipv6 unicast root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop2-isis06.tst000066400000000000000000000024751471627602100172160ustar00rootroot00000000000000description interop2: isis multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis07.tst000066400000000000000000000033201471627602100172050ustar00rootroot00000000000000description interop2: isis prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send no red conn r1 send exit r1 send router isis6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send red conn r1 send exit r1 send router isis6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis08.tst000066400000000000000000000027101471627602100172100ustar00rootroot00000000000000description interop2: isis text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point hello-password text clear tester address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point hello-password text clear tester address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis09.tst000066400000000000000000000065541471627602100172230ustar00rootroot00000000000000description interop2: isis p2mp te exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 multi-topology both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.3 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2222 $per3$ int eth4 eth 0000.0000.2223 $per4$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit interface gigabit0/0/0/2 ipv4 address 1.1.2.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/3 ipv6 enable no shutdown exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/2 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/2 router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected mpls traffic-eng level-1-2 mpls traffic-eng router-id Loopback0 address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast interface gigabit0/0/0/2 point-to-point address-family ipv4 unicast interface gigabit0/0/0/3 point-to-point address-family ipv6 unicast root commit ! addrouter r3 int eth1 eth 0000.0000.5555 $per3$ int eth2 eth 0000.0000.7777 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 multi-topology both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::2 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.1 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 100 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis10.tst000066400000000000000000000105531471627602100172050ustar00rootroot00000000000000description interop2: isis sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 segrout 10 is-type level2 multi-topology both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo2 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit interface gigabit0/0/0/2 ipv4 address 1.1.2.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/3 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide mpls traffic-eng level-2-only mpls traffic-eng router-id Loopback0 segment-routing mpls sr-prefer redistribute connected address-family ipv6 unicast metric-style wide segment-routing mpls sr-prefer redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast interface gigabit0/0/0/2 point-to-point address-family ipv4 unicast interface gigabit0/0/0/3 point-to-point address-family ipv6 unicast interface Loopback0 passive address-family ipv4 unicast prefix-sid index 3 address-family ipv6 unicast prefix-sid index 4 root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 segrout 10 is-type level2 multi-topology both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 5 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 6 router isis6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo2 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo1 r1 tping 100 60 4321::2 vrf v1 sou lo2 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo1 r3 tping 100 60 4321::2 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop2-isis11.tst000066400000000000000000000026221471627602100172040ustar00rootroot00000000000000description interop2: isis lsp text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 lsp-password text clear tester address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis12.tst000066400000000000000000000107251471627602100172100ustar00rootroot00000000000000description interop2: isis php sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny 58 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 segrout 10 is-type level2 multi-topology both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node router isis6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo2 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit interface gigabit0/0/0/2 ipv4 address 1.1.2.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/3 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide mpls traffic-eng level-2-only mpls traffic-eng router-id Loopback0 segment-routing mpls sr-prefer redistribute connected address-family ipv6 unicast metric-style wide segment-routing mpls sr-prefer redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast interface gigabit0/0/0/2 point-to-point address-family ipv4 unicast interface gigabit0/0/0/3 point-to-point address-family ipv6 unicast interface Loopback0 passive address-family ipv4 unicast prefix-sid index 3 address-family ipv6 unicast prefix-sid index 4 root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny 58 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 segrout 10 is-type level2 multi-topology both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 5 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 6 router isis6 1 segrout node router isis6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo2 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo1 r1 tping 0 60 4321::2 vrf v1 sou lo2 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo1 r3 tping 0 60 4321::2 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop2-isis13.tst000066400000000000000000000114611471627602100172070ustar00rootroot00000000000000description interop2: isis te with pcep exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit interface gigabit0/0/0/2 ipv4 address 1.1.2.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/3 ipv6 enable no shutdown exit interface tunnel-te1 ipv4 address 3.3.3.2 255.255.255.252 destination 2.2.2.1 path-option 1 dynamic pce exit interface tunnel-te2 ipv4 address 3.3.3.6 255.255.255.252 destination 2.2.2.3 path-option 1 dynamic pce exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/2 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/2 pce peer ipv4 1.1.3.2 router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected mpls traffic-eng level-1-2 mpls traffic-eng router-id Loopback0 address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast interface gigabit0/0/0/2 point-to-point address-family ipv4 unicast interface gigabit0/0/0/3 point-to-point address-family ipv6 unicast root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser2 vrf for v1 ipv6 addr 4444::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! addrouter r4 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit serv pcep p export-vrf v1 vrf v1 exit router isis4 1 vrf v1 net 48.4444.0000.4444.00 traffeng 2.2.2.4 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.4444.00 traffeng 6.6.6.4 both traff multi-topology red conn exit int ser1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser2 vrf for v1 ipv6 addr 4444::2 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit ! r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop2-isis14.tst000066400000000000000000000021561471627602100172110ustar00rootroot00000000000000description interop2: integrated isis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide single-topology redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis15.tst000066400000000000000000000075611471627602100172170ustar00rootroot00000000000000description interop2: isis bidir te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte tun assoc 4.4.1.2 1122 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou lo0 tun dest 2.2.2.3 tun vrf v1 tun assoc 4.4.1.3 1133 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit interface gigabit0/0/0/2 ipv4 address 1.1.2.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/3 ipv6 enable no shutdown exit interface tunnel-te1 ipv4 address 3.3.3.2 255.255.255.252 destination 2.2.2.1 bidirectional association id 1122 source-address 4.4.1.2 path-option 1 dynamic exit interface tunnel-te2 ipv4 address 3.3.3.6 255.255.255.252 destination 2.2.2.3 bidirectional association id 2233 source-address 4.4.2.3 path-option 1 dynamic exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/2 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/2 router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected mpls traffic-eng level-1-2 mpls traffic-eng router-id Loopback0 address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast interface gigabit0/0/0/2 point-to-point address-family ipv4 unicast interface gigabit0/0/0/3 point-to-point address-family ipv6 unicast root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun assoc 4.4.2.3 2233 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun assoc 4.4.1.3 1133 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop2-isis16.tst000066400000000000000000000030171471627602100172100ustar00rootroot00000000000000description interop2: isis md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point hello-password hmac-md5 clear tester address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point hello-password hmac-md5 clear tester address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-isis17.tst000066400000000000000000000027011471627602100172100ustar00rootroot00000000000000description interop2: isis lsp md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester both authen-type md5 multi-topology red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 no shutdown exit interface gigabit0/0/0/1 ipv6 enable no shutdown exit router isis 1 net 48.0000.0000.1234.00 lsp-password hmac-md5 clear tester address-family ipv4 unicast metric-style wide redistribute connected address-family ipv6 unicast metric-style wide redistribute connected interface gigabit0/0/0/0 point-to-point address-family ipv4 unicast interface gigabit0/0/0/1 point-to-point address-family ipv6 unicast root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ldp01.tst000066400000000000000000000074441471627602100170220ustar00rootroot00000000000000description interop2: ldp lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 1111::1111:1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 lo1 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address fe80::2 link-local ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 address fe80::2 link-local ipv6 enable no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 interface gigabit0/0/0/1 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 fe80::1 gigabit0/0/0/0 address-family ipv6 unicast 1111::1111:1111/128 fe80::1 gigabit0/0/0/0 address-family ipv4 unicast 2.2.2.3/32 1.1.2.1 gigabit0/0/0/1 address-family ipv6 unicast 4321::3/128 fe80::1 gigabit0/0/0/1 address-family ipv6 unicast 1111::3333:3333/128 fe80::1 gigabit0/0/0/1 exit root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 1111::3333:3333 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 lo1 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 sou lo0 !r1 tping 0 10 4321::2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 sou lo0 !r3 tping 0 10 4321::2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop2-ldp02.tst000066400000000000000000000033521471627602100170150ustar00rootroot00000000000000description interop2: ethernet over mpls addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2222 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 ipv6 enable no shutdown exit interface gigabit0/0/0/1 l2transport no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 exit l2vpn xconnect group a p2p a interface gigabit0/0/0/1 neighbor ipv4 2.2.2.1 pw-id 1234 root commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop2-ldp03.tst000066400000000000000000000060511471627602100170150ustar00rootroot00000000000000description interop2: ldp p2mp lsp exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2222 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 address 1235::2/64 ipv6 enable no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 interface gigabit0/0/0/1 address-family ipv4 address-family ipv6 mldp router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 2.2.2.3/32 1.1.2.1 gigabit0/0/0/1 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 4321::3/128 1235::1 gigabit0/0/0/1 exit root commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 0 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ldp04.tst000066400000000000000000000060561471627602100170230ustar00rootroot00000000000000description interop2: ldp mp2mp lsp exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2222 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 address 1235::2/64 ipv6 enable no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 interface gigabit0/0/0/1 address-family ipv4 address-family ipv6 mldp router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 2.2.2.3/32 1.1.2.1 gigabit0/0/0/1 address-family ipv6 unicast 4321::1/128 1234::1 gigabit0/0/0/0 4321::3/128 1235::1 gigabit0/0/0/1 exit root commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1235::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 100 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ldp05.tst000066400000000000000000000075361471627602100170300ustar00rootroot00000000000000description interop2: ldp php lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 1111::1111:1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls label4pop mpls ldp6 lo1 mpls label6pop exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address fe80::2 link-local ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 address fe80::2 link-local ipv6 enable no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 interface gigabit0/0/0/1 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.1 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 fe80::1 gigabit0/0/0/0 address-family ipv6 unicast 1111::1111:1111/128 fe80::1 gigabit0/0/0/0 address-family ipv4 unicast 2.2.2.3/32 1.1.2.1 gigabit0/0/0/1 address-family ipv6 unicast 4321::3/128 fe80::1 gigabit0/0/0/1 address-family ipv6 unicast 1111::3333:3333/128 fe80::1 gigabit0/0/0/1 exit root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 1111::3333:3333 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls label4pop mpls ldp6 lo1 mpls label6pop exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 sou lo0 !r1 tping 0 10 4321::2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 sou lo0 !r3 tping 0 10 4321::2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop2-ldp06.tst000066400000000000000000000076041471627602100170250ustar00rootroot00000000000000description interop2: ldp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 1111::1111:1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr fe80::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 lo1 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.3 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.3 255.255.255.254 ipv6 address fe80::2 link-local ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.254 ipv6 address fe80::2 link-local ipv6 enable no shutdown exit mpls ldp address-family ipv4 address-family ipv6 interface gigabit0/0/0/0 address-family ipv4 address-family ipv6 interface gigabit0/0/0/1 address-family ipv4 address-family ipv6 router static address-family ipv4 unicast 2.2.2.1/32 1.1.1.2 gigabit0/0/0/0 address-family ipv6 unicast 4321::1/128 fe80::3 gigabit0/0/0/0 address-family ipv6 unicast 1111::1111:1111/128 fe80::3 gigabit0/0/0/0 address-family ipv4 unicast 2.2.2.3/32 1.1.2.3 gigabit0/0/0/1 address-family ipv6 unicast 4321::3/128 fe80::3 gigabit0/0/0/1 address-family ipv6 unicast 1111::3333:3333/128 fe80::3 gigabit0/0/0/1 exit root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 1111::3333:3333 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.254 ipv6 addr fe80::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 lo1 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 sou lo0 !r1 tping 0 10 4321::2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 sou lo0 !r3 tping 0 10 4321::2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop2-mcast01.tst000066400000000000000000000033731471627602100173470ustar00rootroot00000000000000description interop2: igmp3/mld2 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 address 1234::1 ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 addr 1234::2/64 no shutdown exit interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router static address-family ipv4 unicast 2.2.2.1/32 gigabit0/0/0/0 1.1.1.1 address-family ipv6 unicast 4321::1/128 gigabit0/0/0/0 1234::1 multicast-routing address-family ipv4 interface Loopback0 enable interface gigabit0/0/0/0 enable static-rpf 2.2.2.1 32 gigabit0/0/0/0 1.1.1.1 address-family ipv6 interface Loopback0 enable interface gigabit0/0/0/0 enable static-rpf 4321::1 128 gigabit0/0/0/0 1234::1 router pim address-family ipv4 interface Loopback0 enable interface gigabit0/0/0/0 enable address-family ipv6 interface Loopback0 enable interface gigabit0/0/0/0 enable router igmp interface gigabit0/0/0/0 join-group 232.2.2.2 2.2.2.1 version 3 router mld interface gigabit0/0/0/0 join-group ff06::1 4321::1 version 2 router igmp root commit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 232.2.2.2 vrf v1 sou lo0 r1 tping 100 60 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-mcast02.tst000066400000000000000000000031721471627602100173450ustar00rootroot00000000000000description interop2: pim addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 address 1234::1 ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 addr 1234::2/64 no shutdown exit interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit router static address-family ipv4 unicast 2.2.2.1/32 gigabit0/0/0/0 1.1.1.1 address-family ipv6 unicast 4321::1/128 gigabit0/0/0/0 1234::1 multicast-routing address-family ipv4 interface Loopback0 enable interface gigabit0/0/0/0 enable static-rpf 2.2.2.1 32 gigabit0/0/0/0 1.1.1.1 address-family ipv6 interface Loopback0 enable interface gigabit0/0/0/0 enable static-rpf 4321::1 128 gigabit0/0/0/0 1234::1 router pim address-family ipv4 interface Loopback0 enable interface gigabit0/0/0/0 enable address-family ipv6 interface Loopback0 enable interface gigabit0/0/0/0 enable router igmp interface Loopback0 join-group 232.2.2.2 2.2.2.1 version 3 router mld interface Loopback0 join-group ff06::1 4321::1 version 2 router igmp root commit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 232.2.2.2 vrf v1 sou lo0 r1 tping 100 60 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf01.tst000066400000000000000000000020211471627602100171740ustar00rootroot00000000000000description interop2: point2point ospf addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf02.tst000066400000000000000000000020761471627602100172070ustar00rootroot00000000000000description interop2: ospf dr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 10 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 10 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 0 interface gigabit0/0/0/0 router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf03.tst000066400000000000000000000020771471627602100172110ustar00rootroot00000000000000description interop2: ospf nondr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 0 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 0 interface gigabit0/0/0/0 router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf04.tst000066400000000000000000000020461471627602100172060ustar00rootroot00000000000000description interop2: ospf transit area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 1 interface gigabit0/0/0/0 network point-to-point router ospfv3 1 redistribute connected area 1 interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf05.tst000066400000000000000000000022331471627602100172050ustar00rootroot00000000000000description interop2: ospf stub area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 1 stub exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 1 stub no area 1 host exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 1 stub interface loopback0 passive interface gigabit0/0/0/0 network point-to-point router ospfv3 1 redistribute connected area 1 stub interface loopback0 passive interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf06.tst000066400000000000000000000022331471627602100172060ustar00rootroot00000000000000description interop2: ospf nssa area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 1 nssa exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 1 nssa no area 1 host exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 1 nssa interface loopback0 passive interface gigabit0/0/0/0 network point-to-point router ospfv3 1 redistribute connected area 1 nssa interface loopback0 passive interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf07.tst000066400000000000000000000061741471627602100172170ustar00rootroot00000000000000description interop2: ospf te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 enable no shutdown exit interface tunnel-te1 ipv4 address 3.3.3.2 255.255.255.252 destination 2.2.2.1 path-option 1 dynamic exit interface tunnel-te2 ipv4 address 3.3.3.6 255.255.255.252 destination 2.2.2.3 path-option 1 dynamic exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/1 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/1 router ospf 1 mpls traffic-eng router-id Loopback0 redistribute connected area 0 mpls traffic-eng interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop2-ospf08.tst000066400000000000000000000026471471627602100172210ustar00rootroot00000000000000description interop2: ospf prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send no red conn r1 send exit r1 send router ospf6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send red conn r1 send exit r1 send router ospf6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf09.tst000066400000000000000000000021561471627602100172150ustar00rootroot00000000000000description interop2: ospf text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 0 interface gigabit0/0/0/0 authentication-key clear tester authentication network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf10.tst000066400000000000000000000055151471627602100172070ustar00rootroot00000000000000description interop2: ospf p2mp te exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.3 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2222 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 enable no shutdown exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/1 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/1 router ospf 1 mpls traffic-eng router-id Loopback0 redistribute connected area 0 mpls traffic-eng interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point root commit ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::3 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit interface tunnel1 bandwidth 11 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.1 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v1 sou lo0 r3 tping 100 60 3.3.3.1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-ospf11.tst000066400000000000000000000066551471627602100172160ustar00rootroot00000000000000description interop2: ospf sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected mpls traffic-eng router-id Loopback0 area 0 segment-routing forwarding mpls mpls traffic-eng segment-routing mpls interface Loopback0 passive enable prefix-sid index 3 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 5 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 6 router ospf6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop2-ospf12.tst000066400000000000000000000070351471627602100172100ustar00rootroot00000000000000description interop2: ospf php sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node router ospf6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected mpls traffic-eng router-id Loopback0 area 0 segment-routing forwarding mpls mpls traffic-eng segment-routing mpls interface Loopback0 passive enable prefix-sid index 3 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 5 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 6 router ospf6 1 segrout node router ospf6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop2-ospf13.tst000066400000000000000000000101301471627602100171770ustar00rootroot00000000000000description interop2: ospf te with pcep exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 enable no shutdown exit interface tunnel-te1 ipv4 address 3.3.3.2 255.255.255.252 destination 2.2.2.1 path-option 1 dynamic pce exit interface tunnel-te2 ipv4 address 3.3.3.6 255.255.255.252 destination 2.2.2.3 path-option 1 dynamic pce exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/1 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/1 pce peer ipv4 1.1.3.2 router ospf 1 mpls traffic-eng router-id Loopback0 redistribute connected area 0 mpls traffic-eng interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int ser1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 4444::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun dom 1.1.3.2 v1 lo0 tun mod pcete vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! addrouter r4 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit serv pcep p export-vrf v1 vrf v1 exit router ospf4 1 vrf v1 router 4.4.4.4 traffeng 2.2.2.4 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.4 traffeng 6.6.6.4 area 0 ena area 0 traff red conn exit int ser1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 4444::2 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit ! r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop2-ospf14.tst000066400000000000000000000065221471627602100172120ustar00rootroot00000000000000description interop2: ospf bidir te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun assoc 4.4.1.2 1122 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou lo0 tun dest 2.2.2.3 tun vrf v1 tun assoc 4.4.1.3 1133 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit interface gigabit0/0/0/1 ipv4 address 1.1.2.2 255.255.255.0 ipv6 enable no shutdown exit interface tunnel-te1 ipv4 address 3.3.3.2 255.255.255.252 destination 2.2.2.1 bidirectional association id 1122 source-address 4.4.1.2 path-option 1 dynamic exit interface tunnel-te2 ipv4 address 3.3.3.6 255.255.255.252 destination 2.2.2.3 bidirectional association id 2233 source-address 4.4.2.3 path-option 1 dynamic exit rsvp interface gigabit0/0/0/0 bandwidth interface gigabit0/0/0/1 bandwidth mpls traffic-eng interface gigabit0/0/0/0 interface gigabit0/0/0/1 router ospf 1 mpls traffic-eng router-id Loopback0 redistribute connected area 0 mpls traffic-eng interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point interface gigabit0/0/0/1 network point-to-point root commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun assoc 4.4.2.3 2233 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun assoc 4.4.1.3 1133 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop2-ospf15.tst000066400000000000000000000023101471627602100172020ustar00rootroot00000000000000description interop2: ospf md5 authentication exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf4 1 authen-id 123 router ospf4 1 authen-type md5 router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 enable no shutdown exit router ospf 1 redistribute connected area 0 interface gigabit0/0/0/0 authentication message-digest message-digest-key 123 md5 clear tester network point-to-point router ospfv3 1 redistribute connected area 0 interface gigabit0/0/0/0 network point-to-point root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-pppoe01.tst000066400000000000000000000033401471627602100173550ustar00rootroot00000000000000description interop2: pppoe with pap exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 0.0.0.0 ppp ip4cp open ppp ip6cp open ppp user usr ppp pass pwd exit int eth1 vrf for v1 ipv4 address 2.2.2.2 255.255.255.0 exit int eth1.123 p2poe client di1 exit aaa userlist aaa username usr password pwd exit server radius v1 authentication aaa secret tester vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! aaa authorization subscriber default group radius aaa authentication subscriber default group radius radius-server host 2.2.2.2 auth-port 1812 acct-port 1813 key tester pool vrf default ipv4 p1 address-range 1.1.1.201 1.1.1.255 dynamic-template type ppp dt1 ppp authentication pap ppp ipcp peer-address pool p1 ipv4 unnumbered Loopback0 ipv6 enable pppoe bba-group bg1 ac name inet service selection disable class-map type control subscriber match-any cm1 match protocol ppp end-class-map policy-map type control subscriber pm1 event session-start match-first class type control subscriber cm1 do-until-failure 10 activate dynamic-template dt1 event session-activate match-first class type control subscriber cm1 do-until-failure 10 authenticate aaa list default end-policy-map interface Loopback0 ipv4 address 1.1.1.111 255.255.255.255 ipv6 address 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 2.2.2.1 255.255.255.0 no shutdown exit interface gigabit0/0/0/0.123 encapsulation dot1q 123 service-policy type control subscriber pm1 pppoe enable bba-group bg1 exit root commit ! r1 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 1.1.1.111 vrf v1 freeRtr-24.11.16/cfg/intop2-pppoe02.tst000066400000000000000000000033421471627602100173600ustar00rootroot00000000000000description interop2: pppoe with chap exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr fe80::1234 ffff:: ppp ip4cp local 0.0.0.0 ppp ip4cp open ppp ip6cp open ppp user usr ppp pass pwd exit int eth1 vrf for v1 ipv4 address 2.2.2.2 255.255.255.0 exit int eth1.123 p2poe client di1 exit aaa userlist aaa username usr password pwd exit server radius v1 authentication aaa secret tester vrf v1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! aaa authorization subscriber default group radius aaa authentication subscriber default group radius radius-server host 2.2.2.2 auth-port 1812 acct-port 1813 key tester pool vrf default ipv4 p1 address-range 1.1.1.201 1.1.1.255 dynamic-template type ppp dt1 ppp authentication chap ppp ipcp peer-address pool p1 ipv4 unnumbered Loopback0 ipv6 enable pppoe bba-group bg1 ac name inet service selection disable class-map type control subscriber match-any cm1 match protocol ppp end-class-map policy-map type control subscriber pm1 event session-start match-first class type control subscriber cm1 do-until-failure 10 activate dynamic-template dt1 event session-activate match-first class type control subscriber cm1 do-until-failure 10 authenticate aaa list default end-policy-map interface Loopback0 ipv4 address 1.1.1.111 255.255.255.255 ipv6 address 4321::2/128 exit interface gigabit0/0/0/0 ipv4 address 2.2.2.1 255.255.255.0 no shutdown exit interface gigabit0/0/0/0.123 encapsulation dot1q 123 service-policy type control subscriber pm1 pppoe enable bba-group bg1 exit root commit ! r1 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 1.1.1.111 vrf v1 freeRtr-24.11.16/cfg/intop2-rip01.tst000066400000000000000000000016371471627602100170330ustar00rootroot00000000000000description interop2: rip addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address fe80::2 link-local no shutdown exit interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit route-policy a set rip-metric 5 pass end-policy router rip redistribute connected route-policy a interface gigabit0/0/0/0 root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-rip02.tst000066400000000000000000000030261471627602100170260ustar00rootroot00000000000000description interop2: rip prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip4 1 update-time 5000 router rip4 1 hold-time 15000 router rip4 1 flush-time 15000 router rip6 1 ena router rip6 1 update-time 5000 router rip6 1 hold-time 15000 router rip6 1 flush-time 15000 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address fe80::2 link-local no shutdown exit interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit route-policy a set rip-metric 5 pass end-policy router rip timers basic 5 15 15 16 redistribute connected route-policy a interface gigabit0/0/0/0 root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 120 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router rip4 1 r1 send no red conn r1 send exit r1 send router rip6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router rip4 1 r1 send red conn r1 send exit r1 send router rip6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-rip03.tst000066400000000000000000000020411471627602100170230ustar00rootroot00000000000000description interop2: rip authentication exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip4 1 pass tester router rip6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address fe80::2 link-local no shutdown exit interface loopback0 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2/128 exit route-policy a set rip-metric 5 pass end-policy key chain kc1 key 0 key-string clear tester router rip redistribute connected route-policy a interface gigabit0/0/0/0 authentication keychain kc1 mode text root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop2-tun01.tst000066400000000000000000000023221471627602100170370ustar00rootroot00000000000000description interop2: gre tunnel addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface tunnel-ip1 tunnel source gigabit0/0/0/0 tunnel destination 1.1.1.1 tunnel mode gre ipv4 ipv4 address 2.2.2.2 255.255.255.0 ipv6 address 2222::2/64 exit interface tunnel-ip2 tunnel source gigabit0/0/0/0 tunnel destination 1234::1 tunnel mode gre ipv6 ipv4 address 3.3.3.2 255.255.255.0 ipv6 address 3333::2/64 exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 2222::2 vrf v1 r1 tping 100 10 3.3.3.2 vrf v1 r1 tping 100 10 3333::2 vrf v1 freeRtr-24.11.16/cfg/intop2-tun02.tst000066400000000000000000000023151471627602100170420ustar00rootroot00000000000000description interop2: ipip tunnel addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int tun2 tunnel vrf v1 tunnel mode ipip tunnel source ethernet1 tunnel destination 1234::2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! interface gigabit0/0/0/0 ipv4 address 1.1.1.2 255.255.255.0 ipv6 address 1234::2/64 no shutdown exit interface tunnel-ip1 tunnel source gigabit0/0/0/0 tunnel destination 1.1.1.1 tunnel mode ipv4 ipv4 address 2.2.2.2 255.255.255.0 ipv6 address 2222::2/64 exit interface tunnel-ip2 tunnel source gigabit0/0/0/0 tunnel destination 1234::1 tunnel mode ipv6 ipv4 address 3.3.3.2 255.255.255.0 ipv6 address 3333::2/64 exit root commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 2222::2 vrf v1 r1 tping 100 10 3.3.3.2 vrf v1 r1 tping 100 10 3333::2 vrf v1 freeRtr-24.11.16/cfg/intop2.ini000066400000000000000000000007461471627602100160470ustar00rootroot00000000000000../img/v9k.img pc-i440fx-7.1 16384 4 virtio-net-pci 3 .*Interface GigabitEthernet0/0/0/0, changed state to Up mc36 cisco configure terminal !!!separator- hostname v9k lldp cdp username mc36 group root-lr group cisco-support secret 10 $6$LkHh21wI9lpGA21.$iVcg5e0Pu5YIMpmnT8cXimPZBu1fBvPp5XI5skNNuZtuioXTjVvonoJKS0L6BkQcrCw2h8kWGsbN12ZPKSLK31 exit interface gigabit0/0/0/0 cdp no shutdown exit telnet ipv4 server max-servers 10 telnet ipv6 server max-servers 10 commit replace yes freeRtr-24.11.16/cfg/intop8-bgp01.tst000066400000000000000000000026041471627602100170120ustar00rootroot00000000000000description interop8: ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit route-map all permit 10 exit router bgp 2 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out no neighbor 1234::1 activate redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate neighbor 1234::1 route-map all in neighbor 1234::1 route-map all out redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp02.tst000066400000000000000000000022701471627602100170120ustar00rootroot00000000000000description interop8: ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp03.tst000066400000000000000000000037131471627602100170160ustar00rootroot00000000000000description interop8: bgp locpref addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set local-preference 1234 route-map rm1 permit 20 set local-preference 4321 ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set local-preference 1234 route-map rm2 permit 20 set local-preference 4321 router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp04.tst000066400000000000000000000036501471627602100170170ustar00rootroot00000000000000description interop8: bgp origin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match origin 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set origin incomplete route-map rm1 permit 20 set origin igp ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set origin incomplete route-map rm2 permit 20 set origin igp router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp05.tst000066400000000000000000000036411471627602100170200ustar00rootroot00000000000000description interop8: bgp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match metric 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set metric 1234 route-map rm1 permit 20 set metric 4321 ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set metric 1234 route-map rm2 permit 20 set metric 4321 router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp06.tst000066400000000000000000000037121471627602100170200ustar00rootroot00000000000000description interop8: bgp community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set community 1234:4321 route-map rm1 permit 20 set community 1234:1234 ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set community 1234:4321 route-map rm2 permit 20 set community 1234:1234 router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp07.tst000066400000000000000000000037111471627602100170200ustar00rootroot00000000000000description interop8: bgp aspath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match aspath .*1234.* sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set as-path prepend 1234 route-map rm1 permit 20 set as-path prepend 4321 ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set as-path prepend 1234 route-map rm2 permit 20 set as-path prepend 4321 router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp08.tst000066400000000000000000000104411471627602100170170ustar00rootroot00000000000000description interop8: bgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234:1::2/64 no shutdown exit interface ens4 ip address 1.1.2.2/24 ipv6 address 1234:2::2/64 no shutdown exit route-map all permit 10 exit router bgp 2 neighbor 1.1.1.1 remote-as 1 neighbor 1234:1::1 remote-as 1 neighbor 1.1.2.1 remote-as 3 neighbor 1234:2::1 remote-as 3 address-family ipv4 unicast no neighbor 1.1.1.1 activate no neighbor 1234:1::1 activate no neighbor 1.1.2.1 activate no neighbor 1234:2::1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out neighbor 1.1.2.1 route-map all in neighbor 1.1.2.1 route-map all out address-family ipv6 unicast no neighbor 1.1.1.1 activate no neighbor 1234:1::1 activate no neighbor 1.1.2.1 activate no neighbor 1234:2::1 activate neighbor 1234:1::1 route-map all in neighbor 1234:1::1 route-map all out neighbor 1234:2::1 route-map all in neighbor 1234:2::1 route-map all out address-family ipv4 label neighbor 1.1.1.1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out neighbor 1.1.2.1 activate neighbor 1.1.2.1 route-map all in neighbor 1.1.2.1 route-map all out redistribute connected address-family ipv6 label neighbor 1234:1::1 activate neighbor 1234:1::1 route-map all in neighbor 1234:1::1 route-map all out neighbor 1234:2::1 activate neighbor 1234:2::1 route-map all in neighbor 1234:2::1 route-map all out redistribute connected exit ! addrouter r3 int eth1 eth 0000.0000.1131 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/intop8-bgp09.tst000066400000000000000000000026331471627602100170240ustar00rootroot00000000000000description interop8: bgp addpath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 additional-path-tx uni neigh 1.1.1.2 additional-path-rx uni red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 additional-path-tx uni neigh 1234::2 additional-path-rx uni red conn exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate neighbor 1.1.1.1 addpath-tx-all redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate neighbor 1234::1 addpath-tx-all redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp10.tst000066400000000000000000000031251471627602100170110ustar00rootroot00000000000000description interop8: bgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp11.tst000066400000000000000000000025101471627602100170070ustar00rootroot00000000000000description interop8: bgp authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 password tester red conn exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 neighbor 1.1.1.1 password tester neighbor 1234::1 password tester address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp12.tst000066400000000000000000000037551471627602100170240ustar00rootroot00000000000000description interop8: bgp extended community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match extcomm 2:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set extcommunity rt 1234:4321 route-map rm1 permit 20 set extcommunity rt 1234:1234 ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set extcommunity rt 1234:4321 route-map rm2 permit 20 set extcommunity rt 1234:1234 router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp13.tst000066400000000000000000000040011471627602100170060ustar00rootroot00000000000000description interop8: bgp large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match lrgcomm 1234:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ip addr 2.2.2.3/32 ip addr 2.2.2.4/32 ipv6 addr 4321::2/128 ipv6 addr 4321::3/128 ipv6 addr 4321::4/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ip prefix-list pl1 seq 5 permit 2.2.2.3/32 route-map rm1 permit 10 match ip address prefix-list pl1 set large-community 1234:1234:4321 route-map rm1 permit 20 set large-community 1234:1234:1234 ipv6 prefix-list pl2 seq 5 permit 4321::3/128 route-map rm2 permit 10 match ipv6 address prefix-list pl2 set large-community 1234:1234:4321 route-map rm2 permit 20 set large-community 1234:1234:1234 router bgp 1 neighbor 1.1.1.1 remote-as 1 neighbor 1234::1 remote-as 1 address-family ipv4 unicast neighbor 1.1.1.1 activate no neighbor 1234::1 activate redistribute connected route-map rm1 address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate redistribute connected route-map rm2 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp14.tst000066400000000000000000000105751471627602100170240ustar00rootroot00000000000000description interop8: bgp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234:1::2/64 no shutdown exit interface ens4 ip address 1.1.2.2/24 ipv6 address 1234:2::2/64 no shutdown exit route-map all permit 10 exit router bgp 2 neighbor 1.1.1.1 remote-as 1 neighbor 1234:1::1 remote-as 1 neighbor 1.1.2.1 remote-as 3 neighbor 1234:2::1 remote-as 3 address-family ipv4 unicast no neighbor 1.1.1.1 activate no neighbor 1234:1::1 activate no neighbor 1.1.2.1 activate no neighbor 1234:2::1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out neighbor 1.1.2.1 route-map all in neighbor 1.1.2.1 route-map all out address-family ipv6 unicast no neighbor 1.1.1.1 activate no neighbor 1234:1::1 activate no neighbor 1.1.2.1 activate no neighbor 1234:2::1 activate neighbor 1234:1::1 route-map all in neighbor 1234:1::1 route-map all out neighbor 1234:2::1 route-map all in neighbor 1234:2::1 route-map all out address-family ipv4 label neighbor 1.1.1.1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out neighbor 1.1.2.1 activate neighbor 1.1.2.1 route-map all in neighbor 1.1.2.1 route-map all out redistribute connected address-family ipv6 label neighbor 1234:1::1 activate neighbor 1234:1::1 route-map all in neighbor 1234:1::1 route-map all out neighbor 1234:2::1 activate neighbor 1234:2::1 route-map all in neighbor 1234:2::1 route-map all out redistribute connected exit ! addrouter r3 int eth1 eth 0000.0000.1131 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 !r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/intop8-bgp15.tst000066400000000000000000000030541471627602100170170ustar00rootroot00000000000000description interop8: ebgp peer role addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 leak-role peer enforce red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 leak-role peer enforce red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit route-map all permit 10 exit router bgp 2 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 local-role peer strict neighbor 1234::1 remote-as 1 neighbor 1234::1 local-role peer strict address-family ipv4 unicast neighbor 1.1.1.1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out no neighbor 1234::1 activate redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate neighbor 1234::1 route-map all in neighbor 1234::1 route-map all out redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-bgp16.tst000066400000000000000000000030761471627602100170240ustar00rootroot00000000000000description interop8: ebgp ix role addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 leak-role ix-client enforce red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 leak-role ix-client enforce red conn exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit route-map all permit 10 exit router bgp 2 neighbor 1.1.1.1 remote-as 1 neighbor 1.1.1.1 local-role rs-server strict neighbor 1234::1 remote-as 1 neighbor 1234::1 local-role rs-server strict address-family ipv4 unicast neighbor 1.1.1.1 activate neighbor 1.1.1.1 route-map all in neighbor 1.1.1.1 route-map all out no neighbor 1234::1 activate redistribute connected address-family ipv6 unicast no neighbor 1.1.1.1 activate neighbor 1234::1 activate neighbor 1234::1 route-map all in neighbor 1234::1 route-map all out redistribute connected exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-eigrp01.tst000066400000000000000000000015321471627602100173470ustar00rootroot00000000000000description interop8: eigrp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router eigrp 1 network 1.1.1.0/24 network 2.2.2.0/24 exit interface ens3 ip address 1.1.1.2/24 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-eth01.tst000066400000000000000000000012311471627602100170150ustar00rootroot00000000000000description interop8: fragmentation and reassembly addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r1 tping 100 15 1.1.1.2 vrf v1 siz 2222 r1 tping 100 15 1234::2 vrf v1 siz 2222 freeRtr-24.11.16/cfg/intop8-eth02.tst000066400000000000000000000007231471627602100170230ustar00rootroot00000000000000description interop8: verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 verify rx ipv6 verify rx exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface ens3 ip address 1.1.1.2/24 ipv6 address 1234::2/64 no shutdown exit ! r1 tping 100 15 1.1.1.2 vrf v1 r1 tping 100 15 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop8-isis01.tst000066400000000000000000000022371471627602100172130ustar00rootroot00000000000000description interop8: point2point isis addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis02.tst000066400000000000000000000022771471627602100172200ustar00rootroot00000000000000description interop8: isis dis addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 50 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 50 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 no shutdown exit interface ens4 ipv6 router isis 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis03.tst000066400000000000000000000023021471627602100172060ustar00rootroot00000000000000description interop8: isis nondis addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 70 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 70 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 no shutdown exit interface ens4 ipv6 router isis 1 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis04.tst000066400000000000000000000023111471627602100172070ustar00rootroot00000000000000description interop8: isis narrow metric exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style narrow redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis05.tst000066400000000000000000000030651471627602100172170ustar00rootroot00000000000000description interop8: isis prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send no red conn r1 send exit r1 send router isis6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send red conn r1 send exit r1 send router isis6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis06.tst000066400000000000000000000024371471627602100172220ustar00rootroot00000000000000description interop8: isis text authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point isis password clear tester no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point isis password clear tester no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis07.tst000066400000000000000000000017431471627602100172220ustar00rootroot00000000000000description interop8: integrated isis addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 ipv6 router isis 1 isis network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis08.tst000066400000000000000000000023651471627602100172240ustar00rootroot00000000000000description interop8: isis lsp text authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 domain-password clear tester metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis09.tst000066400000000000000000000024361471627602100172240ustar00rootroot00000000000000description interop8: isis lsp md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 domain-password md5 tester metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-isis10.tst000066400000000000000000000025321471627602100172110ustar00rootroot00000000000000description interop8: isis md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2211 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router isis 1 net 48.0000.0000.1234.00 metric-style wide redistribute ipv4 connected level-2 redistribute ipv6 connected level-2 exit interface ens3 ip address 1.1.1.2/24 ip router isis 1 isis network point-to-point isis password md5 tester no shutdown exit interface ens4 ipv6 router isis 1 isis network point-to-point isis password md5 tester no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ldp01.tst000066400000000000000000000063221471627602100170220ustar00rootroot00000000000000description interop8: ldp lsp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321::1111:0 ffff:: all 4321::1111:0 ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::202:201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 lo0 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2222 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::202:203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2222 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.252 pseudo v1 lo0 pweompls 4321::202:203 1234 exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2211 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4444::2/128 exit interface ens3 ip address 1.1.1.2/24 no shutdown exit interface ens4 ip address 1.1.2.2/24 no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::202:201/128 fe80::1 ens3 ip route 2.2.2.3 255.255.255.255 1.1.2.1 ipv6 route 4321::202:203/128 fe80::4 ens4 mpls ldp address-family ipv4 discovery transport-address 2.2.2.2 ttl-security disable interface ens3 interface ens4 exit address-family ipv6 discovery transport-address 4444::2 ttl-security disable interface ens3 interface ens4 exit ! addrouter r3 int eth1 eth 0000.0000.1131 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321::1111:0 ffff:: all 4321::1111:0 ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::202:203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::4 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls ldp6 lo0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::202:201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2211 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2211 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.252 pseudo v1 lo0 pweompls 4321::202:201 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 !r1 tping 100 40 3.3.4.2 vrf v1 !r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/intop8-ldp02.tst000066400000000000000000000064221471627602100170240ustar00rootroot00000000000000description interop8: ldp php lsp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321::1111:0 ffff:: all 4321::1111:0 ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::202:201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls label4pop mpls ldp6 lo0 mpls label6pop exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2222 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::202:203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2222 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.252 pseudo v1 lo0 pweompls 4321::202:203 1234 exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2211 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4444::2/128 exit interface ens3 ip address 1.1.1.2/24 no shutdown exit interface ens4 ip address 1.1.2.2/24 no shutdown exit ip route 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route 4321::202:201/128 fe80::1 ens3 ip route 2.2.2.3 255.255.255.255 1.1.2.1 ipv6 route 4321::202:203/128 fe80::4 ens4 mpls ldp address-family ipv4 discovery transport-address 2.2.2.2 ttl-security disable interface ens3 interface ens4 exit address-family ipv6 discovery transport-address 4444::2 ttl-security disable interface ens3 interface ens4 exit ! addrouter r3 int eth1 eth 0000.0000.1131 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321::1111:0 ffff:: all 4321::1111:0 ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::202:203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::4 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 mpls enable mpls ldp4 mpls label4pop mpls ldp6 lo0 mpls label6pop exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::202:201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2211 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::200:ff:fe00:2211 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.252 pseudo v1 lo0 pweompls 4321::202:201 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 !r1 tping 100 40 3.3.4.2 vrf v1 !r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/intop8-mcast01.tst000066400000000000000000000030111471627602100173420ustar00rootroot00000000000000description interop8: igmp3/mld2 exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface ens3 ip address 1.1.1.2/24 ipv6 address 1234:1::2/64 ip igmp ipv6 mld no shutdown exit interface ens4 ip address 1.1.2.2/24 ipv6 address 1234:2::2/64 ip igmp ipv6 mld no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.2 ipv6 route v1 1234:1::1 ffff:ffff:ffff:ffff:: 1234:2::2 ipv4 mroute v1 1.1.1.0 255.255.255.0 1.1.2.2 ipv6 mroute v1 1234:1::1 ffff:ffff:ffff:ffff:: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r1 tping 100 60 1.1.1.1 vrf v1 sou eth1 r1 tping 100 60 1234:1::1 vrf v1 sou eth1 r3 tping 100 60 1.1.2.1 vrf v1 sou eth1 r3 tping 100 60 1234:2::1 vrf v1 sou eth1 r1 tping 100 60 232.2.2.2 vrf v1 sou eth1 !r1 tping 100 60 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/intop8-mcast02.tst000066400000000000000000000026121471627602100173510ustar00rootroot00000000000000description interop8: pim addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! ip forwarding ipv6 forwarding interface ens3 ip address 1.1.1.2/24 ipv6 address 1234:1::2/64 ip pim ipv6 pim no shutdown exit interface ens4 ip address 1.1.2.2/24 ipv6 address 1234:2::2/64 ip pim ipv6 pim no shutdown exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.2 ipv6 route v1 1234:1::1 ffff:ffff:ffff:ffff:: 1234:2::2 ipv4 mroute v1 1.1.1.0 255.255.255.0 1.1.2.2 ipv6 mroute v1 1234:1::1 ffff:ffff:ffff:ffff:: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r1 tping 100 60 1.1.1.1 vrf v1 sou eth1 r1 tping 100 60 1234:1::1 vrf v1 sou eth1 r3 tping 100 60 1.1.2.1 vrf v1 sou eth1 r3 tping 100 60 1234:2::1 vrf v1 sou eth1 r1 tping 100 60 232.2.2.2 vrf v1 sou eth1 !r1 tping 100 60 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/intop8-ospf01.tst000066400000000000000000000020111471627602100172010ustar00rootroot00000000000000description interop8: point2point ospf addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena no area 0 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena no area 0 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 0 ipv6 ospf area 0 ip ospf network point-to-point ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf02.tst000066400000000000000000000020411471627602100172050ustar00rootroot00000000000000description interop8: ospf dr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena no area 0 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena no area 0 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 10 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 10 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 0 ipv6 ospf area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf03.tst000066400000000000000000000020421471627602100172070ustar00rootroot00000000000000description interop8: ospf nondr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena no area 0 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena no area 0 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 0 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 0 ipv6 ospf area 0 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf04.tst000066400000000000000000000020121471627602100172050ustar00rootroot00000000000000description interop8: ospf transit area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena no area 1 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena no area 1 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 1 ipv6 ospf area 1 ip ospf network point-to-point ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf05.tst000066400000000000000000000021011471627602100172050ustar00rootroot00000000000000description interop8: ospf stub area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena no area 1 host area 1 stub exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena no area 1 host area 1 stub exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding router ospf area 1 stub exit router ospf6 area 1 stub exit interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 ip ospf area 1 ipv6 ospf area 1 exit interface ens3 ip address 1.1.1.2/24 ip ospf area 1 ipv6 ospf area 1 ip ospf network point-to-point ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf06.tst000066400000000000000000000021071471627602100172140ustar00rootroot00000000000000description interop8: ospf nssa area exit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena no area 1 host area 1 nssa exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena no area 1 host area 1 nssa exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding router ospf area 1 nssa exit router ospf6 area 1 nssa exit interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 ip ospf area 1 ipv6 ospf area 1 exit interface ens3 ip address 1.1.1.2/24 ip ospf area 1 ipv6 ospf area 1 ip ospf network point-to-point ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf07.tst000066400000000000000000000026371471627602100172250ustar00rootroot00000000000000description interop8: ospf prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena no area 0 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena no area 0 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 0 ipv6 ospf area 0 ip ospf network point-to-point ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send no red conn r1 send exit r1 send router ospf6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send red conn r1 send exit r1 send router ospf6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf08.tst000066400000000000000000000021541471627602100172200ustar00rootroot00000000000000description interop8: ospf text authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena no area 0 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena no area 0 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 0 ipv6 ospf area 0 ip ospf network point-to-point ip ospf authentication ip ospf authentication-key tester ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-ospf09.tst000066400000000000000000000023001471627602100172120ustar00rootroot00000000000000description interop8: ospf md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena no area 0 host red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena no area 0 host red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf4 1 authen-id 123 router ospf4 1 authen-type md5 router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router ospf redistribute connected exit router ospf6 redistribute connected exit interface ens3 ip address 1.1.1.2/24 ip ospf area 0 ipv6 ospf area 0 ip ospf network point-to-point ip ospf authentication message-digest ip ospf message-digest-key 123 md5 tester ipv6 ospf6 network point-to-point no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8-rip01.tst000066400000000000000000000015301471627602100170310ustar00rootroot00000000000000description interop8: rip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! ip forwarding ipv6 forwarding interface lo ip addr 2.2.2.2/32 ipv6 addr 4321::2/128 exit router rip redistribute connected network ens3 exit router ripng redistribute connected network ens3 exit interface ens3 ip address 1.1.1.2/24 no shutdown exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop8.ini000066400000000000000000000006531471627602100160520ustar00rootroot00000000000000frr qemu-img create -f qcow2 -o backing_file=../img/frr.img,backing_fmt=raw $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 1024 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Hello, this is FRRouting.* !!!separator- enable configure terminal freeRtr-24.11.16/cfg/intop9-bgp01.tst000066400000000000000000000024751471627602100170210ustar00rootroot00000000000000description interop9: ebgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 2 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peers type external set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp02.tst000066400000000000000000000024411471627602100170130ustar00rootroot00000000000000description interop9: ibgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp03.tst000066400000000000000000000041321471627602100170130ustar00rootroot00000000000000description interop9: bgp locpref addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then local-preference 1234 set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then local-preference 4321 set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp04.tst000066400000000000000000000041061471627602100170150ustar00rootroot00000000000000description interop9: bgp origin addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match origin 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then origin incomplete set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then origin igp set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp05.tst000066400000000000000000000041041471627602100170140ustar00rootroot00000000000000description interop9: bgp metric addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match metric 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then metric 1234 set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then metric 4321 set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp06.tst000066400000000000000000000043671471627602100170300ustar00rootroot00000000000000description interop9: bgp community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 1 set policy-options community c1 members 1234:4321 set policy-options community c2 members 1234:1234 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then community set c1 set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then community set c2 set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp07.tst000066400000000000000000000041661471627602100170260ustar00rootroot00000000000000description interop9: bgp aspath addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match aspath .*1234.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 route-map-in rm1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 2 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then as-path-prepend 1234 set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then as-path-prepend 4321 set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type external set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp08.tst000066400000000000000000000074341471627602100170300ustar00rootroot00000000000000description interop9: bgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 2 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peer4 type external set protocols bgp group peer4 family inet labeled-unicast set protocols bgp group peer4 neighbor 1.1.1.1 peer-as 1 set protocols bgp group peer4 neighbor 1.1.2.1 peer-as 3 set protocols bgp group peer6 type external set protocols bgp group peer6 family inet6 labeled-unicast set protocols bgp group peer6 neighbor 1234:1::1 peer-as 1 set protocols bgp group peer6 neighbor 1234:2::1 peer-as 3 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r1 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 !r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-bgp09.tst000066400000000000000000000032771471627602100170320ustar00rootroot00000000000000description interop9: bgp addpath addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 additional-path-tx uni neigh 1.1.1.2 additional-path-rx uni red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 additional-path-tx uni neigh 1234::2 additional-path-rx uni red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peer4 type internal set protocols bgp group peer4 peer-as 1 set protocols bgp group peer4 family inet unicast add-path receive send path-count 4 set protocols bgp group peer4 neighbor 1.1.1.1 set protocols bgp group peer6 type internal set protocols bgp group peer6 peer-as 1 set protocols bgp group peer6 family inet6 unicast add-path receive send path-count 4 set protocols bgp group peer6 neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp10.tst000066400000000000000000000032761471627602100170210ustar00rootroot00000000000000description interop9: bgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp11.tst000066400000000000000000000057061471627602100170220ustar00rootroot00000000000000description interop9: bgp vpnv4 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.2 family inet address 9.9.2.2/32 set interfaces lo0.2 family inet6 address 9992::2/128 set interfaces lo0.3 family inet address 9.9.3.2/32 set interfaces lo0.3 family inet6 address 9993::2/128 set protocols ldp interface ge-0/0/0.0 set protocols mpls interface ge-0/0/0.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234::1 set routing-options autonomous-system 1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 2.2.2.1 set protocols bgp group peers local-address 2.2.2.2 set protocols bgp group peers family inet-vpn unicast set routing-instances v2 instance-type vrf set routing-instances v2 interface lo0.2 set routing-instances v2 route-distinguisher 1:2 set routing-instances v2 vrf-target target:1:2 set routing-instances v2 vrf-table-label set routing-instances v3 instance-type vrf set routing-instances v3 interface lo0.3 set routing-instances v3 route-distinguisher 1:3 set routing-instances v3 vrf-target target:1:3 set routing-instances v3 vrf-table-label commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 !r1 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 !r1 tping 100 60 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop9-bgp12.tst000066400000000000000000000026451471627602100170220ustar00rootroot00000000000000description interop9: bgp authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 password tester red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers authentication-key tester set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp13.tst000066400000000000000000000057631471627602100170270ustar00rootroot00000000000000description interop9: bgp vpnv6 addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.2 family inet address 9.9.2.2/32 set interfaces lo0.2 family inet6 address 9992::2/128 set interfaces lo0.3 family inet address 9.9.3.2/32 set interfaces lo0.3 family inet6 address 9993::2/128 set protocols ldp interface ge-0/0/0.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls ipv6-tunneling set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234::1 set routing-options autonomous-system 1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 2.2.2.1 set protocols bgp group peers local-address 2.2.2.2 set protocols bgp group peers family inet6-vpn unicast set routing-instances v2 instance-type vrf set routing-instances v2 interface lo0.2 set routing-instances v2 route-distinguisher 1:2 set routing-instances v2 vrf-target target:1:2 set routing-instances v2 vrf-table-label set routing-instances v3 instance-type vrf set routing-instances v3 interface lo0.3 set routing-instances v3 route-distinguisher 1:3 set routing-instances v3 vrf-target target:1:3 set routing-instances v3 vrf-table-label commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 !r1 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9992::2 vrf v2 !r1 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9993::2 vrf v3 freeRtr-24.11.16/cfg/intop9-bgp14.tst000066400000000000000000000053011471627602100170140ustar00rootroot00000000000000description interop9: vpls/ldp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface lo0.0 set protocols mpls interface ge-0/0/0.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234::1 set routing-options autonomous-system 1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 2.2.2.1 set protocols bgp group peers local-address 2.2.2.2 set protocols bgp group peers family l2vpn auto-discovery-only set interfaces ge-0/0/1 encapsulation ethernet-vpls set interfaces ge-0/0/1.0 family vpls set routing-instances b1 instance-type vpls set routing-instances b1 vlan-id none set routing-instances b1 interface ge-0/0/1.0 set routing-instances b1 route-distinguisher 1:1 set routing-instances b1 vrf-target target:1:1 set routing-instances b1 l2vpn-id l2vpn-id:1:1 set routing-instances b1 protocols vpls no-tunnel-services commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop9-bgp15.tst000066400000000000000000000053701471627602100170230ustar00rootroot00000000000000description interop9: vpls/bgp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols mpls interface ge-0/0/0.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234::1 set routing-options autonomous-system 1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 2.2.2.1 set protocols bgp group peers local-address 2.2.2.2 set protocols bgp group peers family l2vpn signaling set interfaces ge-0/0/1 encapsulation ethernet-vpls set interfaces ge-0/0/1.0 family vpls set routing-instances b1 instance-type vpls set routing-instances b1 vlan-id none set routing-instances b1 interface ge-0/0/1.0 set routing-instances b1 route-distinguisher 1:1 set routing-instances b1 vrf-target target:1:1 set routing-instances b1 protocols vpls no-tunnel-services set routing-instances b1 protocols vpls site-range 10 set routing-instances b1 protocols vpls site s2 site-identifier 2 commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop9-bgp16.tst000066400000000000000000000044201471627602100170170ustar00rootroot00000000000000description interop9: bgp extended community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match extcomm 2:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 1 set policy-options community c1 members target:1234:4321 set policy-options community c2 members target:1234:1234 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then community set c1 set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then community set c2 set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp17.tst000066400000000000000000000044141471627602100170230ustar00rootroot00000000000000description interop9: bgp large community addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match lrgcomm 12:34:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-map-in rm1 neigh 1234::2 send-comm both red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 2.2.2.3/32 set interfaces lo0.0 family inet6 address 4321::3/128 set interfaces lo0.0 family inet address 2.2.2.4/32 set interfaces lo0.0 family inet6 address 4321::4/128 set routing-options autonomous-system 1 set policy-options community c1 members large:12:34:4321 set policy-options community c2 members large:12:34:1234 set policy-options policy-statement ps1 term 1 from interface [ 2.2.2.3 4321::3 ] set policy-options policy-statement ps1 term 1 then community set c1 set policy-options policy-statement ps1 term 1 then accept set policy-options policy-statement ps1 term 2 from protocol direct set policy-options policy-statement ps1 term 2 then community set c2 set policy-options policy-statement ps1 term 2 then accept set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp18.tst000066400000000000000000000075701471627602100170320ustar00rootroot00000000000000description interop9: bgp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 2 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols bgp export ps1 set protocols bgp group peer4 type external set protocols bgp group peer4 family inet labeled-unicast set protocols bgp group peer4 neighbor 1.1.1.1 peer-as 1 set protocols bgp group peer4 neighbor 1.1.2.1 peer-as 3 set protocols bgp group peer6 type external set protocols bgp group peer6 family inet6 labeled-unicast set protocols bgp group peer6 neighbor 1234:1::1 peer-as 1 set protocols bgp group peer6 neighbor 1234:2::1 peer-as 3 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 !r1 tping 100 40 3.3.3.6 vrf v1 !r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-bgp19.tst000066400000000000000000000041671471627602100170320ustar00rootroot00000000000000description interop9: bgp ao authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 authen-type sha1 1 neigh 1.1.1.2 password tester red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 authen-type sha1 1 neigh 1234::2 password tester red conn exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 1 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set security authentication-key-chains key-chain kc key 1 secret tester set security authentication-key-chains key-chain kc key 1 start-time 2022-7-9.00:00 set security authentication-key-chains key-chain kc key 1 algorithm ao set security authentication-key-chains key-chain kc key 1 ao-attribute send-id 1 set security authentication-key-chains key-chain kc key 1 ao-attribute recv-id 1 set security authentication-key-chains key-chain kc key 1 ao-attribute tcp-ao-option enabled set security authentication-key-chains key-chain kc key 1 ao-attribute cryptographic-algorithm hmac-sha-1-96 set protocols bgp export ps1 set protocols bgp group peers type internal set protocols bgp group peers peer-as 1 set protocols bgp group peers authentication-algorithm ao set protocols bgp group peers authentication-key-chain kc set protocols bgp group peers neighbor 1.1.1.1 set protocols bgp group peers neighbor 1234::1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-bgp20.tst000066400000000000000000000101461471627602100170140ustar00rootroot00000000000000description interop9: bgp with ctp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit route-map rm1 set extcomm 779:0:100 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn route-map rm1 exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 2 set routing-options route-distinguisher-id 2.2.2.2 set routing-options transport-class name col color 100 set policy-options policy-statement ps1 then accept set policy-options policy-statement ps2 then next-hop self set policy-options policy-statement ps2 then accept set policy-options community col members color:0:100 set protocols bgp import ps1 set protocols bgp export ps2 set protocols bgp group peer4 type external set protocols bgp group peer4 family inet transport set protocols bgp group peer4 neighbor 1.1.1.1 peer-as 1 set protocols bgp group peer4 neighbor 1.1.2.1 peer-as 3 set protocols bgp group peer6 type external set protocols bgp group peer6 family inet6 transport set protocols bgp group peer6 neighbor 1234:1::1 peer-as 1 set protocols bgp group peer6 neighbor 1234:2::1 peer-as 3 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit route-map rm1 set extcomm 779:0:100 exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 send-comm both red conn route-map rm1 exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.3.6 vrf v1 r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-bgp21.tst000066400000000000000000000103141471627602100170120ustar00rootroot00000000000000description interop9: bgp with php ctp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit route-map rm1 set extcomm 779:0:100 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop neigh 1.1.1.2 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop neigh 1234:1::2 send-comm both red conn route-map rm1 exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set routing-options autonomous-system 2 set routing-options route-distinguisher-id 2.2.2.2 set routing-options transport-class name col color 100 set policy-options policy-statement ps1 then accept set policy-options policy-statement ps2 then next-hop self set policy-options policy-statement ps2 then accept set policy-options community col members color:0:100 set protocols bgp import ps1 set protocols bgp export ps2 set protocols bgp group peer4 type external set protocols bgp group peer4 family inet transport set protocols bgp group peer4 neighbor 1.1.1.1 peer-as 1 set protocols bgp group peer4 neighbor 1.1.2.1 peer-as 3 set protocols bgp group peer6 type external set protocols bgp group peer6 family inet6 transport set protocols bgp group peer6 neighbor 1234:1::1 peer-as 1 set protocols bgp group peer6 neighbor 1234:2::1 peer-as 3 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit route-map rm1 set extcomm 779:0:100 exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 label-pop neigh 1.1.2.2 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 label-pop neigh 1234:2::2 send-comm both red conn route-map rm1 exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 !r1 tping 100 40 3.3.3.6 vrf v1 !r3 tping 100 40 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-eth01.tst000066400000000000000000000007011471627602100170170ustar00rootroot00000000000000description interop9: ethernet encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop9-eth02.tst000066400000000000000000000010231471627602100170160ustar00rootroot00000000000000description interop9: dot1q encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1.123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0 vlan-tagging set interfaces ge-0/0/0.123 vlan-id 123 set interfaces ge-0/0/0.123 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.123 family inet6 address 1234::2/64 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop9-eth03.tst000066400000000000000000000012361471627602100170250ustar00rootroot00000000000000description interop9: fragmentation and reassembly addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 mtu 1500 enforce-mtu both vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 reassembly 16 ipv4 fragmentation 1400 ipv6 reassembly 16 ipv6 fragmentation 1400 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 commit ! r1 tping 100 15 1.1.1.2 vrf v1 siz 222 r1 tping 100 15 1234::2 vrf v1 siz 222 r1 tping 100 15 1.1.1.2 vrf v1 siz 2222 r1 tping 100 15 1234::2 vrf v1 siz 2222 freeRtr-24.11.16/cfg/intop9-eth04.tst000066400000000000000000000007301471627602100170240ustar00rootroot00000000000000description interop9: verify source addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 verify rx ipv6 verify rx exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234::2/64 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop9-eth05.tst000066400000000000000000000011541471627602100170260ustar00rootroot00000000000000description interop9: qinq encapsulation addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int eth1.123 exit int eth1.123.1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0 flexible-vlan-tagging set interfaces ge-0/0/0.123 vlan-tags outer 123 set interfaces ge-0/0/0.123 vlan-tags inner 1234 set interfaces ge-0/0/0.123 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.123 family inet6 address 1234::2/64 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop9-isis01.tst000066400000000000000000000023341471627602100172120ustar00rootroot00000000000000description interop9: point2point isis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis02.tst000066400000000000000000000024301471627602100172100ustar00rootroot00000000000000description interop9: isis dis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 50 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 50 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis03.tst000066400000000000000000000024331471627602100172140ustar00rootroot00000000000000description interop9: isis nondis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad router isis4 1 pri 70 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 net broad router isis6 1 pri 70 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 set protocols isis interface ge-0/0/1.0 set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis04.tst000066400000000000000000000075511471627602100172230ustar00rootroot00000000000000description interop9: isis te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces ge-0/0/1.0 family mpls set interfaces ge-0/0/2.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/2.0 family iso set interfaces ge-0/0/2.0 family mpls set interfaces ge-0/0/3.0 family inet6 set interfaces ge-0/0/3.0 family iso set interfaces ge-0/0/3.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set interfaces lo0.0 family inet address 3.3.3.2/32 set interfaces lo0.0 family inet address 3.3.3.6/32 set protocols rsvp interface lo0.0 set protocols rsvp interface ge-0/0/0.0 set protocols rsvp interface ge-0/0/1.0 set protocols rsvp interface ge-0/0/2.0 set protocols rsvp interface ge-0/0/3.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface ge-0/0/3.0 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 set protocols isis traffic-engineering family inet shortcuts set protocols isis traffic-engineering family inet6 shortcuts commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 sou lo0 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 sou lo0 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop9-isis05.tst000066400000000000000000000031621471627602100172160ustar00rootroot00000000000000description interop9: isis prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send no red conn r1 send exit r1 send router isis6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router isis4 1 r1 send red conn r1 send exit r1 send router isis6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis06.tst000066400000000000000000000067451471627602100172310ustar00rootroot00000000000000description interop9: isis p2mp te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 9.9.9.9 tun domain 2.2.2.2 2.2.2.3 tun vrf v1 tun mod p2mpte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces ge-0/0/1.0 family mpls set interfaces ge-0/0/2.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/2.0 family iso set interfaces ge-0/0/2.0 family mpls set interfaces ge-0/0/3.0 family inet6 set interfaces ge-0/0/3.0 family iso set interfaces ge-0/0/3.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols rsvp interface lo0.0 set protocols rsvp interface ge-0/0/0.0 set protocols rsvp interface ge-0/0/1.0 set protocols rsvp interface ge-0/0/2.0 set protocols rsvp interface ge-0/0/3.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface ge-0/0/3.0 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 set protocols isis traffic-engineering family inet shortcuts set protocols isis traffic-engineering family inet6 shortcuts commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 both traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 9.9.9.99 tun domain 2.2.2.2 2.2.2.1 tun vrf v1 tun mod p2mpte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop9-isis07.tst000066400000000000000000000103261471627602100172200ustar00rootroot00000000000000description interop9: isis sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 segrout 10 is-type level2 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo2 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces ge-0/0/1.0 family mpls set interfaces ge-0/0/2.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/2.0 family iso set interfaces ge-0/0/2.0 family mpls set interfaces ge-0/0/3.0 family inet6 set interfaces ge-0/0/3.0 family iso set interfaces ge-0/0/3.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface ge-0/0/3.0 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 set protocols isis source-packet-routing node-segment ipv4-index 3 set protocols isis source-packet-routing node-segment ipv6-index 4 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 segrout 10 is-type level2 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 5 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 6 router isis6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo2 pweompls 4321::1 1234 exit ! r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3.3.3.6 vrf v1 r3 tping 100 60 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-isis08.tst000066400000000000000000000030521471627602100172170ustar00rootroot00000000000000description interop9: isis lsp text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis level 1 authentication-key tester set protocols isis level 1 authentication-type simple set protocols isis level 2 authentication-key tester set protocols isis level 2 authentication-type simple set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis09.tst000066400000000000000000000105101471627602100172150ustar00rootroot00000000000000description interop9: isis php sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny 58 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 segrout 10 is-type level2 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node router isis6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 pseudo v1 lo2 pweompls 4321::3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces ge-0/0/1.0 family mpls set interfaces ge-0/0/2.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/2.0 family iso set interfaces ge-0/0/2.0 family mpls set interfaces ge-0/0/3.0 family inet6 set interfaces ge-0/0/3.0 family iso set interfaces ge-0/0/3.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface ge-0/0/3.0 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 set protocols isis source-packet-routing node-segment ipv4-index 3 set protocols isis source-packet-routing node-segment ipv6-index 4 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny 58 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 segrout 10 is-type level2 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 segrout 10 is-type level2 both segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 5 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 6 router isis6 1 segrout node router isis6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 pseudo v1 lo2 pweompls 4321::1 1234 exit ! r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3.3.3.6 vrf v1 r3 tping 100 60 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-isis10.tst000066400000000000000000000020111471627602100172020ustar00rootroot00000000000000description interop9: integrated isis addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces ge-0/0/0.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis11.tst000066400000000000000000000107541471627602100172200ustar00rootroot00000000000000description interop9: isis bier exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 2.2.2.1 bier 256 10 is-type level2 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 bier 256 10 is-type level2 both bier red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 bier index 1 exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 2 exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ int eth3 eth 0000.0000.2224 $per3$ int eth4 eth 0000.0000.2225 $per4$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces ge-0/0/1.0 family mpls set interfaces ge-0/0/2.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/2.0 family iso set interfaces ge-0/0/2.0 family mpls set interfaces ge-0/0/3.0 family inet6 set interfaces ge-0/0/3.0 family iso set interfaces ge-0/0/3.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols mpls interface ge-0/0/2.0 set protocols mpls interface ge-0/0/3.0 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface ge-0/0/2.0 point-to-point set protocols isis interface ge-0/0/3.0 point-to-point set protocols isis interface lo0.0 set protocols isis traffic-engineering shortcuts set protocols isis bier-sub-domain 0 set protocols bier sub-domain 0 bfr-id 3 set protocols bier sub-domain 0 bfr-prefix 2.2.2.2 set protocols bier sub-domain 0 encapsulation mpls set protocols bier sub-domain 0 encapsulation bitstringlen 256 set protocols bier sub-domain 0 encapsulation number-sets 4 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per3$ int eth2 eth 0000.0000.1132 $per4$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 traffeng 2.2.2.3 bier 256 10 is-type level2 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 traffeng 6.6.6.3 bier 256 10 is-type level2 both bier red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena mpls enable ipv4 access-group-in test4 ! ipv4 access-group-out test4 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena mpls enable ipv6 access-group-in test6 ! ipv6 access-group-out test6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 bier index 5 exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 6 exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 exit ! r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3.3.3.6 vrf v1 r3 tping 100 60 3.3.3.5 vrf v1 freeRtr-24.11.16/cfg/intop9-isis12.tst000066400000000000000000000032171471627602100172150ustar00rootroot00000000000000description interop9: isis lsp md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis level 1 authentication-key tester set protocols isis level 1 authentication-type md5 set protocols isis level 2 authentication-key tester set protocols isis level 2 authentication-type md5 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis13.tst000066400000000000000000000036501471627602100172170ustar00rootroot00000000000000description interop9: isis text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 level 1 hello-authentication-key tester set protocols isis interface ge-0/0/0.0 level 2 hello-authentication-key tester set protocols isis interface ge-0/0/1.0 level 1 hello-authentication-key tester set protocols isis interface ge-0/0/1.0 level 2 hello-authentication-key tester set protocols isis interface ge-0/0/0.0 level 1 hello-authentication-type simple set protocols isis interface ge-0/0/0.0 level 2 hello-authentication-type simple set protocols isis interface ge-0/0/1.0 level 1 hello-authentication-type simple set protocols isis interface ge-0/0/1.0 level 2 hello-authentication-type simple set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-isis14.tst000066400000000000000000000037331471627602100172220ustar00rootroot00000000000000description interop9: isis md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ int eth2 eth 0000.0000.1112 $per2$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth2 vrf for v1 ipv6 addr fe80::1 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family iso set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family iso set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family iso address 48.0000.0000.1234.00 set protocols isis interface ge-0/0/0.0 level 1 hello-authentication-key tester set protocols isis interface ge-0/0/0.0 level 2 hello-authentication-key tester set protocols isis interface ge-0/0/1.0 level 1 hello-authentication-key tester set protocols isis interface ge-0/0/1.0 level 2 hello-authentication-key tester set protocols isis interface ge-0/0/0.0 level 1 hello-authentication-type md5 set protocols isis interface ge-0/0/0.0 level 2 hello-authentication-type md5 set protocols isis interface ge-0/0/1.0 level 1 hello-authentication-type md5 set protocols isis interface ge-0/0/1.0 level 2 hello-authentication-type md5 set protocols isis interface ge-0/0/0.0 point-to-point set protocols isis interface ge-0/0/1.0 point-to-point set protocols isis interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ldp01.tst000066400000000000000000000065451471627602100170320ustar00rootroot00000000000000description interop9: ldp lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet.0 static route 2.2.2.3/32 next-hop 1.1.2.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234:1::1 set routing-options rib inet6.0 static route 4321::3/128 next-hop 1234:2::1 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 0 10 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 0 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop9-ldp02.tst000066400000000000000000000037101471627602100170220ustar00rootroot00000000000000description interop9: ethernet over mpls addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface lo0.0 set protocols mpls interface ge-0/0/0.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234:1::1 set interfaces ge-0/0/1 encapsulation ethernet-ccc set interfaces ge-0/0/1.0 family ccc set protocols l2circuit neighbor 2.2.2.1 interface ge-0/0/1.0 virtual-circuit-id 1234 commit ! addrouter r3 int eth1 eth 0000.0000.4444 $per2$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 freeRtr-24.11.16/cfg/intop9-ldp03.tst000066400000000000000000000057021471627602100170260ustar00rootroot00000000000000description interop9: ldp p2mp lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set protocols ldp p2mp set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet.0 static route 2.2.2.3/32 next-hop 1.1.2.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234:1::1 set routing-options rib inet6.0 static route 4321::3/128 next-hop 1234:2::1 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou tun1 r1 tping 100 10 3.3.3.3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ldp04.tst000066400000000000000000000057141471627602100170320ustar00rootroot00000000000000description interop9: ldp mp2mp lsp exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols ldp interface lo0.0 set protocols ldp p2mp set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet.0 static route 2.2.2.3/32 next-hop 1.1.2.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234:1::1 set routing-options rib inet6.0 static route 4321::3/128 next-hop 1234:2::1 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 10 3.3.3.3 vrf v1 sou tun1 r3 tping 100 10 3.3.3.1 vrf v1 sou tun1 freeRtr-24.11.16/cfg/intop9-ldp05.tst000066400000000000000000000066451471627602100170370ustar00rootroot00000000000000description interop9: ldp php lsp addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: mpls enable mpls ldp4 mpls label4pop mpls ldp6 mpls label6pop ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 address 1234:1::2/64 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 address 1234:2::2/64 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface ge-0/0/0.0 set protocols ldp interface ge-0/0/1.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet.0 static route 2.2.2.3/32 next-hop 1.1.2.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234:1::1 set routing-options rib inet6.0 static route 4321::3/128 next-hop 1234:2::1 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:: mpls enable mpls ldp4 mpls label4pop mpls ldp6 mpls label6pop ipv4 access-group-in test4 ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 0 10 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r3 tping 0 10 2.2.2.1 vrf v1 sou lo0 r3 tping 0 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop9-ospf01.tst000066400000000000000000000021011471627602100172020ustar00rootroot00000000000000description interop9: point2point ospf addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf02.tst000066400000000000000000000021661471627602100172160ustar00rootroot00000000000000description interop9: ospf dr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 10 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 10 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 0 interface ge-0/0/0.0 set protocols ospf area 0 interface lo0.0 set protocols ospf3 area 0 interface ge-0/0/0.0 set protocols ospf3 area 0 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf03.tst000066400000000000000000000021671471627602100172200ustar00rootroot00000000000000description interop9: ospf nondr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 0 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 0 interface ge-0/0/0.0 set protocols ospf area 0 interface lo0.0 set protocols ospf3 area 0 interface ge-0/0/0.0 set protocols ospf3 area 0 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf04.tst000066400000000000000000000021261471627602100172140ustar00rootroot00000000000000description interop9: ospf transit area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 1 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 1 interface lo0.0 set protocols ospf3 area 1 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 1 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf05.tst000066400000000000000000000022541471627602100172170ustar00rootroot00000000000000description interop9: ospf stub area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 1 stub exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 1 stub exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 1 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 1 interface lo0.0 set protocols ospf area 1 stub set protocols ospf3 area 1 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 1 interface lo0.0 set protocols ospf3 area 1 stub commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf06.tst000066400000000000000000000022541471627602100172200ustar00rootroot00000000000000description interop9: ospf nssa area addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 1 nssa exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 1 nssa exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 1 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 1 interface lo0.0 set protocols ospf area 1 nssa set protocols ospf3 area 1 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 1 interface lo0.0 set protocols ospf3 area 1 nssa commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf07.tst000066400000000000000000000064201471627602100172200ustar00rootroot00000000000000description interop9: ospf te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set interfaces lo0.0 family inet address 3.3.3.2/32 set interfaces lo0.0 family inet address 3.3.3.6/32 set protocols rsvp interface lo0.0 set protocols rsvp interface ge-0/0/0.0 set protocols rsvp interface ge-0/0/1.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf traffic-engineering shortcuts set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 set protocols ospf3 traffic-engineering shortcuts commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::3 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun2 bandwidth 11 tun sou eth1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 sou lo0 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 3.3.3.6 vrf v1 sou lo0 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop9-ospf08.tst000066400000000000000000000027271471627602100172270ustar00rootroot00000000000000description interop9: ospf prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send no red conn r1 send exit r1 send router ospf6 1 r1 send no red conn r1 send end r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 send conf t r1 send router ospf4 1 r1 send red conn r1 send exit r1 send router ospf6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf09.tst000066400000000000000000000056141471627602100172260ustar00rootroot00000000000000description interop9: ospf p2mp te addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 9.9.9.9 tun domain 2.2.2.2 2.2.2.3 tun vrf v1 tun mod p2mpte vrf for v1 ipv4 addr 3.3.3.9 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols rsvp interface lo0.0 set protocols rsvp interface ge-0/0/0.0 set protocols rsvp interface ge-0/0/1.0 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf traffic-engineering shortcuts set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 set protocols ospf3 traffic-engineering shortcuts commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 area 0 ena area 0 traff red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::3 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 bandwidth 11 tun sou eth1 tun dest 9.9.9.99 tun domain 2.2.2.2 2.2.2.1 tun vrf v1 tun mod p2mpte vrf for v1 ipv4 addr 3.3.3.10 255.255.255.252 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.10 vrf v1 r3 tping 100 60 3.3.3.9 vrf v1 freeRtr-24.11.16/cfg/intop9-ospf10.tst000066400000000000000000000065321471627602100172160ustar00rootroot00000000000000description interop9: ospf sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ! ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf source-packet-routing node-segment ipv4-index 3 set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ! ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 5 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 6 router ospf6 1 segrout node exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop9-ospf11.tst000066400000000000000000000067161471627602100172230ustar00rootroot00000000000000description interop9: ospf php sr addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ! ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node router ospf6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf source-packet-routing node-segment ipv4-index 3 set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ! ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 segrout index 5 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 6 router ospf6 1 segrout node router ospf6 1 segrout pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop9-ospf12.tst000066400000000000000000000076771471627602100172330ustar00rootroot00000000000000description interop9: ospf bier exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 2.2.2.1 bier 256 10 area 0 ena area 0 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 bier 256 10 area 0 ena area 0 bier red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ! ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 bier index 1 router ospf6 1 ena router ospf6 1 bier index 2 exit int tun1 tun sou lo0 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo0 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces ge-0/0/0.0 family mpls set interfaces ge-0/0/1.0 family inet address 1.1.2.2/24 set interfaces ge-0/0/1.0 family inet6 set interfaces ge-0/0/1.0 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols mpls interface ge-0/0/0.0 set protocols mpls interface ge-0/0/1.0 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf area 0 interface lo0.0 set protocols ospf bier-sub-domain 0 set protocols ospf traffic-engineering shortcuts set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface ge-0/0/1.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 set protocols ospf3 area 0 bier-subdomain 0 set protocols ospf3 traffic-engineering shortcuts set protocols bier sub-domain 0 bfr-id 3 set protocols bier sub-domain 0 bfr-prefix 2.2.2.2 set protocols bier sub-domain 0 encapsulation mpls set protocols bier sub-domain 0 bitstringlen 256 set protocols bier sub-domain 0 number-sets 4 commit ! addrouter r3 int eth1 eth 0000.0000.1131 $per2$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 deny 1 any all any all sequence 20 permit all any all any all exit access-list test6 sequence 10 deny all 4321:: ffff:: all 4321:: ffff:: all sequence 20 permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 traffeng 2.2.2.3 bier 256 10 area 0 ena area 0 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.3 traffeng 6.6.6.3 bier 256 10 area 0 ena area 0 bier red conn exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf6 1 ena mpls enable ipv4 access-group-in test4 ! ipv6 access-group-in test6 ! ipv4 access-group-out test4 ! ipv6 access-group-out test6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls enable router ospf4 1 ena router ospf4 1 bier index 5 router ospf6 1 ena router ospf6 1 bier index 6 exit int tun1 tun sou lo0 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo0 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 exit ! r1 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop9-ospf13.tst000066400000000000000000000022761471627602100172220ustar00rootroot00000000000000description interop9: ospf text authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/0.0 authentication simple-password tester set protocols ospf area 0 interface lo0.0 set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-ospf14.tst000066400000000000000000000023671471627602100172240ustar00rootroot00000000000000description interop9: ospf md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf4 1 authen-id 123 router ospf4 1 authen-type md5 router ospf6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ospf area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf area 0 interface ge-0/0/0.0 authentication md5 123 key tester set protocols ospf area 0 interface lo0.0 set protocols ospf3 area 0 interface ge-0/0/0.0 interface-type p2p set protocols ospf3 area 0 interface lo0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-pppoe01.tst000066400000000000000000000013031471627602100173610ustar00rootroot00000000000000description interop9: pppoe client addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:: exit int eth1 p2poe client di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 encapsulation ppp-over-ether set interfaces pp0.0 pppoe-options underlying-interface ge-0/0/0.0 set interfaces pp0.0 pppoe-options server set interfaces pp0.0 family inet address 1.1.1.2/24 set interfaces pp0.0 family inet6 address 1234::2/64 commit ! r1 tping 100 30 1.1.1.2 vrf v1 !r1 tping 100 30 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop9-pppoe02.tst000066400000000000000000000014511471627602100173660ustar00rootroot00000000000000description interop9: pppoe server addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit int di1 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:: exit int eth1 p2poe server di1 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 encapsulation ppp-over-ether set interfaces pp0.0 pppoe-options underlying-interface ge-0/0/0.0 set interfaces pp0.0 pppoe-options idle-timeout 0 set interfaces pp0.0 pppoe-options auto-reconnect 1 set interfaces pp0.0 pppoe-options client set interfaces pp0.0 family inet address 1.1.1.2/24 set interfaces pp0.0 family inet6 address 1234::2/64 commit ! r1 tping 100 30 1.1.1.2 vrf v1 !r1 tping 100 30 1234::2 vrf v1 freeRtr-24.11.16/cfg/intop9-pppoe03.tst000066400000000000000000000070451471627602100173740ustar00rootroot00000000000000description interop9: mpls over pppoe addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int di1 enc ppp ppp ip4cp open ppp ip6cp open ppp mplscp open ppp ip4cp local 1.1.1.1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth1 p2poe server di1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ int eth2 eth 0000.0000.2223 $per2$ ! set interfaces ge-0/0/0.0 encapsulation ppp-over-ether set interfaces ge-0/0/1.0 encapsulation ppp-over-ether set interfaces pp0.0 pppoe-options underlying-interface ge-0/0/0.0 set interfaces pp0.0 pppoe-options idle-timeout 0 set interfaces pp0.0 pppoe-options auto-reconnect 1 set interfaces pp0.0 pppoe-options client set interfaces pp0.0 family inet address 1.1.1.2/24 set interfaces pp0.0 family inet6 address 1234::1:2/64 set interfaces pp0.0 family mpls set interfaces pp0.1 pppoe-options underlying-interface ge-0/0/1.0 set interfaces pp0.1 pppoe-options idle-timeout 0 set interfaces pp0.1 pppoe-options auto-reconnect 1 set interfaces pp0.1 pppoe-options client set interfaces pp0.1 family inet address 1.1.2.2/24 set interfaces pp0.1 family inet6 address 1234::2:2/64 set interfaces pp0.1 family mpls set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set protocols ldp interface pp0.0 set protocols ldp interface pp0.1 set protocols mpls interface pp0.0 set protocols mpls interface pp0.1 set routing-options rib inet.0 static route 2.2.2.1/32 next-hop 1.1.1.1 set routing-options rib inet.0 static route 2.2.2.3/32 next-hop 1.1.2.1 set routing-options rib inet6.0 static route 4321::1/128 next-hop 1234:1::1 set routing-options rib inet6.0 static route 4321::3/128 next-hop 1234:2::1 commit ! addrouter r3 int eth1 eth 0000.0000.3333 $per2$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int di1 enc ppp ppp ip4cp open ppp ip6cp open ppp mplscp open ppp ip4cp local 1.1.2.1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth1 p2poe server di1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 30 1.1.1.2 vrf v1 !r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.2.2 vrf v1 !r3 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 sou lo0 r1 tping 100 30 2.2.2.3 vrf v1 sou lo0 !r1 tping 100 30 4321::2 vrf v1 sou lo0 !r1 tping 100 30 4321::3 vrf v1 sou lo0 r3 tping 100 30 2.2.2.2 vrf v1 sou lo0 r3 tping 100 30 2.2.2.1 vrf v1 sou lo0 !r3 tping 100 30 4321::2 vrf v1 sou lo0 !r3 tping 100 30 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/intop9-rift01.tst000066400000000000000000000021301471627602100172010ustar00rootroot00000000000000description interop9: point2point rift exit addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rift4 1 ena router rift6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols rift node-id 12345678 set protocols rift level top-of-fabric set protocols rift export northbound ps1 set protocols rift interface ge-0/0/0.0 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9-rip01.tst000066400000000000000000000020771471627602100170410ustar00rootroot00000000000000description interop9: rip addrouter r1 int eth1 eth 0000.0000.1111 $per1$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr fe80::1 ffff:: router rip4 1 ena router rip6 1 ena exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addpersist r2 int eth1 eth 0000.0000.2222 $per1$ ! set interfaces ge-0/0/0.0 family inet address 1.1.1.2/24 set interfaces ge-0/0/0.0 family inet6 set interfaces lo0.0 family inet address 2.2.2.2/32 set interfaces lo0.0 family inet6 address 4321::2/128 set policy-options policy-statement ps1 from protocol direct set policy-options policy-statement ps1 then accept set protocols rip group g1 neighbor ge-0/0/0.0 set protocols rip group g1 export ps1 set protocols ripng group g1 neighbor ge-0/0/0.0 set protocols ripng group g1 export ps1 commit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 120 2.2.2.2 vrf v1 sou lo0 r1 tping 100 120 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/intop9.ini000066400000000000000000000015541471627602100160540ustar00rootroot00000000000000../img/vsrx.img pc-i440fx-7.1 4096 4 vmxnet3 1 FreeBSD/amd64 .vsrx. .ttyu0. mc36 juniper configure ###separator- load factory-default set system root-authentication encrypted-password "$6$y/4jUhkd$cq3c/a3rdNKYmzTTuwhBgeXFbikioGc3UdmmQmbxRqxktMCUdLVfxa73cIV1ihrTlte03KOm6G9kqX2h1XcLy." delete security policies delete security zones set system host-name vsrx set protocols lldp interface all set security forwarding-options family inet mode packet-based set security forwarding-options family inet6 mode packet-based set security forwarding-options family mpls mode packet-based set security forwarding-options family iso mode packet-based set system login user mc36 class super-user authentication encrypted-password "$6$y/4jUhkd$cq3c/a3rdNKYmzTTuwhBgeXFbikioGc3UdmmQmbxRqxktMCUdLVfxa73cIV1ihrTlte03KOm6G9kqX2h1XcLy." set system services ssh set system services telnet commit freeRtr-24.11.16/cfg/mpls-bier01.tst000066400000000000000000000105411471627602100167140ustar00rootroot00000000000000description bier in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r1 output show mpls forw r2 output show mpls forw r3 output show mpls forw r4 output show mpls forw output ../binTmp/mpls-bier.html here is the lib:
show:0
here is the lib:
show:1
here is the lib:
show:2
here is the lib:
show:3
! freeRtr-24.11.16/cfg/mpls-bier02.tst000066400000000000000000000077151471627602100167260ustar00rootroot00000000000000description bier in star addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier03.tst000066400000000000000000000151731471627602100167240ustar00rootroot00000000000000description bier in dense chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit access-list test4 permit all 2.2.2.1 255.255.255.255 all any all exit access-list test6 permit all 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit access-list test4 permit all 2.2.2.2 255.255.255.255 all any all exit access-list test6 permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit access-list test4 permit all 2.2.2.3 255.255.255.255 all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1113 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit access-list test4 permit all 2.2.2.4 255.255.255.255 all any all exit access-list test6 permit all 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou lo1 r1 tping 100 20 4321::1112 vrf v1 sou lo1 r1 tping 100 20 3.3.3.3 vrf v1 sou lo1 r1 tping 100 20 4321::1113 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r2 tping 100 20 3.3.3.1 vrf v1 sou lo1 r2 tping 100 20 4321::1111 vrf v1 sou lo1 r2 tping 100 20 3.3.3.3 vrf v1 sou lo1 r2 tping 100 20 4321::1113 vrf v1 sou lo1 r2 tping 100 20 3.3.3.4 vrf v1 sou lo1 r2 tping 100 20 4321::1114 vrf v1 sou lo1 r3 tping 100 20 3.3.3.1 vrf v1 sou lo1 r3 tping 100 20 4321::1111 vrf v1 sou lo1 r3 tping 100 20 3.3.3.2 vrf v1 sou lo1 r3 tping 100 20 4321::1112 vrf v1 sou lo1 r3 tping 100 20 3.3.3.4 vrf v1 sou lo1 r3 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r4 tping 100 20 3.3.3.2 vrf v1 sou lo1 r4 tping 100 20 4321::1112 vrf v1 sou lo1 r4 tping 100 20 3.3.3.3 vrf v1 sou lo1 r4 tping 100 20 4321::1113 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier04.tst000066400000000000000000000151721471627602100167240ustar00rootroot00000000000000description bier in dense star addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit access-list test4 permit all 2.2.2.1 255.255.255.255 all any all exit access-list test6 permit all 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit access-list test4 permit all 2.2.2.2 255.255.255.255 all any all exit access-list test6 permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit access-list test4 permit all 2.2.2.3 255.255.255.255 all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1113 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit access-list test4 permit all 2.2.2.4 255.255.255.255 all any all exit access-list test6 permit all 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou lo1 r1 tping 100 20 4321::1112 vrf v1 sou lo1 r1 tping 100 20 3.3.3.3 vrf v1 sou lo1 r1 tping 100 20 4321::1113 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r2 tping 100 20 3.3.3.1 vrf v1 sou lo1 r2 tping 100 20 4321::1111 vrf v1 sou lo1 r2 tping 100 20 3.3.3.3 vrf v1 sou lo1 r2 tping 100 20 4321::1113 vrf v1 sou lo1 r2 tping 100 20 3.3.3.4 vrf v1 sou lo1 r2 tping 100 20 4321::1114 vrf v1 sou lo1 r3 tping 100 20 3.3.3.1 vrf v1 sou lo1 r3 tping 100 20 4321::1111 vrf v1 sou lo1 r3 tping 100 20 3.3.3.2 vrf v1 sou lo1 r3 tping 100 20 4321::1112 vrf v1 sou lo1 r3 tping 100 20 3.3.3.4 vrf v1 sou lo1 r3 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r4 tping 100 20 3.3.3.2 vrf v1 sou lo1 r4 tping 100 20 4321::1112 vrf v1 sou lo1 r4 tping 100 20 3.3.3.3 vrf v1 sou lo1 r4 tping 100 20 4321::1113 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier05.tst000066400000000000000000000152331471627602100167230ustar00rootroot00000000000000description bier on multiple si addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 1000 100 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 1000 100 red conn exit access-list test4 permit all 2.2.2.1 255.255.255.255 all any all exit access-list test6 permit all 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 1000 400 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 1000 400 red conn exit access-list test4 permit all 2.2.2.2 255.255.255.255 all any all exit access-list test6 permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 1000 600 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 1000 600 red conn exit access-list test4 permit all 2.2.2.3 255.255.255.255 all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1113 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 1000 900 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 1000 900 red conn exit access-list test4 permit all 2.2.2.4 255.255.255.255 all any all exit access-list test6 permit all 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou lo1 r1 tping 100 20 4321::1112 vrf v1 sou lo1 r1 tping 100 20 3.3.3.3 vrf v1 sou lo1 r1 tping 100 20 4321::1113 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r2 tping 100 20 3.3.3.1 vrf v1 sou lo1 r2 tping 100 20 4321::1111 vrf v1 sou lo1 r2 tping 100 20 3.3.3.3 vrf v1 sou lo1 r2 tping 100 20 4321::1113 vrf v1 sou lo1 r2 tping 100 20 3.3.3.4 vrf v1 sou lo1 r2 tping 100 20 4321::1114 vrf v1 sou lo1 r3 tping 100 20 3.3.3.1 vrf v1 sou lo1 r3 tping 100 20 4321::1111 vrf v1 sou lo1 r3 tping 100 20 3.3.3.2 vrf v1 sou lo1 r3 tping 100 20 4321::1112 vrf v1 sou lo1 r3 tping 100 20 3.3.3.4 vrf v1 sou lo1 r3 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r4 tping 100 20 3.3.3.2 vrf v1 sou lo1 r4 tping 100 20 4321::1112 vrf v1 sou lo1 r4 tping 100 20 3.3.3.3 vrf v1 sou lo1 r4 tping 100 20 4321::1113 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier06.tst000066400000000000000000000152301471627602100167210ustar00rootroot00000000000000description bier on mixed si addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 1000 100 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 1000 100 red conn exit access-list test4 permit all 2.2.2.1 255.255.255.255 all any all exit access-list test6 permit all 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 1000 400 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 1000 400 red conn exit access-list test4 permit all 2.2.2.2 255.255.255.255 all any all exit access-list test6 permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 1000 600 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 1000 600 red conn exit access-list test4 permit all 2.2.2.3 255.255.255.255 all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1113 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 1000 150 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 1000 150 red conn exit access-list test4 permit all 2.2.2.4 255.255.255.255 all any all exit access-list test6 permit all 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou lo1 r1 tping 100 20 4321::1112 vrf v1 sou lo1 r1 tping 100 20 3.3.3.3 vrf v1 sou lo1 r1 tping 100 20 4321::1113 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r2 tping 100 20 3.3.3.1 vrf v1 sou lo1 r2 tping 100 20 4321::1111 vrf v1 sou lo1 r2 tping 100 20 3.3.3.3 vrf v1 sou lo1 r2 tping 100 20 4321::1113 vrf v1 sou lo1 r2 tping 100 20 3.3.3.4 vrf v1 sou lo1 r2 tping 100 20 4321::1114 vrf v1 sou lo1 r3 tping 100 20 3.3.3.1 vrf v1 sou lo1 r3 tping 100 20 4321::1111 vrf v1 sou lo1 r3 tping 100 20 3.3.3.2 vrf v1 sou lo1 r3 tping 100 20 4321::1112 vrf v1 sou lo1 r3 tping 100 20 3.3.3.4 vrf v1 sou lo1 r3 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r4 tping 100 20 3.3.3.2 vrf v1 sou lo1 r4 tping 100 20 4321::1112 vrf v1 sou lo1 r4 tping 100 20 3.3.3.3 vrf v1 sou lo1 r4 tping 100 20 4321::1113 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier07.tst000066400000000000000000000077121471627602100167300ustar00rootroot00000000000000description bier with 64b bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 64 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 64 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 64 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 64 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 64 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 64 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 64 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 64 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier08.tst000066400000000000000000000077231471627602100167330ustar00rootroot00000000000000description bier with 128b bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 128 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 128 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 128 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 128 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 128 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 128 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 128 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 128 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier09.tst000066400000000000000000000077231471627602100167340ustar00rootroot00000000000000description bier with 256b bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier10.tst000066400000000000000000000077231471627602100167240ustar00rootroot00000000000000description bier with 512b bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 512 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 512 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 512 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 512 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 512 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 512 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 512 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 512 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier11.tst000066400000000000000000000077311471627602100167240ustar00rootroot00000000000000description bier with 1k bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 1024 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 1024 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 1024 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 1024 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 1024 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 1024 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 1024 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 1024 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier12.tst000066400000000000000000000077311471627602100167250ustar00rootroot00000000000000description bier with 2k bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 2048 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 2048 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 2048 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 2048 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 2048 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 2048 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 2048 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 2048 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier13.tst000066400000000000000000000077311471627602100167260ustar00rootroot00000000000000description bier with 4k bsl addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 4096 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 4096 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 4096 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 4096 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 4096 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 4096 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 4096 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 4096 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier14.tst000066400000000000000000000147321471627602100167260ustar00rootroot00000000000000description bier over broadcast subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit access-list test4 permit all 2.2.2.1 255.255.255.255 all any all exit access-list test6 permit all 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit access-list test4 permit all 2.2.2.2 255.255.255.255 all any all exit access-list test6 permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 2 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit access-list test4 permit all 2.2.2.3 255.255.255.255 all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1113 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit access-list test4 permit all 2.2.2.4 255.255.255.255 all any all exit access-list test6 permit all 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 2.2.2.2 2.2.2.3 2.2.2.4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 4321::2 4321::3 4321::4 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 ipv6 access-group-out test6 no ipv6 unreachables exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou lo1 r1 tping 100 20 4321::1112 vrf v1 sou lo1 r1 tping 100 20 3.3.3.3 vrf v1 sou lo1 r1 tping 100 20 4321::1113 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r2 tping 100 20 3.3.3.1 vrf v1 sou lo1 r2 tping 100 20 4321::1111 vrf v1 sou lo1 r2 tping 100 20 3.3.3.3 vrf v1 sou lo1 r2 tping 100 20 4321::1113 vrf v1 sou lo1 r2 tping 100 20 3.3.3.4 vrf v1 sou lo1 r2 tping 100 20 4321::1114 vrf v1 sou lo1 r3 tping 100 20 3.3.3.1 vrf v1 sou lo1 r3 tping 100 20 4321::1111 vrf v1 sou lo1 r3 tping 100 20 3.3.3.2 vrf v1 sou lo1 r3 tping 100 20 4321::1112 vrf v1 sou lo1 r3 tping 100 20 3.3.3.4 vrf v1 sou lo1 r3 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r4 tping 100 20 3.3.3.2 vrf v1 sou lo1 r4 tping 100 20 4321::1112 vrf v1 sou lo1 r4 tping 100 20 3.3.3.3 vrf v1 sou lo1 r4 tping 100 20 4321::1113 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier15.tst000066400000000000000000000077311471627602100167300ustar00rootroot00000000000000description mixed protocol over bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-bier16.tst000066400000000000000000000112601471627602100167210ustar00rootroot00000000000000description mpls over bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4321::2221 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 mpls enable exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 mpls enable exit ipv4 route v1 4.4.4.2 255.255.255.255 3.3.3.2 mplsexp ipv6 route v1 4321::2222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::1112 mplsexp ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4321::2222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 mpls enable exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 4 tun mod bier vrf for v1 ipv6 addr 4321::1114 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 mpls enable exit ipv4 route v1 4.4.4.1 255.255.255.255 3.3.3.1 mplsexp ipv6 route v1 4321::2221 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::1111 mplsexp ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 3.3.3.4 vrf v1 sou lo1 r1 tping 100 20 4321::1114 vrf v1 sou lo1 r4 tping 100 20 3.3.3.1 vrf v1 sou lo1 r4 tping 100 20 4321::1111 vrf v1 sou lo1 r1 tping 100 20 4.4.4.1 vrf v1 sou lo2 r1 tping 100 20 4321::2221 vrf v1 sou lo2 r4 tping 100 20 4.4.4.2 vrf v1 sou lo2 r4 tping 100 20 4321::2222 vrf v1 sou lo2 freeRtr-24.11.16/cfg/mpls-bier17.tst000066400000000000000000000032541471627602100167260ustar00rootroot00000000000000description mpls over multicast ethertype addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ethert multi mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ethert multi mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-bier18.tst000066400000000000000000000032451471627602100167270ustar00rootroot00000000000000description mpls over bier ethertype addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ethert bier mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ethert bier mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-evc01.tst000066400000000000000000000031621471627602100165510ustar00rootroot00000000000000description bridged evcs over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit bridge 3 exit int eth1 service-inst 11 bri 1 service-inst 12 bri 2 service-inst 13 bri 3 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1111::1 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r2 tping 100 10 1112::1 vrf v1 r2 tping 100 10 1.1.3.1 vrf v1 r2 tping 100 10 1113::1 vrf v1 r2 output show inter eth1 full r2 output show bridge 1 r2 output show bridge 2 r2 output show bridge 3 output ../binTmp/mpls-evc.html here is the interface:
show:0
here is the bridge:
show:1
here is the bridge:
show:2
here is the bridge:
show:3
! freeRtr-24.11.16/cfg/mpls-evc02.tst000066400000000000000000000025351471627602100165550ustar00rootroot00000000000000description bridged evcs over hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit bridge 3 exit int ser1 enc hdlc exit int ser1.11 bridge-group 1 exit int ser1.12 bridge-group 2 exit int ser1.13 bridge-group 3 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit bridge 3 exit int ser1 enc hdlc service-inst 11 bri 1 service-inst 12 bri 2 service-inst 13 bri 3 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1111::1 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r2 tping 100 10 1112::1 vrf v1 r2 tping 100 10 1.1.3.1 vrf v1 r2 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc03.tst000066400000000000000000000031721471627602100165540ustar00rootroot00000000000000description bridged evcs over gre addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit bridge 3 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source serial1 tunnel destination 2.2.2.2 exit int tun1.11 bridge-group 1 exit int tun1.12 bridge-group 2 exit int tun1.13 bridge-group 3 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit bridge 3 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source serial1 tunnel destination 2.2.2.1 service-inst 11 bri 1 service-inst 12 bri 2 service-inst 13 bri 3 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1111::1 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r2 tping 100 10 1112::1 vrf v1 r2 tping 100 10 1.1.3.1 vrf v1 r2 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc04.tst000066400000000000000000000022471471627602100165570ustar00rootroot00000000000000description bridged evcs and subif addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 3 exit int eth1 service-inst 11 bri 1 service-inst 13 bri 3 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1111::1 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r2 tping 100 10 1112::1 vrf v1 r2 tping 100 10 1.1.3.1 vrf v1 r2 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc05.tst000066400000000000000000000022211471627602100165500ustar00rootroot00000000000000description bridged evcs and main addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 3 exit int eth1 service-inst 11 bri 1 service-inst 13 bri 3 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1111::1 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r2 tping 100 10 1112::1 vrf v1 r2 tping 100 10 1.1.3.1 vrf v1 r2 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc06.tst000066400000000000000000000035061471627602100165600ustar00rootroot00000000000000description xconnect evcs terminated on xconnects addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int eth1 service-inst 11 xconn v1 eth2 vxlan 2.2.2.2 123 service-inst 12 xconn v1 eth2 geneve 2.2.2.2 123 service-inst 13 xconn v1 eth2 etherip 2.2.2.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:: exit int eth2.11 xconn v1 eth1 vxlan 2.2.2.1 123 exit int eth2.12 xconn v1 eth1 geneve 2.2.2.1 123 exit int eth2.13 xconn v1 eth1 etherip 2.2.2.1 123 exit exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 r4 tping 100 10 1.1.2.1 vrf v1 r4 tping 100 10 1112::1 vrf v1 r4 tping 100 10 1.1.3.1 vrf v1 r4 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc07.tst000066400000000000000000000032241471627602100165560ustar00rootroot00000000000000description xconnect evcs terminated on pwhes addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int eth1 service-inst 11 xconn v1 eth2 vxlan 2.2.2.2 123 service-inst 12 xconn v1 eth2 geneve 2.2.2.2 123 service-inst 13 xconn v1 eth2 etherip 2.2.2.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:: exit int pweth11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: pseudo v1 eth1 vxlan 2.2.2.1 123 exit int pweth12 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: pseudo v1 eth1 geneve 2.2.2.1 123 exit int pweth13 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: pseudo v1 eth1 etherip 2.2.2.1 123 exit exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1111::1 vrf v1 r3 tping 100 10 1.1.2.1 vrf v1 r3 tping 100 10 1112::1 vrf v1 r3 tping 100 10 1.1.3.1 vrf v1 r3 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc08.tst000066400000000000000000000027601471627602100165630ustar00rootroot00000000000000description xconnect terminated on pwhe subifs addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int eth1 xconn v1 eth2 vxlan 2.2.2.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:: exit int pweth1 pseudo v1 eth1 vxlan 2.2.2.1 123 exit int pweth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int pweth1.12 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int pweth1.13 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1111::1 vrf v1 r3 tping 100 10 1.1.2.1 vrf v1 r3 tping 100 10 1112::1 vrf v1 r3 tping 100 10 1.1.3.1 vrf v1 r3 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc09.tst000066400000000000000000000031311471627602100165550ustar00rootroot00000000000000description xconnect terminated on pwhe bridged evcs addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int eth1 xconn v1 eth2 vxlan 2.2.2.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit bridge 3 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:: exit int pweth1 service-inst 11 bri 1 service-inst 12 bri 2 service-inst 13 bri 3 pseudo v1 eth1 vxlan 2.2.2.1 123 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi3 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1111::1 vrf v1 r3 tping 100 10 1.1.2.1 vrf v1 r3 tping 100 10 1112::1 vrf v1 r3 tping 100 10 1.1.3.1 vrf v1 r3 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc10.tst000066400000000000000000000040301471627602100165440ustar00rootroot00000000000000description xconnect terminated on pwhe xconnect evcs addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int eth1 xconn v1 eth2 vxlan 2.2.2.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int pweth1 service-inst 11 xconn v1 eth2 vxlan 3.3.3.2 123 service-inst 12 xconn v1 eth2 geneve 3.3.3.2 123 service-inst 13 xconn v1 eth2 etherip 3.3.3.2 123 pseudo v1 eth1 vxlan 2.2.2.1 123 exit exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int pweth11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: pseudo v1 eth1 vxlan 3.3.3.1 123 exit int pweth12 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: pseudo v1 eth1 geneve 3.3.3.1 123 exit int pweth13 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: pseudo v1 eth1 etherip 3.3.3.1 123 exit exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 r4 tping 100 10 1.1.2.1 vrf v1 r4 tping 100 10 1112::1 vrf v1 r4 tping 100 10 1.1.3.1 vrf v1 r4 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-evc11.tst000066400000000000000000000035461471627602100165600ustar00rootroot00000000000000description xconnect evcs terminated on vpdns addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1112::1 ffff:: exit int eth1.13 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1113::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:: exit int eth1 service-inst 11 xconn v1 eth2 vxlan 2.2.2.2 123 service-inst 12 xconn v1 eth2 geneve 2.2.2.2 123 service-inst 13 xconn v1 eth2 etherip 2.2.2.2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:: exit bridge 11 exit bridge 12 exit bridge 13 exit vpdn bvi11 bridge 11 proxy p1 target 2.2.2.1 vcid 123 protocol vxlan exit vpdn bvi12 bridge 12 proxy p1 target 2.2.2.1 vcid 123 protocol geneve exit vpdn bvi13 bridge 13 proxy p1 target 2.2.2.1 vcid 123 protocol etherip exit int bvi11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit int bvi12 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1112::2 ffff:: exit int bvi13 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1113::2 ffff:: exit exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1112::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1113::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1111::1 vrf v1 r3 tping 100 10 1.1.2.1 vrf v1 r3 tping 100 10 1112::1 vrf v1 r3 tping 100 10 1.1.3.1 vrf v1 r3 tping 100 10 1113::1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp01.tst000066400000000000000000000043071471627602100165550ustar00rootroot00000000000000description ldp over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 output show mpls forw r1 output show ipv4 ldp v1 sum r1 output show ipv6 ldp v1 sum r1 output show ipv4 ldp v1 dat r1 output show ipv6 ldp v1 dat output ../binTmp/mpls-ldp.html here is the lib:
show:0
here is the ipv4 neighbor:
show:1
here is the ipv6 neighbor:
show:2
here is the ipv4 database:
show:3
here is the ipv6 database:
show:4
! freeRtr-24.11.16/cfg/mpls-ldp02.tst000066400000000000000000000032771471627602100165630ustar00rootroot00000000000000description ldp over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp03.tst000066400000000000000000000034271471627602100165610ustar00rootroot00000000000000description ldp over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp04.tst000066400000000000000000000032521471627602100165560ustar00rootroot00000000000000description ldp over hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp05.tst000066400000000000000000000033531471627602100165610ustar00rootroot00000000000000description ldp over ppp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp06.tst000066400000000000000000000034201471627602100165550ustar00rootroot00000000000000description ldp over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp07.tst000066400000000000000000000033501471627602100165600ustar00rootroot00000000000000description ldp over atmdxi addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp08.tst000066400000000000000000000037031471627602100165630ustar00rootroot00000000000000description ldp over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv6 addr 1111::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1111::2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv6 addr 1111::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1111::1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp09.tst000066400000000000000000000064351471627602100165710ustar00rootroot00000000000000description ldp over broadcast subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 mac-learn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ! addrouter r3 int eth1 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 10 1.1.1.3 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r2 tping 0 10 1.1.1.3 vrf v1 r3 tping 0 10 1.1.1.1 vrf v1 r3 tping 0 10 1.1.1.2 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp10.tst000066400000000000000000000064411471627602100165560ustar00rootroot00000000000000description ldp over hub and spoke subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 mac-learn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! addrouter r3 int eth1 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r1 tping 0 10 1.1.1.3 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r2 tping 0 10 1.1.1.3 vrf v1 r3 tping 0 10 1.1.1.1 vrf v1 r3 tping 0 10 1.1.1.2 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp11.tst000066400000000000000000000042341471627602100165550ustar00rootroot00000000000000description ldp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 lo1 mpls ldp6 lo1 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 3.3.3.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv6 route v1 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 lo1 mpls ldp6 lo1 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 3.3.3.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv6 route v1 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp12.tst000066400000000000000000000072611471627602100165610ustar00rootroot00000000000000description p2p ldp tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int tun1 tun sou lo0 tun dest 2.2.2.3 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::3 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 3333::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 3333::3 ffff:ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 3.3.3.3 vrf v1 sou tun1 r1 tping 100 10 3333::3 vrf v1 sou tun2 r3 tping 100 10 3.3.3.1 vrf v1 sou tun1 r3 tping 100 10 3333::1 vrf v1 sou tun2 r1 output show mpls forw r1 output show ipv4 ldp v1 sum r1 output show ipv6 ldp v1 sum r1 output show ipv4 ldp v1 dat r1 output show ipv6 ldp v1 dat r1 output show inter tun1 full r1 output show inter tun2 full output ../binTmp/mpls-ldp-p2p.html here is the lib:
show:0
here is the ipv4 neighbor:
show:1
here is the ipv6 neighbor:
show:2
here is the ipv4 database:
show:3
here is the ipv6 database:
show:4
here is the ipv4 interface:
show:5
here is the ipv6 interface:
show:6
! freeRtr-24.11.16/cfg/mpls-ldp13.tst000066400000000000000000000113471471627602100165620ustar00rootroot00000000000000description p2mp ldp tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.3.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 route v1 :: :: 1234:2::1 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::3 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 route v1 :: :: 1234:3::1 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::4 ffff:ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 4321::4 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 4321::4 vrf v1 sou lo0 r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 r4 tping 100 10 4321::1 vrf v1 sou lo0 r4 tping 100 10 4321::2 vrf v1 sou lo0 r4 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou tun1 r3 tping 100 10 4321::1 vrf v1 sou tun2 r4 tping 100 10 2.2.2.1 vrf v1 sou tun1 r4 tping 100 10 4321::1 vrf v1 sou tun2 r3 output show mpls forw r3 output show ipv4 ldp v1 sum r3 output show ipv6 ldp v1 sum r3 output show ipv4 ldp v1 mpdat r3 output show ipv6 ldp v1 mpdat r3 output show inter tun1 full r3 output show inter tun2 full output ../binTmp/mpls-ldp-p2mp.html here is the lib:
show:0
here is the ipv4 neighbor:
show:1
here is the ipv6 neighbor:
show:2
here is the ipv4 database:
show:3
here is the ipv6 database:
show:4
here is the ipv4 interface:
show:5
here is the ipv6 interface:
show:6
! freeRtr-24.11.16/cfg/mpls-ldp14.tst000066400000000000000000000106131471627602100165560ustar00rootroot00000000000000description p2mp ldp tunnel head+mid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.3.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::2 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 route v1 :: :: 1234:2::1 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::3 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 route v1 :: :: 1234:3::1 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 1234 tun mod p2mpldp vrf for v1 ipv6 addr 3333::4 ffff:ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 4321::4 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 4321::4 vrf v1 sou lo0 r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 r4 tping 100 10 4321::1 vrf v1 sou lo0 r4 tping 100 10 4321::2 vrf v1 sou lo0 r4 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou tun1 r2 tping 100 10 4321::1 vrf v1 sou tun2 r3 tping 100 10 2.2.2.1 vrf v1 sou tun1 r3 tping 100 10 4321::1 vrf v1 sou tun2 r4 tping 100 10 2.2.2.1 vrf v1 sou tun1 r4 tping 100 10 4321::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-ldp15.tst000066400000000000000000000120441471627602100165570ustar00rootroot00000000000000description mp2mp ldp tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.3.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 route v1 :: :: 1234:2::1 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::3 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 route v1 :: :: 1234:3::1 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::4 ffff:ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 4321::4 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 4321::4 vrf v1 sou lo0 r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 r4 tping 100 10 4321::1 vrf v1 sou lo0 r4 tping 100 10 4321::2 vrf v1 sou lo0 r4 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 3.3.3.3 vrf v1 sou lo0 r1 tping 100 10 3.3.3.4 vrf v1 sou lo0 r1 tping 100 10 3333::3 vrf v1 sou lo0 r1 tping 100 10 3333::4 vrf v1 sou lo0 r3 tping 100 10 3.3.3.1 vrf v1 sou lo0 r3 tping 100 10 3.3.3.4 vrf v1 sou lo0 r3 tping 100 10 3333::1 vrf v1 sou lo0 r3 tping 100 10 3333::4 vrf v1 sou lo0 r4 tping 100 10 3.3.3.1 vrf v1 sou lo0 r4 tping 100 10 3.3.3.3 vrf v1 sou lo0 r4 tping 100 10 3333::1 vrf v1 sou lo0 r4 tping 100 10 3333::3 vrf v1 sou lo0 r3 output show mpls forw r3 output show ipv4 ldp v1 sum r3 output show ipv6 ldp v1 sum r3 output show ipv4 ldp v1 mpdat r3 output show ipv6 ldp v1 mpdat r3 output show inter tun1 full r3 output show inter tun2 full output ../binTmp/mpls-ldp-mp2mp.html here is the lib:
show:0
here is the ipv4 neighbor:
show:1
here is the ipv6 neighbor:
show:2
here is the ipv4 database:
show:3
here is the ipv6 database:
show:4
here is the ipv4 interface:
show:5
here is the ipv6 interface:
show:6
! freeRtr-24.11.16/cfg/mpls-ldp16.tst000066400000000000000000000145251471627602100165660ustar00rootroot00000000000000description mp2mp ldp tunnel mid+head addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 access-list test4 permit all 2.2.2.1 255.255.255.255 all any all deny all any all any all exit access-list test6 permit all 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all any all any all exit int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::1 ffff:ffff:: ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.3.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 access-list test4 permit all 2.2.2.2 255.255.255.255 all any all deny all any all any all exit access-list test6 permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all any all any all exit int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::2 ffff:ffff:: ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 route v1 :: :: 1234:2::1 access-list test4 permit all 2.2.2.3 255.255.255.255 all any all deny all any all any all exit access-list test6 permit all 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all any all any all exit int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::3 ffff:ffff:: ipv6 access-group-out test6 no ipv6 unreachables exit ! addrouter r4 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 route v1 :: :: 1234:3::1 access-list test4 permit all 2.2.2.4 255.255.255.255 all any all deny all any all any all exit access-list test6 permit all 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all deny all any all any all exit int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv4 access-group-out test4 no ipv4 unreachables exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 1234 tun mod mp2mpldp vrf for v1 ipv6 addr 3333::4 ffff:ffff:: ipv6 access-group-out test6 no ipv6 unreachables exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 4321::4 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 4321::4 vrf v1 sou lo0 r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 r4 tping 100 10 4321::1 vrf v1 sou lo0 r4 tping 100 10 4321::2 vrf v1 sou lo0 r4 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 3.3.3.2 vrf v1 sou lo0 r1 tping 100 10 3.3.3.3 vrf v1 sou lo0 r1 tping 100 10 3.3.3.4 vrf v1 sou lo0 r1 tping 100 10 3333::2 vrf v1 sou lo0 r1 tping 100 10 3333::3 vrf v1 sou lo0 r1 tping 100 10 3333::4 vrf v1 sou lo0 r2 tping 100 10 3.3.3.1 vrf v1 sou lo0 r2 tping 100 10 3.3.3.3 vrf v1 sou lo0 r2 tping 100 10 3.3.3.4 vrf v1 sou lo0 r2 tping 100 10 3333::1 vrf v1 sou lo0 r2 tping 100 10 3333::3 vrf v1 sou lo0 r2 tping 100 10 3333::4 vrf v1 sou lo0 r3 tping 100 10 3.3.3.1 vrf v1 sou lo0 r3 tping 100 10 3.3.3.2 vrf v1 sou lo0 r3 tping 100 10 3.3.3.4 vrf v1 sou lo0 r3 tping 100 10 3333::1 vrf v1 sou lo0 r3 tping 100 10 3333::2 vrf v1 sou lo0 r3 tping 100 10 3333::4 vrf v1 sou lo0 r4 tping 100 10 3.3.3.1 vrf v1 sou lo0 r4 tping 100 10 3.3.3.2 vrf v1 sou lo0 r4 tping 100 10 3.3.3.3 vrf v1 sou lo0 r4 tping 100 10 3333::1 vrf v1 sou lo0 r4 tping 100 10 3333::2 vrf v1 sou lo0 r4 tping 100 10 3333::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-ldp17.tst000066400000000000000000000033431471627602100165630ustar00rootroot00000000000000description targeted ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldptarget 1.1.1.2 mpls ldptarget 1234::2 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldptarget 1.1.1.1 mpls ldptarget 1234::1 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp18.tst000066400000000000000000000034431471627602100165650ustar00rootroot00000000000000description ldp password addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls ldppass 1.1.1.2 tester mpls ldppass 1234::2 tester exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls ldppass 1.1.1.1 tester mpls ldppass 1234::1 tester exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp19.tst000066400000000000000000000035401471627602100165640ustar00rootroot00000000000000description targeted ldp password addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldptarget 1.1.1.2 mpls ldptarget 1234::2 mpls ldppass 1.1.1.2 tester mpls ldppass 1234::2 tester exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldptarget 1.1.1.1 mpls ldptarget 1234::1 mpls ldppass 1.1.1.1 tester mpls ldppass 1234::1 tester exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp20.tst000066400000000000000000000050001471627602100165450ustar00rootroot00000000000000description ingress label filtering with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit prefix-list p4 sequence 10 deny 2.2.2.3/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::3/128 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls label4in p4 mpls label6in p6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-ldp21.tst000066400000000000000000000050011471627602100165470ustar00rootroot00000000000000description egress label filtering with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit prefix-list p4 sequence 10 deny 2.2.2.3/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::3/128 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls label4out p4 mpls label6out p6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-ldp22.tst000066400000000000000000000047721471627602100165660ustar00rootroot00000000000000description vrf label filtering with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! prefix-list p4 sequence 10 deny 2.2.2.3/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::3/128 sequence 20 permit ::/0 le 128 exit vrf def v1 rd 1:1 label-mode per-prefix label4filter p4 label6filter p6 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-ldp23.tst000066400000000000000000000061341471627602100165610ustar00rootroot00000000000000description mpls expbundle addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ int ser3 ser - $3a$ $3b$ int ser4 ser - $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int ser2 enc hdlc vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int ser3 enc hdlc vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int ser4 enc hdlc vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ int ser3 ser - $3b$ $3a$ int ser4 ser - $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int ser2 enc hdlc vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int ser3 enc hdlc vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int ser4 enc hdlc vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun1 tunnel vrf v1 tunnel source ser1 tunnel destination 1.1.1.1 tunnel domain-name 1:ser1 2:ser2 4:ser3 5:ser4 tunnel mode expbun vrf forwarding v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 no shutdown no log-link-change exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.5.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 tos 32 r1 tping 100 10 4321::2 vrf v1 sou lo0 tos 32 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 tos 32 r2 tping 100 10 4321::1 vrf v1 sou lo0 tos 32 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 tos 64 r1 tping 100 10 4321::2 vrf v1 sou lo0 tos 64 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 tos 64 r2 tping 100 10 4321::1 vrf v1 sou lo0 tos 64 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 tos 96 r1 tping 0 10 4321::2 vrf v1 sou lo0 tos 96 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 tos 96 r2 tping 0 10 4321::1 vrf v1 sou lo0 tos 96 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 tos 128 r1 tping 100 10 4321::2 vrf v1 sou lo0 tos 128 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 tos 128 r2 tping 100 10 4321::1 vrf v1 sou lo0 tos 128 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 tos 160 r1 tping 100 10 4321::2 vrf v1 sou lo0 tos 160 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 tos 160 r2 tping 100 10 4321::1 vrf v1 sou lo0 tos 160 freeRtr-24.11.16/cfg/mpls-ldp24.tst000066400000000000000000000042471471627602100165650ustar00rootroot00000000000000description mpls redirection addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int ser2 enc hdlc vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables no mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int ser2 enc hdlc vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls redir ser1 mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/mpls-ldp25.tst000066400000000000000000000077601471627602100165710ustar00rootroot00000000000000description ldp php addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls label4pop mpls label6pop exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls label4pop mpls label6pop exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls label4pop mpls label6pop exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.2.3 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls label4pop mpls label6pop exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r2 tping 0 10 1.1.2.3 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r2 tping 0 10 2.2.2.3 vrf v1 sou lo0 r2 tping 0 10 4321::3 vrf v1 sou lo0 r3 tping 0 10 2.2.2.1 vrf v1 sou lo0 r3 tping 0 10 4321::1 vrf v1 sou lo0 r3 tping 0 10 2.2.2.2 vrf v1 sou lo0 r3 tping 0 10 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp26.tst000066400000000000000000000034061471627602100165630ustar00rootroot00000000000000description ldp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.3 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.3 vrf v1 r2 tping 0 10 1.1.1.2 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp27.tst000066400000000000000000000034471471627602100165710ustar00rootroot00000000000000description static labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls static-label 2.2.2.2/32 1.1.1.2 0 mpls static-label 4321::2/128 1234::2 2 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls static-label 2.2.2.1/32 1.1.1.1 0 mpls static-label 4321::1/128 1234::1 2 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-ldp28.tst000066400000000000000000000042671471627602100165730ustar00rootroot00000000000000description static labels with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls static-label 2.2.2.2/32 1.1.1.2 10 mpls static-label 4321::2/128 1234::2 12 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 mpls static-label 2.2.2.1/32 1.1.1.1 0 mpls static-label 4321::1/128 1234::1 2 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ! r1 tping 0 10 2.2.2.2 vrf v1 sou lo0 r1 tping 0 10 4321::2 vrf v1 sou lo0 r2 tping 0 10 2.2.2.1 vrf v1 sou lo0 r2 tping 0 10 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth1 r1 send mpls static-label 2.2.2.2/32 1.1.1.2 0 r1 send mpls static-label 4321::2/128 1234::2 2 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh01.tst000066400000000000000000000027231471627602100165660ustar00rootroot00000000000000description nsh over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int eth2 nsh ena exit nsh 2 255 int eth2 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! int eth1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int eth1 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 r2 output show inter eth1 full r2 output show inter eth2 full r2 output show nsh for r2 output show nsh for 2 255 r2 output show nsh for 3 254 output ../binTmp/mpls-nsh.html here is the interface:
show:0
here is the interface:
show:1
here is the fib:
show:2
here is the detailed fib:
show:3
here is the detailed fib:
show:4
! freeRtr-24.11.16/cfg/mpls-nsh02.tst000066400000000000000000000017411471627602100165660ustar00rootroot00000000000000description nsh over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int eth2.11 nsh ena exit nsh 2 255 int eth2.11 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! int eth1.11 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int eth1.11 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh03.tst000066400000000000000000000020631471627602100165650ustar00rootroot00000000000000description nsh over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit bridge 1 exit int eth2.11 bridge-gr 1 exit int bvi1 nsh ena exit nsh 2 255 int bvi1 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int bvi1 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh04.tst000066400000000000000000000017401471627602100165670ustar00rootroot00000000000000description nsh over hdlc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int ser1 enc hdlc nsh ena exit nsh 2 255 int ser1 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int ser1 ser 0000.0000.3333 $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! int ser1 enc hdlc nsh ena exit int eth1 nsh ena nsh xconn 3 255 exit nsh 3 255 int ser1 0000.1111.2222 nsh 2 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh05.tst000066400000000000000000000017351471627602100165740ustar00rootroot00000000000000description nsh over ppp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int ser1 enc ppp nsh ena exit nsh 2 255 int ser1 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int ser1 ser 0000.0000.3333 $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! int ser1 enc ppp nsh ena exit int eth1 nsh ena nsh xconn 3 255 exit nsh 3 255 int ser1 0000.1111.2222 nsh 2 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh06.tst000066400000000000000000000021061471627602100165660ustar00rootroot00000000000000description nsh over framerelay addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 nsh ena exit nsh 2 255 int ser1 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int ser1 ser 0000.0000.3333 $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! int ser1 enc framerelay framerelay mode dte framerelay dlci 123 nsh ena exit int eth1 nsh ena nsh xconn 3 255 exit nsh 3 255 int ser1 0000.1111.2222 nsh 2 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh07.tst000066400000000000000000000020361471627602100165710ustar00rootroot00000000000000description nsh over atmdxi addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 nsh ena exit nsh 2 255 int ser1 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int ser1 ser 0000.0000.3333 $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 nsh ena exit int eth1 nsh ena nsh xconn 3 255 exit nsh 3 255 int ser1 0000.1111.2222 nsh 2 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh08.tst000066400000000000000000000024071471627602100165740ustar00rootroot00000000000000description nsh over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 nsh ena nsh xconn 2 255 exit int eth2 vrf for v1 ipv6 addr 1111::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source eth2 tunnel destination 1111::2 nsh ena exit nsh 2 255 int tun1 0000.1111.2222 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv6 addr 1111::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source eth1 tunnel destination 1111::1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int tun1 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh09.tst000066400000000000000000000022321471627602100165710ustar00rootroot00000000000000description nsh chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int eth2 nsh ena exit nsh 2 255 int eth2 0000.1111.2222 nsh 3 253 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! int eth1 nsh ena exit int eth2 nsh ena exit nsh 3 254 int eth1 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! int eth1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int eth1 0000.1111.2222 nsh 2 253 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r5 tping 100 10 1.1.1.1 vrf v1 r5 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh10.tst000066400000000000000000000023271471627602100165660ustar00rootroot00000000000000description nsh loop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int eth2 nsh ena exit nsh 2 255 int eth2 0000.1111.2222 nsh 2 253 int eth2 0000.1111.2222 nsh 2 251 int eth2 0000.1111.2222 nsh 3 254 int eth2 0000.1111.2222 nsh 3 252 int eth2 0000.1111.2222 nsh 3 250 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! int eth1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int eth1 0000.1111.2222 nsh 3 253 int eth1 0000.1111.2222 nsh 3 251 int eth1 0000.1111.2222 nsh 2 254 int eth1 0000.1111.2222 nsh 2 252 int eth1 0000.1111.2222 nsh 2 250 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh11.tst000066400000000000000000000022651471627602100165700ustar00rootroot00000000000000description nsh switch addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena nsh xconn 2 255 exit int eth2 nsh ena exit nsh 2 255 int eth2 0000.1111.2222 nsh 5 252 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! int eth1 nsh ena exit int eth2 nsh ena exit nsh 3 254 int eth1 0000.1111.2222 switch 5 252 nsh 2 254 int eth2 0000.1111.2222 switch 4 252 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! int eth1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int eth1 0000.1111.2222 nsh 4 252 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r5 tping 100 10 1.1.1.1 vrf v1 r5 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh12.tst000066400000000000000000000025771471627602100165770ustar00rootroot00000000000000description nsh ip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 permit all 1.1.1.1 255.255.255.255 all any all exit access-list test6 sequence 10 permit all 1111::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:ffff:: exit int eth1 nsh ena exit ipv4 pbr v1 sequence 10 test4 v1 nsh 2 255 ipv6 pbr v1 sequence 10 test6 v1 nsh 2 255 nsh 2 255 int eth1 0000.1111.2222 nsh 3 253 route v1 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena exit int eth2 nsh ena exit nsh 3 254 int eth1 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 permit all 1.1.1.2 255.255.255.255 all any all exit access-list test6 sequence 10 permit all 1111::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:ffff:: exit int eth1 nsh ena exit ipv4 pbr v1 sequence 10 test4 v1 nsh 3 255 ipv6 pbr v1 sequence 10 test6 v1 nsh 3 255 nsh 3 255 int eth1 0000.1111.2222 nsh 2 253 route v1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh13.tst000066400000000000000000000025611471627602100165710ustar00rootroot00000000000000description nsh mix of ip and ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 sequence 10 permit all 1.1.1.1 255.255.255.255 all any all exit access-list test6 sequence 10 permit all 1111::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all any all exit int lo1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:ffff:: exit int eth1 nsh ena exit ipv4 pbr v1 sequence 10 test4 v1 nsh 2 255 ipv6 pbr v1 sequence 10 test6 v1 nsh 2 255 nsh 2 255 int eth1 0000.1111.2222 nsh 3 253 route v1 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! int eth1 nsh ena exit int eth2 nsh ena exit nsh 3 254 int eth1 0000.1111.2222 nsh 2 254 int eth2 0000.1111.2222 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! int eth1 nsh ena exit int eth2 nsh ena nsh xconn 3 255 exit nsh 3 255 int eth1 0000.1111.2222 nsh 2 253 int eth2 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: ipv4 host-static 1.1.1.1 0000.1111.2222 ipv6 host-static 1111::1 0000.1111.2222 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh14.tst000066400000000000000000000024761471627602100165770ustar00rootroot00000000000000description nsh over ipv4 tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 nsh ena nsh xconn 2 255 exit int ser1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:ffff:: ipv4 nsh ena ipv6 nsh ena exit nsh 2 255 tunnel v1 ser1 2.2.2.2 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int ser1 ser 0000.0000.3333 $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:ffff:: ipv4 nsh ena ipv6 nsh ena exit int eth1 nsh ena nsh xconn 3 255 exit nsh 3 255 tunnel v1 ser1 2.2.2.1 nsh 2 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2222::2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 2222::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-nsh15.tst000066400000000000000000000024761471627602100166000ustar00rootroot00000000000000description nsh over ipv6 tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1111::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int ser1 ser 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 nsh ena nsh xconn 2 255 exit int ser1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 2222::1 ffff:ffff:: ipv4 nsh ena ipv6 nsh ena exit nsh 2 255 tunnel v1 ser1 2222::2 nsh 3 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r3 int ser1 ser 0000.0000.3333 $2b$ $2a$ int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 2222::2 ffff:ffff:: ipv4 nsh ena ipv6 nsh ena exit int eth1 nsh ena nsh xconn 3 255 exit nsh 3 255 tunnel v1 ser1 2222::1 nsh 2 254 int eth1 0000.1111.2222 rawpack keephdr ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1111::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2222::2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r3 tping 100 10 2222::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1111::2 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1111::1 vrf v1 freeRtr-24.11.16/cfg/mpls-polka01.tst000066400000000000000000000061271471627602100171060ustar00rootroot00000000000000description polka over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka02.tst000066400000000000000000000061501471627602100171030ustar00rootroot00000000000000description polka over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka03.tst000066400000000000000000000063531471627602100171110ustar00rootroot00000000000000description polka over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1.22 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka04.tst000066400000000000000000000061071471627602100171070ustar00rootroot00000000000000description polka over hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc hdlc vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka05.tst000066400000000000000000000061021471627602100171030ustar00rootroot00000000000000description polka over ppp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc ppp vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka06.tst000066400000000000000000000064151471627602100171130ustar00rootroot00000000000000description polka over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka07.tst000066400000000000000000000063011471627602100171060ustar00rootroot00000000000000description polka over atmdxi addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka08.tst000066400000000000000000000065461471627602100171220ustar00rootroot00000000000000description polka over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv6 addr 1111::1 ffff:: exit int tun9 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1111::2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv6 addr 1111::2 ffff:: exit int tun9 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1111::1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka09.tst000066400000000000000000000060061471627602100171120ustar00rootroot00000000000000description polka over broadcast subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka10.tst000066400000000000000000000104431471627602100171020ustar00rootroot00000000000000description polka over ethernet chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.4 tunnel domain-name 2.2.2.2 2.2.2.3 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::4 tunnel domain-name 4321::2 4321::3 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.10 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.11 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.3 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::3 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r4 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-polka11.tst000066400000000000000000000074761471627602100171170ustar00rootroot00000000000000description pwe over polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 mpls enable exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: mpls enable exit int tun3 tun sou tun1 tun dest 3.3.3.2 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 exit int tun4 tun sou tun2 tun dest 3333::2 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv6 addr 4444::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 mpls enable ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 mpls enable ipv6 address 3333::2 ffff:: exit int tun3 tun sou tun1 tun dest 3.3.3.1 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 exit int tun4 tun sou tun2 tun dest 3333::1 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv6 addr 4444::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r1 tping 100 20 3.3.3.6 vrf v1 sou tun3 r3 tping 100 20 3.3.3.5 vrf v1 sou tun3 r1 tping 100 20 4444::2 vrf v1 sou tun4 r3 tping 100 20 4444::1 vrf v1 sou tun4 freeRtr-24.11.16/cfg/mpls-polka12.tst000066400000000000000000000127561471627602100171150ustar00rootroot00000000000000description bgp vpns over polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 mpls enable exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 3.3.3.2 remote-as 1 neigh 3.3.3.2 update tun1 neigh 3.3.3.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 3333::2 remote-as 1 neigh 3333::2 update tun2 neigh 3333::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 mpls enable exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 3.3.3.1 remote-as 1 neigh 3.3.3.1 update tun1 neigh 3.3.3.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 3333::1 remote-as 1 neigh 3333::1 update tun2 neigh 3333::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/mpls-polka13.tst000066400000000000000000000116771471627602100171170ustar00rootroot00000000000000description mpolka over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka14.tst000066400000000000000000000117261471627602100171130ustar00rootroot00000000000000description mpolka over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth3.33 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.33 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka15.tst000066400000000000000000000117611471627602100171130ustar00rootroot00000000000000description mpolka over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka16.tst000066400000000000000000000116511471627602100171120ustar00rootroot00000000000000description mpolka over hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ int ser3 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc hdlc vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser3 enc hdlc vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka17.tst000066400000000000000000000116421471627602100171130ustar00rootroot00000000000000description mpolka over ppp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ int ser3 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc ppp vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser3 enc ppp vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka18.tst000066400000000000000000000123171471627602100171140ustar00rootroot00000000000000description mpolka over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ int ser3 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser3 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka19.tst000066400000000000000000000121371471627602100171150ustar00rootroot00000000000000description mpolka over atmdxi addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ int ser3 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser2 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int ser3 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka20.tst000066400000000000000000000123161471627602100171040ustar00rootroot00000000000000description mpolka over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv6 addr 1111::1 ffff:: exit int tun9 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1111::2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 , 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 4321::4 , 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv6 addr 1111::2 ffff:: exit int tun9 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1111::1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-polka21.tst000066400000000000000000000111321471627602100171000ustar00rootroot00000000000000description mpolka over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.3 2.2.2.3 , 2.2.2.4 2.2.2.4 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::3 4321::3 , 4321::4 4321::4 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo0 r1 tping 100 20 4321::2 vrf v1 sou lo0 r1 tping 100 20 2.2.2.3 vrf v1 sou lo0 r1 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 100 20 2.2.2.4 vrf v1 sou lo0 r1 tping 100 20 4321::4 vrf v1 sou lo0 r2 tping 100 20 2.2.2.1 vrf v1 sou lo0 r2 tping 100 20 4321::1 vrf v1 sou lo0 r2 tping 100 20 2.2.2.3 vrf v1 sou lo0 r2 tping 100 20 4321::3 vrf v1 sou lo0 r2 tping 100 20 2.2.2.4 vrf v1 sou lo0 r2 tping 100 20 4321::4 vrf v1 sou lo0 r3 tping 100 20 2.2.2.2 vrf v1 sou lo0 r3 tping 100 20 4321::2 vrf v1 sou lo0 r3 tping 100 20 2.2.2.3 vrf v1 sou lo0 r3 tping 100 20 4321::3 vrf v1 sou lo0 r3 tping 100 20 2.2.2.4 vrf v1 sou lo0 r3 tping 100 20 4321::4 vrf v1 sou lo0 r4 tping 100 20 2.2.2.1 vrf v1 sou lo0 r4 tping 100 20 4321::1 vrf v1 sou lo0 r4 tping 100 20 2.2.2.2 vrf v1 sou lo0 r4 tping 100 20 4321::2 vrf v1 sou lo0 r4 tping 100 20 2.2.2.3 vrf v1 sou lo0 r4 tping 100 20 4321::3 vrf v1 sou lo0 r1 tping 200 20 3.3.3.2 vrf v1 sou tun1 multi r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 multi r1 tping 200 20 3333::2 vrf v1 sou tun2 multi r3 tping 100 20 3333::1 vrf v1 sou tun2 multi r4 tping 100 20 3333::1 vrf v1 sou tun2 multi freeRtr-24.11.16/cfg/mpls-pwe01.tst000066400000000000000000000031441471627602100165670ustar00rootroot00000000000000description ppp over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype ppp control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype ppp control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe02.tst000066400000000000000000000031511471627602100165660ustar00rootroot00000000000000description hdlc over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc hdlc vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc hdlc vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe03.tst000066400000000000000000000031701471627602100165700ustar00rootroot00000000000000description lapb over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc lapb lapb mode dce vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc lapb vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe04.tst000066400000000000000000000033441471627602100165740ustar00rootroot00000000000000description framerelay over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe05.tst000066400000000000000000000032471471627602100165770ustar00rootroot00000000000000description atmdxi over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe06.tst000066400000000000000000000031701471627602100165730ustar00rootroot00000000000000description isdn over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc isdn isdn mode dce vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc isdn vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe07.tst000066400000000000000000000031461471627602100165770ustar00rootroot00000000000000description sep over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc sep vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc sep vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe08.tst000066400000000000000000000031601471627602100165740ustar00rootroot00000000000000description port mode ppp over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn atom interface di1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype hdlc control-word protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe09.tst000066400000000000000000000044121471627602100165760ustar00rootroot00000000000000description ethernet over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 output show mpls forw r1 output show ipv4 ldp v1 sum r1 output show ipv6 ldp v1 sum r1 output show bridge 1 r1 output show inter bvi1 full r1 output show ipv4 arp bvi1 r1 output show ipv6 neigh bvi1 output ../binTmp/mpls-pwe.html here is the lib:
show:0
here is the ipv4 neighbor:
show:1
here is the ipv6 neighbor:
show:2
here is the ipv4 bridge:
show:3
here is the interface:
show:4
here is the arp:
show:5
here are the neighbors:
show:6
! freeRtr-24.11.16/cfg/mpls-pwe10.tst000066400000000000000000000031411471627602100165640ustar00rootroot00000000000000description vlan over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 exit int bvi1.111 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype vlan protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 bridge 1 exit int bvi1.111 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype vlan protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe11.tst000066400000000000000000000064241471627602100165740ustar00rootroot00000000000000description multipoint ethernet over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 bridge 1 mac-learn exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn eompls1 bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit vpdn eompls2 bridge-gr 1 proxy p1 target 4321::3 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 bridge 1 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 bridge 1 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 4321::1 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r1 tping 100 40 3.3.3.3 vrf v1 r1 tping 100 40 3.3.3.4 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r2 tping 0 40 3.3.3.3 vrf v1 r2 tping 100 40 3.3.3.4 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r3 tping 0 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.4 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe12.tst000066400000000000000000000064311471627602100165730ustar00rootroot00000000000000description interworking between l2tp3 and ethernet over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 bridge 1 mac-learn exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit vpdn l2tp bridge-gr 1 proxy p1 target 2.2.2.3 vcid 1234 pwtype eth dir in protocol l2tp3 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 bridge 1 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 bridge 1 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit vpdn l2tp bridge-gr 1 proxy p1 target 2.2.2.1 vcid 1234 pwtype eth dir out protocol l2tp3 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r1 tping 100 40 3.3.3.3 vrf v1 r1 tping 100 40 3.3.3.4 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r2 tping 0 40 3.3.3.3 vrf v1 r2 tping 100 40 3.3.3.4 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r3 tping 0 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.4 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe13.tst000066400000000000000000000032041471627602100165670ustar00rootroot00000000000000description hdlc tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc hdlc vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe14.tst000066400000000000000000000032731471627602100165760ustar00rootroot00000000000000description ppp tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe15.tst000066400000000000000000000032231471627602100165720ustar00rootroot00000000000000description lapb tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb lapb mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc lapb vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe16.tst000066400000000000000000000033771471627602100166050ustar00rootroot00000000000000description framerelay tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay mode dce framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc framerelay framerelay lmi ansi framerelay dlci 123 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe17.tst000066400000000000000000000033021471627602100165720ustar00rootroot00000000000000description atmdxi tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe18.tst000066400000000000000000000032231471627602100165750ustar00rootroot00000000000000description isdn tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn isdn mode dce vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc isdn vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe19.tst000066400000000000000000000032011471627602100165720ustar00rootroot00000000000000description sep tunneling with mpls addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.2 1234 vlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int ser1 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int ser1 enc raw xconnect v1 lo0 pweompls 2.2.2.1 1234 vlan exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int ser1 enc sep vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe20.tst000066400000000000000000000032141471627602100165660ustar00rootroot00000000000000description ethernet tunneling with mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int eth1 xconnect v1 lo0 pweompls 4321::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int eth2 xconnect v1 lo0 pweompls 4321::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 30 4321::2 vrf v1 r3 tping 100 30 4321::1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe21.tst000066400000000000000000000032301471627602100165650ustar00rootroot00000000000000description vlan tunneling with mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1.111 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int eth1.111 xconnect v1 lo0 pweompls 4321::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int eth2.222 xconnect v1 lo0 pweompls 4321::1 1234 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.222 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 30 4321::2 vrf v1 r3 tping 100 30 4321::1 vrf v1 r1 tping 100 30 2.2.2.2 vrf v1 r1 tping 100 30 4321::2 vrf v1 r4 tping 100 30 2.2.2.1 vrf v1 r4 tping 100 30 4321::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe22.tst000066400000000000000000000027261471627602100165770ustar00rootroot00000000000000description tunnel interface with mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int tun1 tun vrf v1 tun sou lo0 tun dest 2.2.2.2 tun key 1234 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int tun1 tun vrf v1 tun sou lo0 tun dest 2.2.2.1 tun key 1234 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 30 2.2.2.2 vrf v1 sou lo0 r2 tping 100 30 2.2.2.1 vrf v1 sou lo0 r1 tping 100 30 3.3.3.2 vrf v1 r1 tping 100 30 3333::2 vrf v1 r2 tping 100 30 3.3.3.1 vrf v1 r2 tping 100 30 3333::1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwe23.tst000066400000000000000000000032131471627602100165700ustar00rootroot00000000000000description ethernet over mpls with cw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.2 mtu 1500 vcid 1234 control pwtype eth protocol pweompls exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit vpdn eompls bridge-gr 1 proxy p1 target 2.2.2.1 mtu 1500 vcid 1234 control pwtype eth protocol pweompls exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe01.tst000066400000000000000000000027401471627602100167400ustar00rootroot00000000000000description ppp over packet over udp pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pckoudp 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pckoudp 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 output show inter virt1 full output ../binTmp/mpls-virtppp.html here is the interface:
show:0
! freeRtr-24.11.16/cfg/mpls-pwhe02.tst000066400000000000000000000031531471627602100167400ustar00rootroot00000000000000description ethernet over packet over udp pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pckoudp 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pckoudp 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 output show inter pweth1 full r1 output show ipv4 arp pweth1 r1 output show ipv6 neigh pweth1 output ../binTmp/mpls-pweth.html here is the interface:
show:0
here is the arp:
show:1
here are the neighbors:
show:2
! freeRtr-24.11.16/cfg/mpls-pwhe03.tst000066400000000000000000000023471471627602100167450ustar00rootroot00000000000000description ethernet over vxlan pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 vxlan 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 vxlan 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe04.tst000066400000000000000000000023521471627602100167420ustar00rootroot00000000000000description ethernet over geneve pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 geneve 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 geneve 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe05.tst000066400000000000000000000023501471627602100167410ustar00rootroot00000000000000description ethernet over erspan pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 erspan 2.2.2.2 123 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 erspan 2.2.2.1 123 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe06.tst000066400000000000000000000023441471627602100167450ustar00rootroot00000000000000description ethernet over dlsw pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 dlsw 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 dlsw 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe07.tst000066400000000000000000000023551471627602100167500ustar00rootroot00000000000000description ethernet over etherip pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 etherip 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 etherip 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe08.tst000066400000000000000000000023411471627602100167440ustar00rootroot00000000000000description ethernet over uti pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 uti 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 uti 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe09.tst000066400000000000000000000023471471627602100167530ustar00rootroot00000000000000description ethernet over nvgre pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 nvgre 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 nvgre 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe10.tst000066400000000000000000000023651471627602100167430ustar00rootroot00000000000000description ppp over greppp pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 greppp 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 greppp 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe11.tst000066400000000000000000000023571471627602100167450ustar00rootroot00000000000000description ppp over ax25 pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 ax25 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 ax25 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe12.tst000066400000000000000000000025261471627602100167440ustar00rootroot00000000000000description ppp over l2f pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp ppp ip4cp open ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 l2f 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 pool p4 3.3.3.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.0 255.255.255.255 ppp ip4cp open ppp ip4cp local 3.3.3.0 ipv4 pool p4 exit server l2f l2f clone di1 vrf v1 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.0 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe13.tst000066400000000000000000000025321471627602100167420ustar00rootroot00000000000000description ppp over pptp pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp ppp ip4cp open ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pptp 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 pool p4 3.3.3.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.0 255.255.255.255 ppp ip4cp local 3.3.3.0 ppp ip4cp open ipv4 pool p4 exit server pptp pptp clone di1 vrf v1 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.0 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe14.tst000066400000000000000000000025351471627602100167460ustar00rootroot00000000000000description ppp over l2tp2 pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp ppp ip4cp open ppp ip4cp local 0.0.0.0 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 l2tp2 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 pool p4 3.3.3.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.0 255.255.255.255 ppp ip4cp local 3.3.3.0 ppp ip4cp open ipv4 pool p4 exit server l2tp2 l2tp clone di1 vrf v1 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.0 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe15.tst000066400000000000000000000023621471627602100167450ustar00rootroot00000000000000description ppp over l2tp3 pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 l2tp3 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 l2tp3 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe16.tst000066400000000000000000000023471471627602100167510ustar00rootroot00000000000000description ethernet over l2tp3 pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 l2tp3 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 l2tp3 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe17.tst000066400000000000000000000025531471627602100167510ustar00rootroot00000000000000description ppp over mpls pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int virt1 enc ppp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe18.tst000066400000000000000000000025401471627602100167460ustar00rootroot00000000000000description ethernet over mpls pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe19.tst000066400000000000000000000025701471627602100167520ustar00rootroot00000000000000description ethernet over mpls pwhe with cw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 control exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 control exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe20.tst000066400000000000000000000023521471627602100167400ustar00rootroot00000000000000description ethernet over gretap pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 gretap 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 gretap 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-pwhe21.tst000066400000000000000000000023471471627602100167450ustar00rootroot00000000000000description ethernet over sreth pwhe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 sreth 2.2.2.2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 sreth 2.2.2.1 1234 exit ! r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 freeRtr-24.11.16/cfg/mpls-sr01.tst000066400000000000000000000110701471627602100164150ustar00rootroot00000000000000description sr in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 output show mpls forw r2 output show mpls forw r3 output show mpls forw r4 output show mpls forw output ../binTmp/mpls-sr.html here is the lib:
show:0
here is the lib:
show:1
here is the lib:
show:2
here is the lib:
show:3
! freeRtr-24.11.16/cfg/mpls-sr02.tst000066400000000000000000000102461471627602100164220ustar00rootroot00000000000000description sr in star addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-sr03.tst000066400000000000000000000055741471627602100164330ustar00rootroot00000000000000description te over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 2.2.2.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 4321::3 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 4321::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 freeRtr-24.11.16/cfg/mpls-sr04.tst000066400000000000000000000054311471627602100164240ustar00rootroot00000000000000description pwe over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 2.2.2.3 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 4321::3 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 2.2.2.1 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 4321::1 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 freeRtr-24.11.16/cfg/mpls-sr05.tst000066400000000000000000000060241471627602100164240ustar00rootroot00000000000000description bgp over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 freeRtr-24.11.16/cfg/mpls-sr06.tst000066400000000000000000000070551471627602100164320ustar00rootroot00000000000000description bgp with labels over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::11 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-sr07.tst000066400000000000000000000107141471627602100164270ustar00rootroot00000000000000description vpns over bgp over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 neigh 4321::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/mpls-sr08.tst000066400000000000000000000107551471627602100164350ustar00rootroot00000000000000description othervpns over bgp over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 neigh 2.2.2.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 neigh 4321::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/mpls-sr09.tst000066400000000000000000000076341471627602100164400ustar00rootroot00000000000000description sr over broadcast subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-sr10.tst000066400000000000000000000104201471627602100164130ustar00rootroot00000000000000description sr te over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.4.5 255.255.255.0 ipv6 addr 1237::5 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode srmpls vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode srmpls vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode srmpls vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode srmpls vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: no mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.4.4 255.255.255.0 ipv6 addr 1237::4 ffff:: no mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r1 tping 0 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 4321::4 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 0 20 2.2.2.4 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 0 20 4321::4 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-sr11.tst000066400000000000000000000040751471627602100164250ustar00rootroot00000000000000description sr te over exthdr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! access-list all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 srh enable ipv6 srh enable exit interface tun1 tunnel vrf v1 tunnel source ethernet1 tunnel destination 1.1.2.3 tunnel domain-name 1.1.1.2 tunnel mode srext vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source ethernet1 tunnel destination 1235::3 tunnel domain-name 1234::2 tunnel mode srext vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! access-list all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 srh enable ipv6 srh enable exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 srh enable ipv6 srh enable exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! access-list all permit all any all any all exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 srh enable ipv6 srh enable exit interface tun1 tunnel vrf v1 tunnel source ethernet1 tunnel destination 1.1.1.1 tunnel domain-name 1.1.2.2 tunnel mode srext vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source ethernet1 tunnel destination 1234::1 tunnel domain-name 1235::2 tunnel mode srext vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 1.1.1.2 vrf v1 r1 tping 100 20 1234::2 vrf v1 r2 tping 100 20 1.1.1.1 vrf v1 r2 tping 100 20 1234::1 vrf v1 r2 tping 100 20 1.1.2.3 vrf v1 r2 tping 100 20 1235::3 vrf v1 r3 tping 100 20 1.1.2.2 vrf v1 r3 tping 100 20 1235::2 vrf v1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-sr12.tst000066400000000000000000000072251471627602100164260ustar00rootroot00000000000000description bgp with php labels over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 label-pop neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 label-pop neigh 4321::3 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 label-pop neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 label-pop neigh 4321::1 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::11 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-sr13.tst000066400000000000000000000060341471627602100164240ustar00rootroot00000000000000description sr te with pcep addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 1.1.1.2 v1 eth1 tunnel mode pcesr vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 1.1.1.2 v1 eth1 tunnel mode pcesr vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit serv pcep p export-vrf v1 vrf v1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 1.1.1.2 v1 eth1 tunnel mode pcesr vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 1.1.1.2 v1 eth1 tunnel mode pcesr vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-sr14.tst000066400000000000000000000070521471627602100164260ustar00rootroot00000000000000description bgp with ctp over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::11 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-sr15.tst000066400000000000000000000072221471627602100164260ustar00rootroot00000000000000description bgp with php ctp over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 label-pop neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 label-pop neigh 4321::3 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 label-pop neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 label-pop neigh 4321::1 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::11 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-sr16.tst000066400000000000000000000070521471627602100164300ustar00rootroot00000000000000description bgp with car over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::11 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-sr17.tst000066400000000000000000000072221471627602100164300ustar00rootroot00000000000000description bgp with php car over sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 label-pop neigh 2.2.2.3 update lo1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 label-pop neigh 4321::3 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 label-pop neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 label-pop neigh 4321::1 update lo1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo2 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::11 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 60 2.2.2.13 vrf v1 sou lo2 r1 tping 100 60 4321::13 vrf v1 sou lo2 r3 tping 100 60 2.2.2.11 vrf v1 sou lo2 r3 tping 100 60 4321::11 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te01.tst000066400000000000000000000035751471627602100164140ustar00rootroot00000000000000description te over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 output show mpls forw r1 output show ipv4 rsvp v1 sum r1 output show ipv6 rsvp v1 sum output ../binTmp/mpls-te.html here is the lib:
show:0
here is the ipv4 database:
show:1
here is the ipv6 database:
show:2
! freeRtr-24.11.16/cfg/mpls-te02.tst000066400000000000000000000030421471627602100164020ustar00rootroot00000000000000description te over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1.11 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1.11 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1.11 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1.11 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te03.tst000066400000000000000000000031561471627602100164110ustar00rootroot00000000000000description te over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou bvi1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou bvi1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bridge 1 exit int eth1.11 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou bvi1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou bvi1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te04.tst000066400000000000000000000030011471627602100163770ustar00rootroot00000000000000description te over hdlc addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te05.tst000066400000000000000000000031021471627602100164020ustar00rootroot00000000000000description te over ppp addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te06.tst000066400000000000000000000031471471627602100164140ustar00rootroot00000000000000description te over framerelay addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te07.tst000066400000000000000000000030771471627602100164170ustar00rootroot00000000000000description te over atmdxi addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou ser1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou ser1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te08.tst000066400000000000000000000033721471627602100164160ustar00rootroot00000000000000description te over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv6 addr 1111::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mod gre tunnel sou eth1 tunnel dest 1111::2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun2 tun sou tun1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun3 tun sou tun1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv6 addr 1111::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mod gre tunnel sou eth1 tunnel dest 1111::1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun2 tun sou tun1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun3 tun sou tun1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te09.tst000066400000000000000000000045551471627602100164230ustar00rootroot00000000000000description te in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2 ipv6 route v1 2345::0 ffff:: 1234::2 int tun1 tun sou eth1 tun dest 1.1.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 2345::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234::0 ffff:: 2345::1 int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r3 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r2 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 10 1.1.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te10.tst000066400000000000000000000045721471627602100164120ustar00rootroot00000000000000description ldp over te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 mpls enable mpls ldp4 ipv4 access-group-in test4 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 2345::1 ffff:: mpls enable mpls ldp6 ipv6 access-group-in test6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2345::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 mpls enable mpls ldp4 ipv4 access-group-in test4 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 2345::2 ffff:: mpls enable mpls ldp6 ipv6 access-group-in test6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2345::1 ! r1 tping 100 10 1.1.2.2 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r1 tping 100 10 2345::2 vrf v1 r2 tping 100 10 2345::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te11.tst000066400000000000000000000062101471627602100164020ustar00rootroot00000000000000description pwe over te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 mpls enable mpls ldp4 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 2345::1 ffff:: mpls enable mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2345::2 int tun3 tun vrf v1 tun sou lo0 tun dest 2.2.2.2 tun key 1234 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int tun4 tun vrf v1 tun sou lo0 tun dest 4321::2 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 mpls enable mpls ldp4 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 2345::2 ffff:: mpls enable mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2345::1 int tun3 tun vrf v1 tun sou lo0 tun dest 2.2.2.1 tun key 1234 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int tun4 tun vrf v1 tun sou lo0 tun dest 4321::1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ! r1 tping 100 10 1.1.2.2 vrf v1 r2 tping 100 10 1.1.2.1 vrf v1 r1 tping 100 10 2345::2 vrf v1 r2 tping 100 10 2345::1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 10 3.3.3.2 vrf v1 r1 tping 100 10 3333::2 vrf v1 r2 tping 100 10 3.3.3.1 vrf v1 r2 tping 100 10 3333::1 vrf v1 r1 tping 100 10 4.4.4.2 vrf v1 r1 tping 100 10 4444::2 vrf v1 r2 tping 100 10 4.4.4.1 vrf v1 r2 tping 100 10 4444::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te12.tst000066400000000000000000000070231471627602100164060ustar00rootroot00000000000000description ldp and te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int tun1 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun key 1234 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int tun2 tun sou lo0 tun dest 4321::2 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit int tun3 tun sou lo0 tun dest 2.2.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 5.5.5.1 255.255.255.252 exit int tun4 tun sou lo0 tun dest 4321::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 5555::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: mpls enable mpls ldp4 mpls ldp6 mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.2.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2345::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: mpls enable mpls ldp4 mpls ldp6 mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.2.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2345::1 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun key 1234 tun mod pweompls vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun key 4321 tun mod pweompls vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit int tun3 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 5.5.5.2 255.255.255.252 exit int tun4 tun sou lo0 tun dest 4321::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 5555::2 ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234::2 vrf v1 r3 tping 100 10 1.1.2.1 vrf v1 r3 tping 100 10 2345::1 vrf v1 r2 tping 100 10 1.1.1.1 vrf v1 r2 tping 100 10 1234::1 vrf v1 r2 tping 100 10 1.1.2.2 vrf v1 r2 tping 100 10 2345::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 100 10 3.3.3.2 vrf v1 r3 tping 100 10 3.3.3.1 vrf v1 r1 tping 100 10 3333::2 vrf v1 r3 tping 100 10 3333::1 vrf v1 r1 tping 100 10 4.4.4.2 vrf v1 r3 tping 100 10 4.4.4.1 vrf v1 r1 tping 100 10 4444::2 vrf v1 r3 tping 100 10 4444::1 vrf v1 r1 tping 100 10 5.5.5.2 vrf v1 r3 tping 100 10 5.5.5.1 vrf v1 r1 tping 100 10 5555::2 vrf v1 r3 tping 100 10 5555::1 vrf v1 freeRtr-24.11.16/cfg/mpls-te13.tst000066400000000000000000000123451471627602100164120ustar00rootroot00000000000000description p2mp te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.11.2 ipv6 route v1 :: :: 1234:1::2 interface tunnel1 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.2 2.2.2.3 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit interface tunnel2 tunnel source loopback0 tunnel destination 9999::9 tunnel domain-name 4321::2 4321::3 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv6 addr 3333::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.12.2 ipv6 route v1 :: :: 1234:2::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 3333::2 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.13.2 ipv6 route v1 :: :: 1234:3::2 int tun1 tun sou lo0 tun dest 2.2.2.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 3333::3 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.11.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 int eth2 vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.12.1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 int eth3 vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.13.1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 r4 tping 100 10 4321::1 vrf v1 sou lo0 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 r4 tping 100 10 4321::2 vrf v1 sou lo0 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 r4 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 r2 tping 100 10 4321::4 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 r3 tping 100 10 4321::4 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 3.3.3.1 vrf v1 r1 tping 100 10 3.3.3.2 vrf v1 r1 tping 100 10 3.3.3.3 vrf v1 r1 tping 100 10 3333::1 vrf v1 r1 tping 100 10 3333::2 vrf v1 r1 tping 100 10 3333::3 vrf v1 r2 tping 100 10 3.3.3.1 vrf v1 r2 tping 100 10 3.3.3.2 vrf v1 r2 tping 100 10 3.3.3.3 vrf v1 r2 tping 100 10 3333::1 vrf v1 r2 tping 100 10 3333::2 vrf v1 r2 tping 100 10 3333::3 vrf v1 r3 tping 100 10 3.3.3.1 vrf v1 r3 tping 100 10 3.3.3.2 vrf v1 r3 tping 100 10 3.3.3.3 vrf v1 r3 tping 100 10 3333::1 vrf v1 r3 tping 100 10 3333::2 vrf v1 r3 tping 100 10 3333::3 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 output show mpls forw r1 output show ipv4 rsvp v1 sum r1 output show ipv6 rsvp v1 sum output ../binTmp/mpls-te-p2mp.html here is the lib:
show:0
here is the ipv4 database:
show:1
here is the ipv6 database:
show:2
! freeRtr-24.11.16/cfg/mpls-te14.tst000066400000000000000000000106341471627602100164120ustar00rootroot00000000000000description p2mp te tail+mid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.11.2 ipv6 route v1 :: :: 1234:1::2 interface tunnel1 tunnel source loopback0 tunnel destination 9.9.9.9 tunnel domain-name 2.2.2.2 2.2.2.3 2.2.2.4 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit interface tunnel2 tunnel source loopback0 tunnel destination 9999::9 tunnel domain-name 4321::2 4321::3 4321::4 tunnel vrf v1 tunnel mode p2mpte vrf for v1 ipv6 addr 3333::1 ffff:ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.12.2 ipv6 route v1 :: :: 1234:2::2 int lo1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.13.2 ipv6 route v1 :: :: 1234:3::2 int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.11.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 int eth2 vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.12.1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 int eth3 vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.13.1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 int lo1 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit ! r4 tping 100 10 2.2.2.1 vrf v1 sou lo0 r4 tping 100 10 4321::1 vrf v1 sou lo0 r4 tping 100 10 2.2.2.2 vrf v1 sou lo0 r4 tping 100 10 4321::2 vrf v1 sou lo0 r4 tping 100 10 2.2.2.3 vrf v1 sou lo0 r4 tping 100 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 2.2.2.3 vrf v1 sou lo0 r1 tping 100 10 4321::3 vrf v1 sou lo0 r2 tping 100 10 2.2.2.4 vrf v1 sou lo0 r2 tping 100 10 4321::4 vrf v1 sou lo0 r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r2 tping 100 10 2.2.2.3 vrf v1 sou lo0 r2 tping 100 10 4321::3 vrf v1 sou lo0 r3 tping 100 10 2.2.2.4 vrf v1 sou lo0 r3 tping 100 10 4321::4 vrf v1 sou lo0 r3 tping 100 10 2.2.2.1 vrf v1 sou lo0 r3 tping 100 10 4321::1 vrf v1 sou lo0 r3 tping 100 10 2.2.2.2 vrf v1 sou lo0 r3 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 100 10 3.3.3.1 vrf v1 sou lo0 multi r1 tping 100 10 3.3.3.2 vrf v1 sou lo0 multi r1 tping 100 10 3.3.3.3 vrf v1 sou lo0 multi r1 tping 300 10 3.3.3.4 vrf v1 sou lo0 multi r1 tping 100 10 3333::1 vrf v1 sou lo0 multi r1 tping 100 10 3333::2 vrf v1 sou lo0 multi r1 tping 100 10 3333::3 vrf v1 sou lo0 multi r1 tping 300 10 3333::4 vrf v1 sou lo0 multi freeRtr-24.11.16/cfg/mpls-te15.tst000066400000000000000000000032241471627602100164100ustar00rootroot00000000000000description te with pcep addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun dom 1.1.1.2 v1 eth1 tun mod pcete vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun dom 1.1.1.2 v1 eth1 tun mod pcete vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit serv pcep p export-vrf v1 vrf v1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun dom 1.1.1.2 v1 eth1 tun mod pcete vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun dom 1.1.1.2 v1 eth1 tun mod pcete vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te16.tst000066400000000000000000000031351471627602100164120ustar00rootroot00000000000000description te over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.3 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::3 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.3 vrf v1 r2 tping 0 10 1.1.1.2 vrf v1 freeRtr-24.11.16/cfg/mpls-te17.tst000066400000000000000000000031731471627602100164150ustar00rootroot00000000000000description bidir te without global id addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun assoc 4.3.2.1 1234 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun assoc 4444::5555 1234 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun assoc 4.3.2.1 1234 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun assoc 4444::5555 1234 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te18.tst000066400000000000000000000032341471627602100164140ustar00rootroot00000000000000description bidir te with global id addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.2 tun vrf v1 tun assoc 4.3.2.1 1234 12345678 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::2 tun vrf v1 tun assoc 4444::5555 1234 12345678 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun assoc 4.3.2.1 1234 12345678 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun assoc 4444::5555 1234 12345678 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit ! r1 tping 100 10 2.2.2.2 vrf v1 r2 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r2 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 freeRtr-24.11.16/cfg/mpls-te19.tst000066400000000000000000000107551471627602100164230ustar00rootroot00000000000000description te explicit path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.4.5 255.255.255.0 ipv6 addr 1237::5 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router pvrp4 1 ena router pvrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode p2pte vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode p2pte vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router pvrp4 1 ena router pvrp4 1 metric-out 100 router pvrp6 1 ena router pvrp6 1 metric-out 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router pvrp4 1 ena router pvrp4 1 metric-out 100 router pvrp6 1 ena router pvrp6 1 metric-out 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable mpls rsvp4 mpls rsvp6 router pvrp4 1 ena router pvrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode p2pte vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode p2pte vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 red conn exit router pvrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: no mpls enable no mpls rsvp4 no mpls rsvp6 router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.4.4 255.255.255.0 ipv6 addr 1237::4 ffff:: no mpls enable no mpls rsvp4 no mpls rsvp6 router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/mpls-te20.tst000066400000000000000000000062571471627602100164150ustar00rootroot00000000000000description bgp over te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2 ipv6 route v1 2345::0 ffff:: 1234::2 int tun1 tun sou eth1 tun dest 1.1.2.2 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.1 255.255.255.252 exit int tun2 tun sou eth1 tun dest 2345::2 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::1 ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 2345::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 2345::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234::0 ffff:: 2345::1 int tun1 tun sou eth1 tun dest 1.1.1.1 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 2.2.2.2 255.255.255.252 exit int tun2 tun sou eth1 tun dest 1234::1 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 4321::2 ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 red conn exit ! r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r3 tping 100 10 4321::1 vrf v1 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r2 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 10 1.1.2.1 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 sou lo1 r3 tping 100 60 3.3.3.1 vrf v1 sou lo1 r1 tping 100 60 3333::3 vrf v1 sou lo1 r3 tping 100 60 3333::1 vrf v1 sou lo1 freeRtr-24.11.16/cfg/mpls-xconn01.tst000066400000000000000000000025271471627602100171250ustar00rootroot00000000000000description cross connect with pwe over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 1234 side2 v1 eth2 pweompls 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn02.tst000066400000000000000000000024371471627602100171260ustar00rootroot00000000000000description cross connect with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode pckoudp tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pckoudp 1.1.1.1 1234 side2 v1 eth2 pckoudp 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode pckoudp tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn03.tst000066400000000000000000000024151471627602100171230ustar00rootroot00000000000000description cross connect with vxlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode vxlan tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 vxlan 1.1.1.1 1234 side2 v1 eth2 vxlan 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode vxlan tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn04.tst000066400000000000000000000024221471627602100171220ustar00rootroot00000000000000description cross connect with geneve addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode geneve tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 geneve 1.1.1.1 1234 side2 v1 eth2 geneve 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode geneve tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn05.tst000066400000000000000000000024161471627602100171260ustar00rootroot00000000000000description cross connect with erspan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode erspan tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 erspan 1.1.1.1 123 side2 v1 eth2 erspan 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode erspan tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn06.tst000066400000000000000000000024231471627602100171250ustar00rootroot00000000000000description cross connect with etherip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode etherip tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 etherip 1.1.1.1 123 side2 v1 eth2 etherip 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode etherip tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn07.tst000066400000000000000000000024111471627602100171230ustar00rootroot00000000000000description cross connect with sreth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode sreth tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 sreth 1.1.1.1 123 side2 v1 eth2 sreth 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode sreth tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn08.tst000066400000000000000000000024111471627602100171240ustar00rootroot00000000000000description cross connect with nvgre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode nvgre tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 nvgre 1.1.1.1 123 side2 v1 eth2 nvgre 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode nvgre tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn09.tst000066400000000000000000000023771471627602100171400ustar00rootroot00000000000000description cross connect with uti addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode uti tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 uti 1.1.1.1 123 side2 v1 eth2 uti 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode uti tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 r3 tping 100 5 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn10.tst000066400000000000000000000026111471627602100171170ustar00rootroot00000000000000description cross connect with pwe over mpls with cw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel sequ tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 1234 control side2 v1 eth2 pweompls 1234:2::2 1234 control exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel sequ tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn11.tst000066400000000000000000000025121471627602100171200ustar00rootroot00000000000000description cross connect interworking with packet over udp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 1234 side2 v1 eth2 pckoudp 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode pckoudp tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn12.tst000066400000000000000000000024741471627602100171300ustar00rootroot00000000000000description cross connect interworking with vxlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 1234 side2 v1 eth2 vxlan 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode vxlan tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn13.tst000066400000000000000000000024771471627602100171340ustar00rootroot00000000000000description cross connect interworking with geneve addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 1234 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 1234 side2 v1 eth2 geneve 1234:2::2 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode geneve tunnel key 1234 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn14.tst000066400000000000000000000024731471627602100171310ustar00rootroot00000000000000description cross connect interworking with erspan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 123 side2 v1 eth2 erspan 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode erspan tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn15.tst000066400000000000000000000024761471627602100171350ustar00rootroot00000000000000description cross connect interworking with etherip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 123 side2 v1 eth2 etherip 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode etherip tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn16.tst000066400000000000000000000024701471627602100171300ustar00rootroot00000000000000description cross connect interworking with sreth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 123 side2 v1 eth2 sreth 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode sreth tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn17.tst000066400000000000000000000024701471627602100171310ustar00rootroot00000000000000description cross connect interworking with nvgre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 123 side2 v1 eth2 nvgre 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode nvgre tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn18.tst000066400000000000000000000024621471627602100171330ustar00rootroot00000000000000description cross connect interworking with uti addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 123 side2 v1 eth2 uti 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode uti tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn19.tst000066400000000000000000000024651471627602100171370ustar00rootroot00000000000000description cross connect interworking with dlsw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit int tun1 tunnel vrf v1 tunnel mode pweompls tunnel key 123 tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit xconnect con side1 v1 eth1 pweompls 1.1.1.1 123 side2 v1 eth2 dlsw 1234:2::2 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tunnel vrf v1 tunnel mode dlsw tunnel key 123 tunnel source ethernet1 tunnel destination 1234:2::1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::2 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r3 tping 100 10 2.2.2.1 vrf v1 freeRtr-24.11.16/cfg/mpls-xconn20.tst000066400000000000000000000213561471627602100171270ustar00rootroot00000000000000description cross connect with everything addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ int eth4 eth 0000.0000.4444 $4a$ $4b$ int eth5 eth 0000.0000.5555 $5a$ $5b$ int eth6 eth 0000.0000.6666 $6a$ $6b$ int eth7 eth 0000.0000.7777 $7a$ $7b$ int eth8 eth 0000.0000.8888 $8a$ $8b$ int eth9 eth 0000.0000.9999 $9a$ $9b$ int eth10 eth 0000.0000.aaaa $10a$ $10b$ int eth11 eth 0000.0000.bbbb $11a$ $11b$ int eth12 eth 0000.0000.cccc $12a$ $12b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p2 vrf v1 source lo0 exit proxy-profile p1 vrf v1 exit bridge 1 mac-learn exit int bvi1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.2 vcid 1234 dir out pwt eth prot l2tp3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 3.3.3.3 255.255.255.255 1.1.1.6 ipv6 route v1 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 vpdn eompls bridge-gr 1 proxy p2 target 3.3.3.3 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit vpdn pou bridge-gr 1 proxy p1 target 1.1.1.10 vcid 1234 protocol pckoudp exit int eth4 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit vpdn vxl bridge-gr 1 proxy p1 tar 1.1.1.14 vcid 1234 prot vxlan exit int eth5 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: exit vpdn gnv bridge-gr 1 proxy p1 tar 1.1.1.18 vcid 1234 prot geneve exit int eth6 vrf for v1 ipv4 addr 1.1.1.21 255.255.255.252 ipv6 addr 1234:6::1 ffff:ffff:: exit vpdn rspn bridge-gr 1 proxy p1 tar 1.1.1.22 vcid 123 prot erspan exit int eth7 vrf for v1 ipv4 addr 1.1.1.25 255.255.255.252 ipv6 addr 1234:7::1 ffff:ffff:: exit vpdn eip bridge-gr 1 proxy p1 tar 1.1.1.26 vcid 1234 prot etherip exit int eth8 vrf for v1 ipv4 addr 1.1.1.29 255.255.255.252 ipv6 addr 1234:8::1 ffff:ffff:: exit vpdn ngr bridge-gr 1 proxy p1 tar 1.1.1.30 vcid 1234 prot nvgre exit int eth9 vrf for v1 ipv4 addr 1.1.1.33 255.255.255.252 ipv6 addr 1234:9::1 ffff:ffff:: exit vpdn uti bridge-gr 1 proxy p1 tar 1.1.1.34 vcid 1234 prot uti exit int eth10 vrf for v1 ipv4 addr 1.1.1.37 255.255.255.252 ipv6 addr 1234:10::1 ffff:ffff:: exit vpdn dlsw bridge-gr 1 proxy p1 tar 1.1.1.38 vcid 1234 prot dlsw exit int eth11 vrf for v1 ipv4 addr 1.1.1.41 255.255.255.252 ipv6 addr 1234:11::1 ffff:ffff:: exit vpdn capwap bridge-gr 1 proxy p1 tar 1.1.1.42 prot capwap exit int eth12 vrf for v1 ipv4 addr 1.1.1.45 255.255.255.252 ipv6 addr 1234:12::1 ffff:ffff:: exit vpdn lwapp bridge-gr 1 proxy p1 tar 1.1.1.46 prot lwapp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit vpdn l2tp bridge-gr 1 proxy p1 tar 1.1.1.1 vcid 1234 dir in pwt eth prot l2tp3 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit proxy-profile p1 vrf v1 source lo0 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:ffff:: exit ipv4 route v1 3.3.3.1 255.255.255.255 1.1.1.5 ipv6 route v1 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 vpdn eompls bridge-gr 1 proxy p1 target 3.3.3.1 mtu 1500 vcid 1234 pwtype eth protocol pweompls exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.0 ipv6 addr 4321::4 ffff:ffff:: exit vpdn pou bridge-gr 1 proxy p1 target 1.1.1.9 vcid 1234 protocol pckoudp exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.0 ipv6 addr 4321::5 ffff:ffff:: exit server vxlan vxl bridge 1 vrf v1 inst 1234 exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.0 ipv6 addr 4321::6 ffff:ffff:: exit server geneve gnv bridge 1 vrf v1 vni 1234 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $6b$ $6a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.22 255.255.255.252 ipv6 addr 1234:6::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.7 255.255.255.0 ipv6 addr 4321::7 ffff:ffff:: exit vpdn rspn bridge-gr 1 proxy p1 tar 1.1.1.21 vcid 123 prot erspan exit ! addrouter r8 int eth1 eth 0000.0000.8888 $7b$ $7a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.26 255.255.255.252 ipv6 addr 1234:7::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.8 255.255.255.0 ipv6 addr 4321::8 ffff:ffff:: exit vpdn eip bridge-gr 1 proxy p1 tar 1.1.1.25 vcid 1234 prot etherip exit ! addrouter r9 int eth1 eth 0000.0000.9999 $8b$ $8a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.30 255.255.255.252 ipv6 addr 1234:8::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.9 255.255.255.0 ipv6 addr 4321::9 ffff:ffff:: exit vpdn ngr bridge-gr 1 proxy p1 tar 1.1.1.29 vcid 1234 prot nvgre exit ! addrouter r10 int eth1 eth 0000.0000.aaaa $9b$ $9a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.34 255.255.255.252 ipv6 addr 1234:9::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.10 255.255.255.0 ipv6 addr 4321::10 ffff:ffff:: exit vpdn uti bridge-gr 1 proxy p1 tar 1.1.1.33 vcid 1234 prot uti exit ! addrouter r11 int eth1 eth 0000.0000.bbbb $10b$ $10a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.38 255.255.255.252 ipv6 addr 1234:10::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.0 ipv6 addr 4321::11 ffff:ffff:: exit vpdn uti bridge-gr 1 proxy p1 tar 1.1.1.37 vcid 1234 prot dlsw exit ! addrouter r12 int eth1 eth 0000.0000.cccc $11b$ $11a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.42 255.255.255.252 ipv6 addr 1234:11::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.0 ipv6 addr 4321::12 ffff:ffff:: exit vpdn uti bridge-gr 1 proxy p1 tar 1.1.1.41 prot capwap exit ! addrouter r13 int eth1 eth 0000.0000.dddd $12b$ $12a$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.46 255.255.255.252 ipv6 addr 1234:12::2 ffff:ffff:: exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.0 ipv6 addr 4321::13 ffff:ffff:: exit vpdn uti bridge-gr 1 proxy p1 tar 1.1.1.45 prot lwapp exit ! r1 tping 100 10 2.2.2.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 r1 tping 100 10 2.2.2.3 vrf v1 r1 tping 100 10 2.2.2.4 vrf v1 r1 tping 100 10 2.2.2.5 vrf v1 r1 tping 100 10 2.2.2.6 vrf v1 r1 tping 100 10 2.2.2.7 vrf v1 r1 tping 100 10 2.2.2.8 vrf v1 r1 tping 100 10 2.2.2.9 vrf v1 r1 tping 100 10 2.2.2.10 vrf v1 r1 tping 100 10 2.2.2.11 vrf v1 r1 tping 100 10 2.2.2.12 vrf v1 r1 tping 100 10 2.2.2.13 vrf v1 r1 tping 100 10 4321::1 vrf v1 r1 tping 100 10 4321::2 vrf v1 r1 tping 100 10 4321::3 vrf v1 r1 tping 100 10 4321::4 vrf v1 r1 tping 100 10 4321::5 vrf v1 r1 tping 100 10 4321::6 vrf v1 r1 tping 100 10 4321::7 vrf v1 r1 tping 100 10 4321::8 vrf v1 r1 tping 100 10 4321::9 vrf v1 r1 tping 100 10 4321::10 vrf v1 r1 tping 100 10 4321::11 vrf v1 r1 tping 100 10 4321::12 vrf v1 r1 tping 100 10 4321::13 vrf v1 freeRtr-24.11.16/cfg/opnflw-rout01.tst000066400000000000000000000233371471627602100173250ustar00rootroot00000000000000description openflow: software routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: exit server openflow of no export-vrf v1 export-port sdn1 1 export-port sdn2 2 export-port sdn3 3 export-port sdn4 4 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 output show version r1 output show platform r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout01.html here are the flows:
show:2
! output ../binTmp/basic2.html here is the version information:
show:0
here is the platform information:
show:1
! freeRtr-24.11.16/cfg/opnflw-rout02.tst000066400000000000000000000213771471627602100173300ustar00rootroot00000000000000description openflow: bridging and routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int sdn1 bridge-gr 1 exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: exit server openflow of export-vrf v1 export-port sdn1 1 export-port sdn2 2 export-port sdn3 3 export-port sdn4 4 export-port bvi1 0 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.3 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.3 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.1.3 vrf v1 r1 tping 100 10 1234:1::3 vrf v1 r1 tping 100 10 1.1.1.4 vrf v1 r1 tping 100 10 1234:1::4 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.3 vrf v1 r3 tping 100 10 1234:1::3 vrf v1 r3 tping 100 10 1.1.1.4 vrf v1 r3 tping 100 10 1234:1::4 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.1.3 vrf v1 r4 tping 100 10 1234:1::3 vrf v1 r4 tping 100 10 1.1.1.4 vrf v1 r4 tping 100 10 1234:1::4 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.1.3 vrf v1 r5 tping 100 10 1234:1::3 vrf v1 r5 tping 100 10 1.1.1.4 vrf v1 r5 tping 100 10 1234:1::4 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.1.3 vrf v1 r6 tping 100 10 1234:1::3 vrf v1 r6 tping 100 10 1.1.1.4 vrf v1 r6 tping 100 10 1234:1::4 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout02.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout03.tst000066400000000000000000000230001471627602100173120ustar00rootroot00000000000000description openflow: ip routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: exit server openflow of export-vrf v1 export-port sdn1 1 export-port sdn2 2 export-port sdn3 3 export-port sdn4 4 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout03.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout04.tst000066400000000000000000000233201471627602100173200ustar00rootroot00000000000000description openflow: mpls routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit server openflow of export-vrf v1 export-port sdn1 1 export-port sdn2 2 export-port sdn3 3 export-port sdn4 4 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout04.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout05.tst000066400000000000000000000251461471627602100173310ustar00rootroot00000000000000description openflow: multicast routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit server openflow of export-vrf v1 export-port sdn1 1 export-port sdn2 2 export-port sdn3 3 export-port sdn4 4 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 300 10 232.2.2.2 vrf v1 sou lo0 multi r3 tping 300 10 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout05.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout06.tst000066400000000000000000000253051471627602100173270ustar00rootroot00000000000000description openflow: mldp routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server openflow of export-vrf v1 export-port sdn1 1 export-port sdn2 2 export-port sdn3 3 export-port sdn4 4 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 300 10 232.2.2.2 vrf v1 sou lo0 multi r3 tping 300 10 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout06.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout07.tst000066400000000000000000000247551471627602100173400ustar00rootroot00000000000000description openflow: ip routing over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $13a$ $13b$ int eth3 eth 0000.0000.1111 $14a$ $14b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth2 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit server dhcp4 eth2 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.3333 10.12.13.111 interface eth2 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit server dhcp4 eth3 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.4444 10.13.14.111 interface eth3 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: exit int sdn13 vrf for v1 mpls enable exit int sdn14 vrf for v1 mpls enable exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: exit int sdn23 vrf for v1 mpls enable exit int sdn24 vrf for v1 mpls enable exit int sdn31 vrf for v1 mpls enable exit int sdn32 vrf for v1 mpls enable exit int sdn33 vrf for v1 mpls enable exit int sdn34 vrf for v1 mpls enable exit server openflow a export-vrf v1 export-port sdn11 1 export-port sdn12 2 export-port sdn13 3 export-port sdn14 4 exit server openflow b export-vrf v1 export-port sdn21 1 export-port sdn22 2 export-port sdn23 3 export-port sdn24 4 exit server openflow c export-vrf v1 export-port sdn31 1 export-port sdn32 2 export-port sdn33 3 export-port sdn34 4 exit server stack s dataplanes 4 forwarder 1 openflow a forwarder 1 backplane sdn13 1 forwarder 1 backplane sdn14 1 forwarder 1 remote 10.11.12.111 forwarder 2 openflow b forwarder 2 backplane sdn23 1 forwarder 2 backplane sdn24 1 forwarder 2 remote 10.12.13.111 forwarder 3 openflow c forwarder 3 backplane sdn31 1 forwarder 3 backplane sdn32 1 forwarder 3 backplane sdn33 1 forwarder 3 backplane sdn34 1 forwarder 3 remote 10.13.14.111 port 6653 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $7a$ $7b$ int eth5 eth 0000.0000.2222 $8a$ $8b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 int eth1 eth 0000.0000.3333 $13b$ $13a$ int eth2 eth 0000.0000.3333 $4a$ $4b$ int eth3 eth 0000.0000.3333 $5a$ $5b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $9a$ $9b$ ! ! addother r4 int eth1 eth 0000.0000.4444 $14b$ $14a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ int eth3 eth 0000.0000.4444 $8b$ $8a$ int eth4 eth 0000.0000.4444 $10b$ $10a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12a$ $12b$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r8 int eth1 eth 0000.0000.8888 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r8 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r8 4321::103 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout07.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout08.tst000066400000000000000000000275171471627602100173400ustar00rootroot00000000000000description openflow: mpls routing over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $13a$ $13b$ int eth3 eth 0000.0000.1111 $14a$ $14b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth2 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit server dhcp4 eth2 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.3333 10.12.13.111 interface eth2 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit server dhcp4 eth3 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.4444 10.13.14.111 interface eth3 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn13 vrf for v1 mpls enable exit int sdn14 vrf for v1 mpls enable exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int sdn23 vrf for v1 mpls enable exit int sdn24 vrf for v1 mpls enable exit int sdn31 vrf for v1 mpls enable exit int sdn32 vrf for v1 mpls enable exit int sdn33 vrf for v1 mpls enable exit int sdn34 vrf for v1 mpls enable exit server openflow a export-vrf v1 export-port sdn11 1 export-port sdn12 2 export-port sdn13 3 export-port sdn14 4 exit server openflow b export-vrf v1 export-port sdn21 1 export-port sdn22 2 export-port sdn23 3 export-port sdn24 4 exit server openflow c export-vrf v1 export-port sdn31 1 export-port sdn32 2 export-port sdn33 3 export-port sdn34 4 exit server stack s dataplanes 4 forwarder 1 openflow a forwarder 1 backplane sdn13 1 forwarder 1 backplane sdn14 1 forwarder 1 remote 10.11.12.111 forwarder 2 openflow b forwarder 2 backplane sdn23 1 forwarder 2 backplane sdn24 1 forwarder 2 remote 10.12.13.111 forwarder 3 openflow c forwarder 3 backplane sdn31 1 forwarder 3 backplane sdn32 1 forwarder 3 backplane sdn33 1 forwarder 3 backplane sdn34 1 forwarder 3 remote 10.13.14.111 port 6653 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $7a$ $7b$ int eth5 eth 0000.0000.2222 $8a$ $8b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 int eth1 eth 0000.0000.3333 $13b$ $13a$ int eth2 eth 0000.0000.3333 $4a$ $4b$ int eth3 eth 0000.0000.3333 $5a$ $5b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $9a$ $9b$ ! ! addother r4 int eth1 eth 0000.0000.4444 $14b$ $14a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ int eth3 eth 0000.0000.4444 $8b$ $8a$ int eth4 eth 0000.0000.4444 $10b$ $10a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12a$ $12b$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r8 int eth1 eth 0000.0000.8888 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r8 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r8 4321::103 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout08.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw-rout09.tst000066400000000000000000000271231471627602100173320ustar00rootroot00000000000000description openflow: multicast routing over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $13a$ $13b$ int eth3 eth 0000.0000.1111 $14a$ $14b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth2 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit server dhcp4 eth2 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.3333 10.12.13.111 interface eth2 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit server dhcp4 eth3 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name ovs static 0000.0000.4444 10.13.14.111 interface eth3 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn13 vrf for v1 mpls enable exit int sdn14 vrf for v1 mpls enable exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn23 vrf for v1 mpls enable exit int sdn24 vrf for v1 mpls enable exit int sdn31 vrf for v1 mpls enable exit int sdn32 vrf for v1 mpls enable exit int sdn33 vrf for v1 mpls enable exit int sdn34 vrf for v1 mpls enable exit server openflow a export-vrf v1 export-port sdn11 1 export-port sdn12 2 export-port sdn13 3 export-port sdn14 4 exit server openflow b export-vrf v1 export-port sdn21 1 export-port sdn22 2 export-port sdn23 3 export-port sdn24 4 exit server openflow c export-vrf v1 export-port sdn31 1 export-port sdn32 2 export-port sdn33 3 export-port sdn34 4 exit server stack s dataplanes 4 forwarder 1 openflow a forwarder 1 backplane sdn13 1 forwarder 1 backplane sdn14 1 forwarder 1 remote 10.11.12.111 forwarder 2 openflow b forwarder 2 backplane sdn23 1 forwarder 2 backplane sdn24 1 forwarder 2 remote 10.12.13.111 forwarder 3 openflow c forwarder 3 backplane sdn31 1 forwarder 3 backplane sdn32 1 forwarder 3 backplane sdn33 1 forwarder 3 backplane sdn34 1 forwarder 3 remote 10.13.14.111 port 6653 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $7a$ $7b$ int eth5 eth 0000.0000.2222 $8a$ $8b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 int eth1 eth 0000.0000.3333 $13b$ $13a$ int eth2 eth 0000.0000.3333 $4a$ $4b$ int eth3 eth 0000.0000.3333 $5a$ $5b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $9a$ $9b$ ! ! addother r4 int eth1 eth 0000.0000.4444 $14b$ $14a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ int eth3 eth 0000.0000.4444 $8b$ $8a$ int eth4 eth 0000.0000.4444 $10b$ $10a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12a$ $12b$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r7 int eth1 eth 0000.0000.7777 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r8 int eth1 eth 0000.0000.8888 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 mroute v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv6 mroute v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 300 10 232.2.2.2 vrf v1 sou lo0 multi r5 tping 300 10 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r5 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r5 ff06::1 vrf v1 sou lo0 r1 send tclsh r1 output exec "telnet 10.11.12.111 2323 vrf v9 sou lo9" output ../binTmp/opnflw-rout09.html here are the flows:
show:0
! freeRtr-24.11.16/cfg/opnflw.ini000066400000000000000000000006401471627602100161320ustar00rootroot00000000000000openflow qemu-img create -f qcow2 -o backing_file=../img/opnflw.img,backing_fmt=raw $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 1024 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang-acl001.tst000066400000000000000000000233311471627602100170250ustar00rootroot00000000000000description p4lang: copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.101 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-copp4 v1 test4 export-copp6 v1 test6 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature copp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 0 10 2.2.2.104 vrf v1 sou lo0 r1 tping 0 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 2.2.2.101 vrf v1 sou lo0 r4 tping 0 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl002.tst000066400000000000000000000233611471627602100170310ustar00rootroot00000000000000description p4lang: ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl003.tst000066400000000000000000000233621471627602100170330ustar00rootroot00000000000000description p4lang: egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl004.tst000066400000000000000000000247551471627602100170430ustar00rootroot00000000000000description p4lang: nat addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 access-list test4 permit 17 2.2.2.0 255.255.255.0 all 2.2.2.0 255.255.255.0 all permit 6 2.2.2.0 255.255.255.0 all 2.2.2.0 255.255.255.0 all deny all any all any all exit access-list test6 permit 17 4321:: ffff:: all 4321:: ffff:: all permit 6 4321:: ffff:: all 4321:: ffff:: all deny all any all any all exit ipv4 nat v1 srclist test4 interface lo0 ipv6 nat v1 srclist test6 interface lo0 ! addother r2 controller r1 v9 9080 - feature nat int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 pool p4 3.3.3.1 0.0.0.1 254 int di1 enc ppp vrf for v1 ipv4 addr 3.3.3.0 255.255.255.255 ppp ip4cp local 3.3.3.0 ipv4 pool p4 ppp ip4cp open exit server pckoudp pou clone di1 port 4552 vrf v1 exit server pckotcp pou clone di1 port 4552 vrf v1 exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v4 rd 1:1 exit vrf def v5 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 proxy-profile p1 vrf v1 sou lo0 exit int di1 enc ppp vrf for v2 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di1 int di1 proxy p1 tar 2.2.2.105 vcid 4552 prot pckoudp exit int di2 enc ppp vrf for v3 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 int di2 proxy p1 tar 4321::105 vcid 4552 prot pckoudp exit int di3 enc ppp vrf for v4 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 int di3 proxy p1 tar 2.2.2.105 vcid 4552 prot pckotcp exit int di4 enc ppp vrf for v5 ipv4 addr 3.3.3.3 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di4 int di4 proxy p1 tar 4321::105 vcid 4552 prot pckotcp exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 3.3.3.0 vrf v2 r6 tping 100 10 3.3.3.0 vrf v3 r6 tping 100 10 3.3.3.0 vrf v4 r6 tping 100 10 3.3.3.0 vrf v5 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 0 10 2.2.2.106 vrf v1 sou lo0 r5 tping 0 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.0 vrf v2 r6 tping 100 10 3.3.3.0 vrf v3 r6 tping 100 10 3.3.3.0 vrf v4 r6 tping 100 10 3.3.3.0 vrf v5 r1 dping sdn . r6 3.3.3.0 vrf v2 r1 dping sdn . r6 3.3.3.0 vrf v3 !r1 dping sdn . r6 3.3.3.0 vrf v4 !r1 dping sdn . r6 3.3.3.0 vrf v5 r1 output show ipv4 nat v1 tra r1 output show ipv6 nat v1 tra freeRtr-24.11.16/cfg/p4lang-acl005.tst000066400000000000000000000234221471627602100170320ustar00rootroot00000000000000description p4lang: vlan ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl006.tst000066400000000000000000000234231471627602100170340ustar00rootroot00000000000000description p4lang: vlan egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl007.tst000066400000000000000000000161761471627602100170440ustar00rootroot00000000000000description p4lang: bundle ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature acl bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl008.tst000066400000000000000000000161771471627602100170460ustar00rootroot00000000000000description p4lang: bundle egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.105 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature acl bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl009.tst000066400000000000000000000162161471627602100170410ustar00rootroot00000000000000description p4lang: bundle vlan ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature acl bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl010.tst000066400000000000000000000162171471627602100170320ustar00rootroot00000000000000description p4lang: bundle vlan egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.105 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature acl bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl011.tst000066400000000000000000000217761471627602100170410ustar00rootroot00000000000000description p4lang: bridge ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature acl bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl012.tst000066400000000000000000000217771471627602100170430ustar00rootroot00000000000000description p4lang: bridge egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.105 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature acl bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl013.tst000066400000000000000000000220661471627602100170340ustar00rootroot00000000000000description p4lang: vlan bridge ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature acl bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl014.tst000066400000000000000000000220671471627602100170360ustar00rootroot00000000000000description p4lang: vlan bridge egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.105 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature acl bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl015.tst000066400000000000000000000235251471627602100170370ustar00rootroot00000000000000description p4lang: ingress pppoe access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl pppoe int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl016.tst000066400000000000000000000235261471627602100170410ustar00rootroot00000000000000description p4lang: egress pppoe access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn4 p2poe relay di1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl pppoe int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int eth1 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl017.tst000066400000000000000000000235661471627602100170460ustar00rootroot00000000000000description p4lang: ingress vlan pppoe access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 exit int sdn2.111 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl pppoe vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1.111 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl018.tst000066400000000000000000000235671471627602100170500ustar00rootroot00000000000000description p4lang: egress vlan pppoe access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn4 exit int sdn4.111 p2poe relay di1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl pppoe vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int eth1.111 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl019.tst000066400000000000000000000320201471627602100170310ustar00rootroot00000000000000description p4lang: hairpin ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int hair12 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl020.tst000066400000000000000000000320211471627602100170220ustar00rootroot00000000000000description p4lang: hairpin egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl021.tst000066400000000000000000000320421471627602100170260ustar00rootroot00000000000000description p4lang: hairpin vlan ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11.111 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int hair12.111 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl022.tst000066400000000000000000000320431471627602100170300ustar00rootroot00000000000000description p4lang: hairpin vlan egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11.111 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12.111 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl023.tst000066400000000000000000000322371471627602100170360ustar00rootroot00000000000000description p4lang: hairpin pppoe ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit int hair11 p2poe client di1 exit int hair12 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin pppoe int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl024.tst000066400000000000000000000322401471627602100170310ustar00rootroot00000000000000description p4lang: hairpin pppoe egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int hair11 p2poe client di1 exit int hair12 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin pppoe int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl025.tst000066400000000000000000000322611471627602100170350ustar00rootroot00000000000000description p4lang: hairpin vlan pppoe ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit int hair11.111 p2poe client di1 exit int hair12.111 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin pppoe vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl026.tst000066400000000000000000000322621471627602100170370ustar00rootroot00000000000000description p4lang: hairpin vlan pppoe egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int hair11.111 p2poe client di1 exit int hair12.111 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin pppoe vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl027.tst000066400000000000000000000243301471627602100170350ustar00rootroot00000000000000description p4lang: ingress gre access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gre int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl028.tst000066400000000000000000000243311471627602100170370ustar00rootroot00000000000000description p4lang: egress gre access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gre int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl029.tst000066400000000000000000000244011471627602100170360ustar00rootroot00000000000000description p4lang: ingress vlan gre access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gre vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl030.tst000066400000000000000000000244021471627602100170270ustar00rootroot00000000000000description p4lang: egress vlan gre access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gre vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl031.tst000066400000000000000000000242641471627602100170360ustar00rootroot00000000000000description p4lang: ingress l2tp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l2tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl032.tst000066400000000000000000000242651471627602100170400ustar00rootroot00000000000000description p4lang: egress l2tp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l2tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl033.tst000066400000000000000000000243311471627602100170330ustar00rootroot00000000000000description p4lang: ingress vlan l2tp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l2tp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl034.tst000066400000000000000000000243321471627602100170350ustar00rootroot00000000000000description p4lang: egress vlan l2tp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l2tp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl035.tst000066400000000000000000000243341471627602100170400ustar00rootroot00000000000000description p4lang: ingress ipip access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl ipip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl036.tst000066400000000000000000000243351471627602100170420ustar00rootroot00000000000000description p4lang: egress ipip access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl ipip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl037.tst000066400000000000000000000244051471627602100170410ustar00rootroot00000000000000description p4lang: ingress vlan ipip access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl ipip vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl038.tst000066400000000000000000000244061471627602100170430ustar00rootroot00000000000000description p4lang: egress vlan ipip access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl ipip vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl039.tst000066400000000000000000000234061471627602100170430ustar00rootroot00000000000000description p4lang: ingress common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-common-in test4 ipv6 access-group-common-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl040.tst000066400000000000000000000234071471627602100170340ustar00rootroot00000000000000description p4lang: egress common access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-common-out test4 ipv6 access-group-common-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl041.tst000066400000000000000000000235361471627602100170400ustar00rootroot00000000000000description p4lang: ingress hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit object-group net test4 2.2.2.104 255.255.255.255 2.2.2.106 255.255.255.255 exit object-group net test6 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 obj test4 all obj test4 all permit all any all any all exit access-list test6 deny 58 obj test6 all obj test6 all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl042.tst000066400000000000000000000235371471627602100170420ustar00rootroot00000000000000description p4lang: egress hybrid access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit object-group net test4 2.2.2.104 255.255.255.255 2.2.2.106 255.255.255.255 exit object-group net test6 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 obj test4 all obj test4 all permit all any all any all exit access-list test6 deny 58 obj test6 all obj test6 all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl043.tst000066400000000000000000000235441471627602100170410ustar00rootroot00000000000000description p4lang: ingress hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4a permit 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all exit access-list test6a permit 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4b ipv6 access-group-in test6b exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl044.tst000066400000000000000000000235451471627602100170430ustar00rootroot00000000000000description p4lang: egress hierarchical access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4a permit 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all exit access-list test6a permit 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test4b evaluate deny test4a permit all any all any all exit access-list test6b evaluate deny test6a permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4b ipv6 access-group-out test6b exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl045.tst000066400000000000000000000240621471627602100170370ustar00rootroot00000000000000description p4lang: ingress policer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a1 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act pol access-rate 81920 match access a1 seq 20 act trans exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena service-policy-in p1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route qos int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl046.tst000066400000000000000000000240621471627602100170400ustar00rootroot00000000000000description p4lang: egress policer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a1 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act pol access-rate 81920 match access a1 seq 20 act trans exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena service-policy-out p1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route qos int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl047.tst000066400000000000000000000241231471627602100170370ustar00rootroot00000000000000description p4lang: vlan ingress policer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a1 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act pol access-rate 81920 match access a1 seq 20 act trans exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena service-policy-in p1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan qos int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl048.tst000066400000000000000000000241231471627602100170400ustar00rootroot00000000000000description p4lang: vlan egress policer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a1 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act pol access-rate 81920 match access a1 seq 20 act trans exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena service-policy-out p1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan qos int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl049.tst000066400000000000000000000243301471627602100170410ustar00rootroot00000000000000description p4lang: transmit flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a4 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all exit access-list a6 permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p4 seq 10 act trans match access-group a4 exit policy-map p6 seq 10 act trans match access-group a6 exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route flwspc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl050.tst000066400000000000000000000240601471627602100170310ustar00rootroot00000000000000description p4lang: drop flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a4 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all exit access-list a6 permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p4 seq 10 act drop match access-group a4 exit policy-map p6 seq 10 act drop match access-group a6 exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route flwspc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 0-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 0-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl051.tst000066400000000000000000000243751471627602100170430ustar00rootroot00000000000000description p4lang: policer flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a4 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all exit access-list a6 permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p4 seq 10 act pol access-rate 81920 match access-group a4 exit policy-map p6 seq 10 act pol access-rate 81920 match access-group a6 exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route flwspc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl052.tst000066400000000000000000000243761471627602100170450ustar00rootroot00000000000000description p4lang: priority flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a4 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all exit access-list a6 permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p4 seq 10 act pri access-rate 81920 match access-group a4 exit policy-map p6 seq 10 act pri access-rate 81920 match access-group a6 exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route flwspc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl053.tst000066400000000000000000000243301471627602100170340ustar00rootroot00000000000000description p4lang: ingress amt access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode amt vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl amt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode amt vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl054.tst000066400000000000000000000243311471627602100170360ustar00rootroot00000000000000description p4lang: egress amt access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode amt vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl amt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode amt vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl055.tst000066400000000000000000000255151471627602100170440ustar00rootroot00000000000000description p4lang: ingress reflexive access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list dyn4i hidden exit access-list dyn4o hidden exit access-list dyn6i hidden exit access-list dyn6o hidden exit access-list test4o seq 1 permit 1 any all any all seq 10 evaluate permit dyn4o seq 20 deny all any all any all exit access-list test6o seq 1 permit 58 any all any all seq 10 evaluate permit dyn6o seq 20 deny all any all any all exit access-list test4i seq 10 evaluate permit dyn4i seq 20 permit all any all any all seq 20 reflect dyn4i dyn4o 30000 exit access-list test6i seq 10 evaluate permit dyn6i seq 20 permit all any all any all seq 20 reflect dyn6i dyn6o 30000 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4i ipv6 access-group-in test6i ipv4 access-group-out test4o ipv6 access-group-out test6o exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature racl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl056.tst000066400000000000000000000255141471627602100170440ustar00rootroot00000000000000description p4lang: egress reflexive access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list dyn4i hidden exit access-list dyn4o hidden exit access-list dyn6i hidden exit access-list dyn6o hidden exit access-list test4i seq 1 permit 1 any all any all seq 10 evaluate permit dyn4i seq 20 deny all any all any all exit access-list test6i seq 1 permit 58 any all any all seq 10 evaluate permit dyn6i seq 20 deny all any all any all exit access-list test4o seq 10 evaluate permit dyn4o seq 20 permit all any all any all seq 20 reflect dyn4o dyn4i 30000 exit access-list test6o seq 10 evaluate permit dyn6o seq 20 permit all any all any all seq 20 reflect dyn6o dyn6i 30000 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4i ipv6 access-group-in test6i ipv4 access-group-out test4o ipv6 access-group-out test6o exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature racl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl057.tst000066400000000000000000000244721471627602100170470ustar00rootroot00000000000000description p4lang: interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl058.tst000066400000000000000000000244731471627602100170510ustar00rootroot00000000000000description p4lang: interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl059.tst000066400000000000000000000245331471627602100170470ustar00rootroot00000000000000description p4lang: vlan interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl060.tst000066400000000000000000000245341471627602100170400ustar00rootroot00000000000000description p4lang: vlan interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl061.tst000066400000000000000000000231421471627602100170330ustar00rootroot00000000000000description p4lang: bridge interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 resend ipv6 resend ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature bridge inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl062.tst000066400000000000000000000231421471627602100170340ustar00rootroot00000000000000description p4lang: bridge interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 resend ipv6 resend ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature bridge inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl063.tst000066400000000000000000000246371471627602100170470ustar00rootroot00000000000000description p4lang: pppoe interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl064.tst000066400000000000000000000246361471627602100170470ustar00rootroot00000000000000description p4lang: pppoe interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn4 p2poe relay di1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::106 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int eth1 p2poe client di1 exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r6 tping 100 10 3.3.1.1 vrf v1 r6 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r6 3.3.1.1 vrf v1 r1 dping sdn . r6 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl065.tst000066400000000000000000000254421471627602100170440ustar00rootroot00000000000000description p4lang: gre interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl066.tst000066400000000000000000000254411471627602100170440ustar00rootroot00000000000000description p4lang: gre interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl067.tst000066400000000000000000000253761471627602100170540ustar00rootroot00000000000000description p4lang: l2tp interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl068.tst000066400000000000000000000253751471627602100170540ustar00rootroot00000000000000description p4lang: l2tp interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl069.tst000066400000000000000000000254421471627602100170500ustar00rootroot00000000000000description p4lang: interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl070.tst000066400000000000000000000255031471627602100170360ustar00rootroot00000000000000description p4lang: vlan interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl071.tst000066400000000000000000000240571471627602100170420ustar00rootroot00000000000000description p4lang: bridge interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature bridge vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl072.tst000066400000000000000000000256061471627602100170440ustar00rootroot00000000000000description p4lang: pppoe interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl073.tst000066400000000000000000000264111471627602100170400ustar00rootroot00000000000000description p4lang: gre interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl074.tst000066400000000000000000000263451471627602100170470ustar00rootroot00000000000000description p4lang: l2tp interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl075.tst000066400000000000000000000254521471627602100170460ustar00rootroot00000000000000description p4lang: interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl076.tst000066400000000000000000000255131471627602100170450ustar00rootroot00000000000000description p4lang: vlan interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl077.tst000066400000000000000000000240671471627602100170510ustar00rootroot00000000000000description p4lang: bridge interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature bridge vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl078.tst000066400000000000000000000256161471627602100170530ustar00rootroot00000000000000description p4lang: pppoe interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl079.tst000066400000000000000000000264211471627602100170470ustar00rootroot00000000000000description p4lang: gre interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl080.tst000066400000000000000000000263551471627602100170450ustar00rootroot00000000000000description p4lang: l2tp interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl081.tst000066400000000000000000000244471471627602100170460ustar00rootroot00000000000000description p4lang: ingress gtp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gtp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gtp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit ipv4 pool p4 1.1.1.111 0.0.0.1 111 ipv6 pool p6 1234:1::111 ::1 111 int di1 enc iponly vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv4 pool p4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 pool p6 exit server gtp gtp clone di1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl082.tst000066400000000000000000000244501471627602100170410ustar00rootroot00000000000000description p4lang: egress gtp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gtp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gtp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit ipv4 pool p4 1.1.1.111 0.0.0.1 111 ipv6 pool p6 1234:1::111 ::1 111 int di1 enc iponly vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv4 pool p4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 pool p6 exit server gtp gtp clone di1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl083.tst000066400000000000000000000242561471627602100170460ustar00rootroot00000000000000description p4lang: ingress l2tp3 access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l3tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl084.tst000066400000000000000000000242571471627602100170500ustar00rootroot00000000000000description p4lang: egress l2tp3 access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l3tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl085.tst000066400000000000000000000243271471627602100170470ustar00rootroot00000000000000description p4lang: ingress vlan l2tp3 access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l3tp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1.222 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl086.tst000066400000000000000000000243301471627602100170420ustar00rootroot00000000000000description p4lang: egress vlan l2tp3 access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l3tp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1.222 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl087.tst000066400000000000000000000253701471627602100170500ustar00rootroot00000000000000description p4lang: l2tp3 interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl088.tst000066400000000000000000000253671471627602100170570ustar00rootroot00000000000000description p4lang: l2tp3 interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl089.tst000066400000000000000000000263371471627602100170560ustar00rootroot00000000000000description p4lang: l2tp3 interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl090.tst000066400000000000000000000263471471627602100170470ustar00rootroot00000000000000description p4lang: l2tp3 interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl091.tst000066400000000000000000000243341471627602100170420ustar00rootroot00000000000000description p4lang: ingress tmux access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl tmux int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl092.tst000066400000000000000000000243351471627602100170440ustar00rootroot00000000000000description p4lang: egress tmux access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl tmux int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl093.tst000066400000000000000000000244051471627602100170430ustar00rootroot00000000000000description p4lang: ingress vlan tmux access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl tmux vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl094.tst000066400000000000000000000244061471627602100170450ustar00rootroot00000000000000description p4lang: egress vlan tmux access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl tmux vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl095.tst000066400000000000000000000254461471627602100170530ustar00rootroot00000000000000description p4lang: tmux interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl096.tst000066400000000000000000000254451471627602100170530ustar00rootroot00000000000000description p4lang: tmux interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl097.tst000066400000000000000000000264151471627602100170520ustar00rootroot00000000000000description p4lang: tmux interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl098.tst000066400000000000000000000264251471627602100170540ustar00rootroot00000000000000description p4lang: tmux interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun2 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun3 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 2.2.2.199 vrf v1 r4 tping 100 10 4321::199 vrf v1 r4 tping 0 10 2.2.2.199 vrf v1 sou lo0 r4 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl099.tst000066400000000000000000000235001471627602100170440ustar00rootroot00000000000000description p4lang: qinq ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl100.tst000066400000000000000000000235011471627602100170240ustar00rootroot00000000000000description p4lang: qinq egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl101.tst000066400000000000000000000162701471627602100170320ustar00rootroot00000000000000description p4lang: bundle qinq ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature acl bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl102.tst000066400000000000000000000162711471627602100170340ustar00rootroot00000000000000description p4lang: bundle qinq egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.105 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature acl bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl103.tst000066400000000000000000000222221471627602100170260ustar00rootroot00000000000000description p4lang: qinq bridge ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature acl bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl104.tst000066400000000000000000000222231471627602100170300ustar00rootroot00000000000000description p4lang: qinq bridge egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.105 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-out test4 ipv6 access-group-out test6 ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature acl bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl105.tst000066400000000000000000000236441471627602100170410ustar00rootroot00000000000000description p4lang: ingress qinq pppoe access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl pppoe vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1.111 exit int eth1.111.222 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl106.tst000066400000000000000000000236451471627602100170430ustar00rootroot00000000000000description p4lang: egress qinq pppoe access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int di1 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 p2poe relay di1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl pppoe vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int eth1.111 exit int eth1.111.222 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl107.tst000066400000000000000000000321241471627602100170340ustar00rootroot00000000000000description p4lang: hairpin qinq ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11.111 exit int hair11.111.222 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int hair12.111 exit int hair12.111.222 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl108.tst000066400000000000000000000321251471627602100170360ustar00rootroot00000000000000description p4lang: hairpin qinq egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11.111 exit int hair11.111.222 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12.111 exit int hair12.111.222 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl hairpin vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl109.tst000066400000000000000000000244671471627602100170510ustar00rootroot00000000000000description p4lang: ingress qinq gre access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222.333 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gre vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222.333 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl110.tst000066400000000000000000000244701471627602100170330ustar00rootroot00000000000000description p4lang: egress qinq gre access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222.333 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl gre vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222.333 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl111.tst000066400000000000000000000244131471627602100170310ustar00rootroot00000000000000description p4lang: ingress qinq l2tp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222.333 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l2tp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl112.tst000066400000000000000000000244141471627602100170330ustar00rootroot00000000000000description p4lang: egress qinq l2tp access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222.333 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl l2tp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl113.tst000066400000000000000000000242011471627602100170260ustar00rootroot00000000000000description p4lang: qinq ingress policer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a1 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act pol access-rate 81920 match access a1 seq 20 act trans exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena service-policy-in p1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan qos int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl114.tst000066400000000000000000000242011471627602100170270ustar00rootroot00000000000000description p4lang: qinq egress policer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list a1 permit 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act pol access-rate 81920 match access a1 seq 20 act trans exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena service-policy-out p1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan qos int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 100 10 4321::105 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 2.2.2.106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r4 tping 5-95 10 4321::106 vrf v1 sou lo0 rep 100 tim 250 siz 250 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl115.tst000066400000000000000000000246111471627602100170350ustar00rootroot00000000000000description p4lang: qinq interface inspection with egress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-tx allow-list test4 ipv6 inspect drop-tx allow-list test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 3.3.1.2 vrf v1 r3 tping 0 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl116.tst000066400000000000000000000246121471627602100170370ustar00rootroot00000000000000description p4lang: qinq interface inspection with ingress drop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit access-list test4 seq 10 permit 1 any all any all exit access-list test6 seq 10 permit 58 any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 inspect drop-rx allow-list test4 ipv6 inspect drop-rx allow-list test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan inspect int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 3.3.1.1 vrf v1 r4 tping 0 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl117.tst000066400000000000000000000255611471627602100170440ustar00rootroot00000000000000description p4lang: qinq interface verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify rx ipv6 verify rx exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl118.tst000066400000000000000000000255711471627602100170460ustar00rootroot00000000000000description p4lang: qinq interface loose verify source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 verify any ipv6 verify any exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan vrfysrc int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ int eth2 eth 0000.0000.3333 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.1 255.255.255.0 ipv6 addr 1234:99::1 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.1 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::104 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.1 255.255.255.0 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.199 255.255.255.255 1.1.99.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:99::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ int eth2 eth 0000.0000.4444 $7b$ $7a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.199 255.255.255.255 ipv6 addr 4321::199 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.99.2 255.255.255.0 ipv6 addr 1234:99::2 ffff:ffff:: exit int tun1 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.1.2 255.255.255.0 exit int tun2 tun sou lo0 tun dest 4321::103 tun vrf v1 tun key 2554 tun mod pckoudp vrf for v1 ipv4 addr 3.3.2.2 255.255.255.0 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r4 tping 100 10 3.3.1.1 vrf v1 r4 tping 100 10 3.3.2.1 vrf v1 r3 tping 100 10 3.3.1.2 vrf v1 r3 tping 100 10 3.3.2.2 vrf v1 r3 tping 100 10 2.2.2.199 vrf v1 r3 tping 100 10 4321::199 vrf v1 r3 tping 0 10 2.2.2.199 vrf v1 sou lo0 r3 tping 0 10 4321::199 vrf v1 sou lo0 r1 dping sdn . r4 3.3.1.1 vrf v1 r1 dping sdn . r4 3.3.2.1 vrf v1 freeRtr-24.11.16/cfg/p4lang-acl119.tst000066400000000000000000000126441471627602100170440ustar00rootroot00000000000000description p4lang: bridge filter access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 bridge-filter ipv4in test4 bridge-filter ipv6in test6 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature acl bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-acl120.tst000066400000000000000000000127341471627602100170340ustar00rootroot00000000000000description p4lang: vlan bridge filter access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit access-list test4 deny 1 2.2.2.105 255.255.255.255 all 2.2.2.104 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 bridge-filter ipv4in test4 bridge-filter ipv6in test6 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature acl bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.106 vrf v1 sou lo0 r1 dping sdn . r4 4321::106 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt001.tst000066400000000000000000000232621471627602100174320ustar00rootroot00000000000000description p4lang: macsec with des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt002.tst000066400000000000000000000232651471627602100174360ustar00rootroot00000000000000description p4lang: macsec with 3des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher 3des hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher 3des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt003.tst000066400000000000000000000233041471627602100174310ustar00rootroot00000000000000description p4lang: macsec with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes128cbc hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes128cbc hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt004.tst000066400000000000000000000233041471627602100174320ustar00rootroot00000000000000description p4lang: macsec with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes192cbc hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes192cbc hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt005.tst000066400000000000000000000233041471627602100174330ustar00rootroot00000000000000description p4lang: macsec with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes256cbc hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes256cbc hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt006.tst000066400000000000000000000232621471627602100174370ustar00rootroot00000000000000description p4lang: macsec with md5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt007.tst000066400000000000000000000232651471627602100174430ustar00rootroot00000000000000description p4lang: macsec with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha1 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash sha1 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt008.tst000066400000000000000000000232731471627602100174430ustar00rootroot00000000000000description p4lang: macsec with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha256 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash sha256 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt009.tst000066400000000000000000000232731471627602100174440ustar00rootroot00000000000000description p4lang: macsec with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt010.tst000066400000000000000000000232671471627602100174370ustar00rootroot00000000000000description p4lang: macsec over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt011.tst000066400000000000000000000233121471627602100174270ustar00rootroot00000000000000description p4lang: macsec over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 exit int sdn2.111 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt012.tst000066400000000000000000000170561471627602100174400ustar00rootroot00000000000000description p4lang: macsec over bundle vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester replay 0 exit bundle 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 macsec ips vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester replay 0 exit int bun1.111 macsec ips vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt013.tst000066400000000000000000000241201471627602100174270ustar00rootroot00000000000000description p4lang: macsec over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int tun1 macsec ips tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int tun1 macsec ips tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt014.tst000066400000000000000000000234441471627602100174400ustar00rootroot00000000000000description p4lang: macsec over pppoe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int di1 macsec ips enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int di1 macsec ips enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt015.tst000066400000000000000000000240541471627602100174370ustar00rootroot00000000000000description p4lang: macsec over l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int virt1 macsec ips enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int di1 macsec ips enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt016.tst000066400000000000000000000315651471627602100174450ustar00rootroot00000000000000description p4lang: macsec over hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int hair11 macsec ips vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12 macsec ips vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt017.tst000066400000000000000000000237071471627602100174450ustar00rootroot00000000000000description p4lang: macsec ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt018.tst000066400000000000000000000237101471627602100174400ustar00rootroot00000000000000description p4lang: macsec egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn4 macsec ips vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt019.tst000066400000000000000000000237501471627602100174450ustar00rootroot00000000000000description p4lang: macsec vlan ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2.111 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt020.tst000066400000000000000000000237511471627602100174360ustar00rootroot00000000000000description p4lang: macsec vlan egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn4.111 macsec ips vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 macsec ips vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt021.tst000066400000000000000000000230411471627602100174270ustar00rootroot00000000000000description p4lang: ipsec with des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt022.tst000066400000000000000000000230431471627602100174320ustar00rootroot00000000000000description p4lang: ipsec with 3des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher 3des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher 3des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt023.tst000066400000000000000000000230621471627602100174340ustar00rootroot00000000000000description p4lang: ipsec with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128cbc hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128cbc hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt024.tst000066400000000000000000000230621471627602100174350ustar00rootroot00000000000000description p4lang: ipsec with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192cbc hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192cbc hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt025.tst000066400000000000000000000230621471627602100174360ustar00rootroot00000000000000description p4lang: ipsec with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256cbc hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256cbc hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt026.tst000066400000000000000000000230621471627602100174370ustar00rootroot00000000000000description p4lang: ipsec with md5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt027.tst000066400000000000000000000230671471627602100174450ustar00rootroot00000000000000description p4lang: ipsec with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha1 prf sha1 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha1 prf sha1 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt028.tst000066400000000000000000000231011471627602100174330ustar00rootroot00000000000000description p4lang: ipsec with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha256 prf sha256 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha256 prf sha256 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt029.tst000066400000000000000000000231011471627602100174340ustar00rootroot00000000000000description p4lang: ipsec with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha512 prf sha512 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash sha512 prf sha512 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt030.tst000066400000000000000000000230421471627602100174300ustar00rootroot00000000000000description p4lang: ipv4 over ipsec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt031.tst000066400000000000000000000230631471627602100174340ustar00rootroot00000000000000description p4lang: ipv6 over ipsec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt032.tst000066400000000000000000000230421471627602100174320ustar00rootroot00000000000000description p4lang: ipsec over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt033.tst000066400000000000000000000230511471627602100174330ustar00rootroot00000000000000description p4lang: ipsec over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt034.tst000066400000000000000000000234751471627602100174460ustar00rootroot00000000000000description p4lang: ipsec over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt035.tst000066400000000000000000000236441471627602100174450ustar00rootroot00000000000000description p4lang: ipsec over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt036.tst000066400000000000000000000231151471627602100174370ustar00rootroot00000000000000description p4lang: ipsec over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9999::2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9999::1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt037.tst000066400000000000000000000236241471627602100174450ustar00rootroot00000000000000description p4lang: ipv4 over ipsec with ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt038.tst000066400000000000000000000236251471627602100174470ustar00rootroot00000000000000description p4lang: ipv4 over ipsec with egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt039.tst000066400000000000000000000236451471627602100174520ustar00rootroot00000000000000description p4lang: ipv6 over ipsec with ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt040.tst000066400000000000000000000236461471627602100174430ustar00rootroot00000000000000description p4lang: ipv6 over ipsec with egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv6 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt041.tst000066400000000000000000000230361471627602100174350ustar00rootroot00000000000000description p4lang: ipsec with ike1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role resp isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role init isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt042.tst000066400000000000000000000230601471627602100174330ustar00rootroot00000000000000description p4lang: ipsec with ike2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role resp isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 prf md5 seconds 3600 bytes 1024000 key tester role init isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt043.tst000066400000000000000000000260451471627602100174420ustar00rootroot00000000000000description p4lang: openvpn with des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt044.tst000066400000000000000000000260501471627602100174370ustar00rootroot00000000000000description p4lang: openvpn with 3des addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher 3des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher 3des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt045.tst000066400000000000000000000260671471627602100174500ustar00rootroot00000000000000description p4lang: openvpn with aes128cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes128cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes128cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt046.tst000066400000000000000000000260671471627602100174510ustar00rootroot00000000000000description p4lang: openvpn with aes192cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes192cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes192cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt047.tst000066400000000000000000000260671471627602100174520ustar00rootroot00000000000000description p4lang: openvpn with aes256cbc addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes256cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes256cbc hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt048.tst000066400000000000000000000260451471627602100174470ustar00rootroot00000000000000description p4lang: openvpn with md5 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt049.tst000066400000000000000000000260501471627602100174440ustar00rootroot00000000000000description p4lang: openvpn with sha1 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash sha1 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash sha1 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt050.tst000066400000000000000000000260561471627602100174420ustar00rootroot00000000000000description p4lang: openvpn with sha256 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash sha256 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash sha256 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt051.tst000066400000000000000000000260561471627602100174430ustar00rootroot00000000000000description p4lang: openvpn with sha512 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash sha512 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash sha512 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt052.tst000066400000000000000000000260461471627602100174430ustar00rootroot00000000000000description p4lang: openvpn over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt053.tst000066400000000000000000000260551471627602100174440ustar00rootroot00000000000000description p4lang: openvpn over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt054.tst000066400000000000000000000265021471627602100174420ustar00rootroot00000000000000description p4lang: openvpn over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt055.tst000066400000000000000000000266511471627602100174500ustar00rootroot00000000000000description p4lang: openvpn over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt056.tst000066400000000000000000000265611471627602100174510ustar00rootroot00000000000000description p4lang: openvpn over asymmetric ports addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun prot ips tunnel key 1234 4321 tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun prot ips tunnel key 4321 1234 tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt057.tst000066400000000000000000000266121471627602100174470ustar00rootroot00000000000000description p4lang: openvpn with ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt058.tst000066400000000000000000000266131471627602100174510ustar00rootroot00000000000000description p4lang: openvpn with egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt059.tst000066400000000000000000000242621471627602100174500ustar00rootroot00000000000000description p4lang: wireguard over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt060.tst000066400000000000000000000242701471627602100174370ustar00rootroot00000000000000description p4lang: wireguard over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt061.tst000066400000000000000000000246171471627602100174450ustar00rootroot00000000000000description p4lang: wireguard over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt062.tst000066400000000000000000000247651471627602100174520ustar00rootroot00000000000000description p4lang: wireguard over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt063.tst000066400000000000000000000243261471627602100174440ustar00rootroot00000000000000description p4lang: wireguard over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt064.tst000066400000000000000000000243521471627602100174440ustar00rootroot00000000000000description p4lang: wireguard over asymmetric ports addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tunnel key 1234 4321 tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tunnel key 4321 1234 tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt065.tst000066400000000000000000000250261471627602100174440ustar00rootroot00000000000000description p4lang: wireguard with ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.103 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt066.tst000066400000000000000000000250271471627602100174460ustar00rootroot00000000000000description p4lang: wireguard with egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.106 255.255.255.255 all 2.2.2.103 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt067.tst000066400000000000000000000247741471627602100174570ustar00rootroot00000000000000description p4lang: multicast routing over macsec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 1.1.4.2 ipv6 multi v1 join ff06::1 1234:4::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 1.1.4.2 ipv6 multi v1 join ff06::1 1234:4::2 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 1.1.4.2 ipv6 multi v1 join ff06::1 1234:4::2 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou eth1 multi r6 tping 300 5 ff06::1 vrf v1 sou eth1 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou eth1 r1 dping sdn . r6 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/p4lang-crypt068.tst000066400000000000000000000250351471627602100174470ustar00rootroot00000000000000description p4lang: multicast routing over vlan macsec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 exit int sdn2.111 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute vlan macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 1.1.4.2 ipv6 multi v1 join ff06::1 1234:4::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 1.1.4.2 ipv6 multi v1 join ff06::1 1234:4::2 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 1.1.4.2 ipv6 multi v1 join ff06::1 1234:4::2 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.4.2 ipv6 multi static ff06::1 1234:4::2 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou eth1 multi r6 tping 300 5 ff06::1 vrf v1 sou eth1 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou eth1 r1 dping sdn . r6 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/p4lang-crypt069.tst000066400000000000000000000276541471627602100174610ustar00rootroot00000000000000description p4lang: replay window with openvpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 512 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v3 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit hair 1 ether exit int hair11 vrf for v3 ipv4 addr 1.1.9.2 255.255.255.0 ipv6 addr 1234:9::2 ffff:ffff:: ipv6 ena exit int hair12 vrf for v1 ipv4 addr 1.1.9.1 255.255.255.0 ipv6 addr 1234:9::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic -1 export-port hair12 dynamic -1 export-port tun1 dynamic vrf v9 exit ipv4 route v3 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v3 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v3 0.0.0.0 0.0.0.0 1.1.9.1 ipv6 route v3 :: :: 1234:9::1 ipv4 route v3 1.1.1.2 255.255.255.255 1.1.1.2 ipv6 route v3 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 1.1.1.0 255.255.255.0 1.1.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.9.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 1234:1:: ffff:ffff:: 1234:9::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:9::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route hairpin openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 512 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.9.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:9:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v3 r1 tping 0 10 1234:1::2 vrf v3 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt070.tst000066400000000000000000000260701471627602100174400ustar00rootroot00000000000000description p4lang: replay window with wireguard addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 512 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v3 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit hair 1 ether exit int hair11 vrf for v3 ipv4 addr 1.1.9.2 255.255.255.0 ipv6 addr 1234:9::2 ffff:ffff:: ipv6 ena exit int hair12 vrf for v1 ipv4 addr 1.1.9.1 255.255.255.0 ipv6 addr 1234:9::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic -1 export-port hair12 dynamic -1 export-port tun1 dynamic vrf v9 exit ipv4 route v3 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v3 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v3 0.0.0.0 0.0.0.0 1.1.9.1 ipv6 route v3 :: :: 1234:9::1 ipv4 route v3 1.1.1.2 255.255.255.255 1.1.1.2 ipv6 route v3 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 1.1.1.0 255.255.255.0 1.1.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.9.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 1234:1:: ffff:ffff:: 1234:9::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:9::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route hairpin wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 512 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.9.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:9:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v3 r1 tping 0 10 1234:1::2 vrf v3 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt071.tst000066400000000000000000000260671471627602100174470ustar00rootroot00000000000000description p4lang: openvpn with aes128cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes128cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes128cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt072.tst000066400000000000000000000260671471627602100174500ustar00rootroot00000000000000description p4lang: openvpn with aes192cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes192cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes192cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt073.tst000066400000000000000000000260671471627602100174510ustar00rootroot00000000000000description p4lang: openvpn with aes256cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes256cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes256cfb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt074.tst000066400000000000000000000260671471627602100174520ustar00rootroot00000000000000description p4lang: openvpn with aes128ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes128ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes128ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt075.tst000066400000000000000000000260671471627602100174530ustar00rootroot00000000000000description p4lang: openvpn with aes192ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes192ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes192ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt076.tst000066400000000000000000000260671471627602100174540ustar00rootroot00000000000000description p4lang: openvpn with aes256ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher aes256ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher aes256ecb hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt077.tst000066400000000000000000000260561471627602100174530ustar00rootroot00000000000000description p4lang: openvpn with sha224 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash sha224 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash sha224 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt078.tst000066400000000000000000000260561471627602100174540ustar00rootroot00000000000000description p4lang: openvpn with sha384 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash sha384 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash sha384 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt079.tst000066400000000000000000000233041471627602100174460ustar00rootroot00000000000000description p4lang: macsec with aes128cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes128cfb hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes128cfb hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt080.tst000066400000000000000000000233041471627602100174360ustar00rootroot00000000000000description p4lang: macsec with aes192cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes192cfb hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes192cfb hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt081.tst000066400000000000000000000233041471627602100174370ustar00rootroot00000000000000description p4lang: macsec with aes256cfb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes256cfb hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes256cfb hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt082.tst000066400000000000000000000233041471627602100174400ustar00rootroot00000000000000description p4lang: macsec with aes128ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes128ecb hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes128ecb hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt083.tst000066400000000000000000000233041471627602100174410ustar00rootroot00000000000000description p4lang: macsec with aes192ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes192ecb hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes192ecb hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt084.tst000066400000000000000000000233041471627602100174420ustar00rootroot00000000000000description p4lang: macsec with aes256ecb addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes256ecb hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes256ecb hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt085.tst000066400000000000000000000232731471627602100174500ustar00rootroot00000000000000description p4lang: macsec with sha224 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha224 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash sha224 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt086.tst000066400000000000000000000232731471627602100174510ustar00rootroot00000000000000description p4lang: macsec with sha384 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha384 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash sha384 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt087.tst000066400000000000000000000260631471627602100174520ustar00rootroot00000000000000description p4lang: openvpn with none encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher none hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher none hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt088.tst000066400000000000000000000260551471627602100174540ustar00rootroot00000000000000description p4lang: openvpn with none hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash none key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash none key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt089.tst000066400000000000000000000233001471627602100174430ustar00rootroot00000000000000description p4lang: macsec with none encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher none hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher none hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt090.tst000066400000000000000000000232721471627602100174430ustar00rootroot00000000000000description p4lang: macsec with none hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash none key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash none key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt091.tst000066400000000000000000000233151471627602100174420ustar00rootroot00000000000000description p4lang: macsec with aes128gcm and hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes128gcm hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes128gcm hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt092.tst000066400000000000000000000233151471627602100174430ustar00rootroot00000000000000description p4lang: macsec with aes192gcm and hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes192gcm hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes192gcm hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt093.tst000066400000000000000000000233151471627602100174440ustar00rootroot00000000000000description p4lang: macsec with aes256gcm and hash addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes256gcm hash md5 key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes256gcm hash md5 key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt094.tst000066400000000000000000000233171471627602100174470ustar00rootroot00000000000000description p4lang: macsec with aes128gcm and aead addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes128gcm hash none key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes128gcm hash none key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt095.tst000066400000000000000000000233171471627602100174500ustar00rootroot00000000000000description p4lang: macsec with aes192gcm and aead addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes192gcm hash none key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes192gcm hash none key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt096.tst000066400000000000000000000233171471627602100174510ustar00rootroot00000000000000description p4lang: macsec with aes256gcm and aead addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher aes256gcm hash none key tester replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher aes256gcm hash none key tester replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt097.tst000066400000000000000000000231671471627602100174550ustar00rootroot00000000000000description p4lang: sgt over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt098.tst000066400000000000000000000232461471627602100174540ustar00rootroot00000000000000description p4lang: sgt over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.222 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1.111 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt099.tst000066400000000000000000000240201471627602100174440ustar00rootroot00000000000000description p4lang: sgt over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 sgt ena tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port tun1 dynamic export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route gre sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 sgt ena service-policy-in p1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt100.tst000066400000000000000000000233221471627602100174270ustar00rootroot00000000000000description p4lang: sgt over pppoe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 p2poe client di1 exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port di1 dynamic export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route pppoe sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt101.tst000066400000000000000000000237431471627602100174370ustar00rootroot00000000000000description p4lang: sgt over l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 sgt ena enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port virt1 dynamic export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route l2tp sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 sgt ena service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt102.tst000066400000000000000000000312361471627602100174340ustar00rootroot00000000000000description p4lang: sgt over hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11 sgt ena vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12 sgt ena vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin route sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt103.tst000066400000000000000000000235221471627602100174340ustar00rootroot00000000000000description p4lang: sgt over macsec over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn1 macsec ips sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt104.tst000066400000000000000000000235711471627602100174410ustar00rootroot00000000000000description p4lang: sgt over macsec over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn1 macsec ips exit int sdn1.111 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route macsec sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips exit int eth1.111 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt105.tst000066400000000000000000000244161471627602100174410ustar00rootroot00000000000000description p4lang: sgt ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all any all sgt 4444 permit all any all any all exit access-list test6 deny all any all any all sgt 4444 permit all any all any all exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route sgt acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act trans match length 300-500 set sgt 4444 seq 20 act trans set sgt 3333 exit int eth1 sgt ena service-policy-out p1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 200 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 200 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 siz 400 r4 tping 0 10 4321::105 vrf v1 sou lo0 siz 400 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 600 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 600 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt106.tst000066400000000000000000000244171471627602100174430ustar00rootroot00000000000000description p4lang: sgt egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all any all sgt 4444 permit all any all any all exit access-list test6 deny all any all any all sgt 4444 permit all any all any all exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route sgt acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act trans match length 300-500 set sgt 4444 seq 20 act trans set sgt 3333 exit int eth1 sgt ena service-policy-out p1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 200 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 200 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 siz 400 r4 tping 0 10 4321::105 vrf v1 sou lo0 siz 400 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 600 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 600 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt107.tst000066400000000000000000000244571471627602100174500ustar00rootroot00000000000000description p4lang: sgt vlan ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all any all sgt 4444 permit all any all any all exit access-list test6 deny all any all any all sgt 4444 permit all any all any all exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route sgt acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act trans match length 300-500 set sgt 4444 seq 20 act trans set sgt 3333 exit int eth1.111 sgt ena service-policy-out p1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 200 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 200 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 siz 400 r4 tping 0 10 4321::105 vrf v1 sou lo0 siz 400 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 600 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 600 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt108.tst000066400000000000000000000244601471627602100174430ustar00rootroot00000000000000description p4lang: sgt vlan egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all any all sgt 4444 permit all any all any all exit access-list test6 deny all any all any all sgt 4444 permit all any all any all exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route sgt acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act trans match length 300-500 set sgt 4444 seq 20 act trans set sgt 3333 exit int eth1 sgt ena service-policy-out p1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 200 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 200 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 siz 400 r4 tping 0 10 4321::105 vrf v1 sou lo0 siz 400 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 600 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 600 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt109.tst000066400000000000000000000240461471627602100174440ustar00rootroot00000000000000description p4lang: macsec over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int virt1 macsec ips enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int virt1 macsec ips enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt110.tst000066400000000000000000000237461471627602100174420ustar00rootroot00000000000000description p4lang: sgt over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 sgt ena enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port virt1 dynamic export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route l3tp sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 sgt ena enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt111.tst000066400000000000000000000241241471627602100174320ustar00rootroot00000000000000description p4lang: macsec over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int tun1 macsec ips tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int tun1 macsec ips tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt112.tst000066400000000000000000000240241471627602100174320ustar00rootroot00000000000000description p4lang: sgt over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 sgt ena tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port tun1 dynamic export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route tmux sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 sgt ena service-policy-in p1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt113.tst000066400000000000000000000227641471627602100174440ustar00rootroot00000000000000description p4lang: packout on port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 api-stat interconnect eth2 export-vrf v1 export-port sdn1 1 -2 export-port sdn2 2 -2 export-port sdn3 3 -2 export-port sdn4 4 -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt114.tst000066400000000000000000000230251471627602100174340ustar00rootroot00000000000000description p4lang: packout on vlan port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 api-stat interconnect eth2 export-vrf v1 export-port sdn1 1 -2 export-port sdn2 2 -2 export-port sdn3 3 -2 export-port sdn4 4 -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt115.tst000066400000000000000000000232661471627602100174440ustar00rootroot00000000000000description p4lang: packout on macsec port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int sdn1 macsec ips vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 api-stat interconnect eth2 export-vrf v1 export-port sdn1 1 -2 export-port sdn2 2 -2 export-port sdn3 3 -2 export-port sdn4 4 -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout macsec route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int bvi1 macsec ips vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt116.tst000066400000000000000000000233271471627602100174430ustar00rootroot00000000000000description p4lang: packout on macsec vlan port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int sdn1 exit int sdn1.111 macsec ips vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 api-stat interconnect eth2 export-vrf v1 export-port sdn1 1 -2 export-port sdn2 2 -2 export-port sdn3 3 -2 export-port sdn4 4 -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout macsec vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 bridge-gr 1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int bvi1 macsec ips vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt117.tst000066400000000000000000000230331471627602100174360ustar00rootroot00000000000000description p4lang: ipsec with packout addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt118.tst000066400000000000000000000260371471627602100174460ustar00rootroot00000000000000description p4lang: openvpn with packout addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout route openvpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips cipher des hash md5 key 22f9c676f655336c3f3188b8d9cc759903733212ed77231bc38126b6000b043f1f56d07b885f4d00676afd8fea25c88fa917294d8f1e89b84922d5d2556de977beac2f254ba2b67477131f4d4708cb509f4c9f784780465462e502d29183665bbd5eff6bdc27370f05aa1d856b497a1f7ef5f20bad7aff155619a4b09849fab814ee76e7121c2adf85326db4c1cce132200ca3e4d03930f765ba96a8c46f1ab374beb73e79093d60879a8d9585f2feb987d89e65a33ef3857f3b09df80a2403f6c50dc50439e258d61c7dac377514a8d281c10feeea79ae7b063064aec3989b4d867bb24182f7d007ad41284ee6577053dae2cc289dd39e66cd8fe7089b7015f exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode openvpn vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt119.tst000066400000000000000000000242531471627602100174450ustar00rootroot00000000000000description p4lang: wireguard with packout addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout route wireguard int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt120.tst000066400000000000000000000236151471627602100174360ustar00rootroot00000000000000description p4lang: gre with packout addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout route gre int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt121.tst000066400000000000000000000233701471627602100174350ustar00rootroot00000000000000description p4lang: macsec over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 exit int eth1.111.222 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt122.tst000066400000000000000000000171341471627602100174370ustar00rootroot00000000000000description p4lang: macsec over bundle qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester replay 0 exit bundle 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 macsec ips vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit crypto ipsec ips role init group 02 cipher des hash sha512 key tester replay 0 exit int bun1.111 exit int bun1.111.222 macsec ips vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt123.tst000066400000000000000000000240261471627602100174360ustar00rootroot00000000000000description p4lang: macsec qinq ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn2.111 exit int sdn2.111.222 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 exit int eth1.111.222 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt124.tst000066400000000000000000000240271471627602100174400ustar00rootroot00000000000000description p4lang: macsec qinq egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 2.2.2.104 255.255.255.255 all 2.2.2.106 255.255.255.255 all permit all any all any all exit access-list test6 deny 58 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all any all any all exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn4.111 exit int sdn4.111.222 macsec ips vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature acl vlan macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1.111 exit int eth1.111.222 macsec ips vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt125.tst000066400000000000000000000232031471627602100174340ustar00rootroot00000000000000description p4lang: ipsec over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1.222.333 tun destination 9999::2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit crypto ipsec ips group 02 cipher des hash md5 seconds 3600 bytes 1024000 key tester role static isakmp 1 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1.222.333 tun destination 9999::1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt126.tst000066400000000000000000000244141471627602100174420ustar00rootroot00000000000000description p4lang: wireguard over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips key EFw2rJEdqFGDgC80um3fwMmAafwqXno+PsbMHPZ0umM=M6vDV8QdiWDQppVKjKf8xjoKtyGAeRK/Ue48kwKI5Ss= replay 0 exit int tun1 tun vrf v2 tun source sdn1.222.333 tun destination 9.9.9.2 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route wireguard vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips key 6JhyvKPutQ9DNLupOPmDnQLRWtUWlUjI6PTJ/IZ9l1w=bQMmpCaGVyq9f+v48XGmfH5DMLytkqziID+rBH+qQic= replay 0 exit int tun1 tun vrf v2 tun source bvi1.222.333 tun destination 9.9.9.1 tun prot ips tun mode wireguard vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt127.tst000066400000000000000000000234021471627602100174370ustar00rootroot00000000000000description p4lang: sgt over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1.111 exit int eth1.111.222 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt128.tst000066400000000000000000000236471471627602100174530ustar00rootroot00000000000000description p4lang: sgt over macsec over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int sdn1 macsec ips exit int sdn1.111 exit int sdn1.111.222 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route macsec sgt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit crypto ipsec ips role init group 02 cipher des hash md5 key tester replay 0 exit int eth1 macsec ips exit int eth1.111 exit int eth1.111.222 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt129.tst000066400000000000000000000245351471627602100174510ustar00rootroot00000000000000description p4lang: sgt qinq ingress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all any all sgt 4444 permit all any all any all exit access-list test6 deny all any all any all sgt 4444 permit all any all any all exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int sdn3 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route sgt acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act trans match length 300-500 set sgt 4444 seq 20 act trans set sgt 3333 exit int eth1.111 exit int eth1.111.222 sgt ena service-policy-out p1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 200 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 200 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 siz 400 r4 tping 0 10 4321::105 vrf v1 sou lo0 siz 400 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 600 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 600 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt130.tst000066400000000000000000000245361471627602100174420ustar00rootroot00000000000000description p4lang: sgt qinq egress access list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny all any all any all sgt 4444 permit all any all any all exit access-list test6 deny all any all any all sgt 4444 permit all any all any all exit int sdn1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 sgt ena vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 sgt ass 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 access-group-out test4 ipv6 access-group-out test6 exit int sdn4 sgt ass 4321 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route sgt acl int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act drop match sgt 4321 seq 20 act trans exit bridge 1 mac-learn block-unicast exit int eth1 sgt ena bridge-gr 1 exit int bvi1 service-policy-in p1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit policy-map p1 seq 10 act trans match length 300-500 set sgt 4444 seq 20 act trans set sgt 3333 exit int eth1 sgt ena service-policy-out p1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 r3 tping 0 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 0 10 2.2.2.103 vrf v1 sou lo0 r6 tping 0 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 200 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 200 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 siz 400 r4 tping 0 10 4321::105 vrf v1 sou lo0 siz 400 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 siz 600 r4 tping 100 10 4321::105 vrf v1 sou lo0 siz 600 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt131.tst000066400000000000000000000231031471627602100174300ustar00rootroot00000000000000description p4lang: packout on qinq port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 api-stat interconnect eth2 export-vrf v1 export-port sdn1 1 -2 export-port sdn2 2 -2 export-port sdn3 3 -2 export-port sdn4 4 -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 exit int eth1.111.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt132.tst000066400000000000000000000234051471627602100174360ustar00rootroot00000000000000description p4lang: packout on macsec qinq port addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 macsec ips vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 api-stat interconnect eth2 export-vrf v1 export-port sdn1 1 -2 export-port sdn2 2 -2 export-port sdn3 3 -2 export-port sdn4 4 -2 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pckout macsec vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 exit int eth1.111.222 bridge-gr 1 exit crypto ipsec ips role init group 02 cipher des hash md5 key tester exit int bvi1 macsec ips vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt133.tst000066400000000000000000000242731471627602100174430ustar00rootroot00000000000000description p4lang: macsec with static key addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit crypto ipsec ips role stat group 02 cipher aes256cbc hash sha1 key 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 replay 0 exit int sdn2 macsec ips vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route macsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit crypto ipsec ips role stat group 02 cipher aes256cbc hash sha1 key 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 replay 0 exit int eth1 macsec ips vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt134.tst000066400000000000000000000230601471627602100174350ustar00rootroot00000000000000description p4lang: ipsec with aes128gcm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128gcm prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher aes128gcm prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt135.tst000066400000000000000000000230601471627602100174360ustar00rootroot00000000000000description p4lang: ipsec with aes192gcm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192gcm prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher aes192gcm prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-crypt136.tst000066400000000000000000000230601471627602100174370ustar00rootroot00000000000000description p4lang: ipsec with aes256gcm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256gcm prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route ipsec int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit crypto ipsec ips group 02 cipher aes256gcm prf md5 seconds 3600 bytes 1024000 key tester role static isakmp 2 protected ipv4 replay 0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun prot ips tun mode ipsec vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout001.tst000066400000000000000000000234101471627602100172550ustar00rootroot00000000000000description p4lang: routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 r1 output show version r1 output show platform output ../binTmp/basic3.html here is the version information:
show:0
here is the platform information:
show:1
! freeRtr-24.11.16/cfg/p4lang-rout002.tst000066400000000000000000000120421471627602100172550ustar00rootroot00000000000000description p4lang: bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout003.tst000066400000000000000000000231451471627602100172640ustar00rootroot00000000000000description p4lang: mpls core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout004.tst000066400000000000000000000223661471627602100172710ustar00rootroot00000000000000description p4lang: mpls edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 label-mode per-prefix rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout005.tst000066400000000000000000000230701471627602100172630ustar00rootroot00000000000000description p4lang: vlan routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r6 4321::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout006.tst000066400000000000000000000123041471627602100172620ustar00rootroot00000000000000description p4lang: vlan bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.111 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout007.tst000066400000000000000000000234021471627602100172640ustar00rootroot00000000000000description p4lang: vlan mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 exit int sdn4.111 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout008.tst000066400000000000000000000234401471627602100172670ustar00rootroot00000000000000description p4lang: vpn with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v2 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v2 3.3.3.105 255.255.255.255 1.1.3.2 ipv4 route v2 3.3.3.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v2 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 3.3.3.101 255.255.255.255 1.1.3.1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 3.3.3.101 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.4.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 3.3.3.101 vrf v2 sou lo1 r1 tping 100 10 3333::101 vrf v2 sou lo1 r1 tping 100 10 3.3.3.103 vrf v2 sou lo1 r1 tping 100 10 3333::103 vrf v2 sou lo1 r1 tping 100 10 3.3.3.104 vrf v2 sou lo1 r1 tping 100 10 3333::104 vrf v2 sou lo1 r1 tping 100 10 3.3.3.105 vrf v2 sou lo1 r1 tping 100 10 3333::105 vrf v2 sou lo1 r1 tping 100 10 3.3.3.106 vrf v2 sou lo1 r1 tping 100 10 3333::106 vrf v2 sou lo1 r3 tping 100 10 3.3.3.101 vrf v2 sou lo1 r3 tping 100 10 3333::101 vrf v2 sou lo1 r3 tping 100 10 3.3.3.103 vrf v2 sou lo1 r3 tping 100 10 3333::103 vrf v2 sou lo1 r3 tping 100 10 3.3.3.104 vrf v2 sou lo1 r3 tping 100 10 3333::104 vrf v2 sou lo1 r3 tping 100 10 3.3.3.105 vrf v2 sou lo1 r3 tping 100 10 3333::105 vrf v2 sou lo1 r3 tping 100 10 3.3.3.106 vrf v2 sou lo1 r3 tping 100 10 3333::106 vrf v2 sou lo1 r4 tping 100 10 3.3.3.101 vrf v2 sou lo1 r4 tping 100 10 3333::101 vrf v2 sou lo1 r4 tping 100 10 3.3.3.103 vrf v2 sou lo1 r4 tping 100 10 3333::103 vrf v2 sou lo1 r4 tping 100 10 3.3.3.104 vrf v2 sou lo1 r4 tping 100 10 3333::104 vrf v2 sou lo1 r4 tping 100 10 3.3.3.105 vrf v2 sou lo1 r4 tping 100 10 3333::105 vrf v2 sou lo1 r4 tping 100 10 3.3.3.106 vrf v2 sou lo1 r4 tping 100 10 3333::106 vrf v2 sou lo1 r5 tping 100 10 3.3.3.101 vrf v1 sou lo0 r5 tping 100 10 3333::101 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.101 vrf v1 sou lo0 r6 tping 100 10 3333::101 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r1 dping sdn . r4 3.3.3.105 vrf v2 sou lo1 r1 dping sdn . r4 3333::105 vrf v2 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout009.tst000066400000000000000000000215631471627602100172740ustar00rootroot00000000000000description p4lang: vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout010.tst000066400000000000000000000220611471627602100172560ustar00rootroot00000000000000description p4lang: evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge mpls evpn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout011.tst000066400000000000000000000134011471627602100172550ustar00rootroot00000000000000description p4lang: eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit int sdn4 xconnect v1 lo0 pweompls 2.2.2.104 1234 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature mpls eompls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout012.tst000066400000000000000000000250451471627602100172650ustar00rootroot00000000000000description p4lang: vpn with bgp over srv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v2 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int tun1 vrf for v1 ipv6 addr 4444:1:: ffff:ffff:: tun sour sdn1 tun dest 4444:1:: tun vrf v1 tun mod srv6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a segrou temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a segrou temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v2 red stat exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-srv6 tun1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v2 3.3.3.105 255.255.255.255 1.1.3.2 ipv4 route v2 3.3.3.106 255.255.255.255 1.1.4.2 ipv6 route v2 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature route srv6 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4444:3:: ffff:ffff:: tun sour eth1 tun dest 4444:3:: tun vrf v1 tun mod srv6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v2 red stat exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4444:4:: ffff:ffff:: tun sour eth1 tun dest 4444:4:: tun vrf v1 tun mod srv6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v2 red stat exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 3.3.3.101 255.255.255.255 1.1.3.1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 3.3.3.101 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.4.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 3.3.3.101 vrf v2 sou lo1 r1 tping 100 10 3333::101 vrf v2 sou lo1 r1 tping 100 10 3.3.3.103 vrf v2 sou lo1 r1 tping 100 10 3333::103 vrf v2 sou lo1 r1 tping 100 10 3.3.3.104 vrf v2 sou lo1 r1 tping 100 10 3333::104 vrf v2 sou lo1 r1 tping 100 10 3.3.3.105 vrf v2 sou lo1 r1 tping 100 10 3333::105 vrf v2 sou lo1 r1 tping 100 10 3.3.3.106 vrf v2 sou lo1 r1 tping 100 10 3333::106 vrf v2 sou lo1 r3 tping 100 10 3.3.3.101 vrf v2 sou lo1 r3 tping 100 10 3333::101 vrf v2 sou lo1 r3 tping 100 10 3.3.3.103 vrf v2 sou lo1 r3 tping 100 10 3333::103 vrf v2 sou lo1 r3 tping 100 10 3.3.3.104 vrf v2 sou lo1 r3 tping 100 10 3333::104 vrf v2 sou lo1 r3 tping 100 10 3.3.3.105 vrf v2 sou lo1 r3 tping 100 10 3333::105 vrf v2 sou lo1 r3 tping 100 10 3.3.3.106 vrf v2 sou lo1 r3 tping 100 10 3333::106 vrf v2 sou lo1 r4 tping 100 10 3.3.3.101 vrf v2 sou lo1 r4 tping 100 10 3333::101 vrf v2 sou lo1 r4 tping 100 10 3.3.3.103 vrf v2 sou lo1 r4 tping 100 10 3333::103 vrf v2 sou lo1 r4 tping 100 10 3.3.3.104 vrf v2 sou lo1 r4 tping 100 10 3333::104 vrf v2 sou lo1 r4 tping 100 10 3.3.3.105 vrf v2 sou lo1 r4 tping 100 10 3333::105 vrf v2 sou lo1 r4 tping 100 10 3.3.3.106 vrf v2 sou lo1 r4 tping 100 10 3333::106 vrf v2 sou lo1 r5 tping 100 10 3.3.3.101 vrf v1 sou lo0 r5 tping 100 10 3333::101 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.101 vrf v1 sou lo0 r6 tping 100 10 3333::101 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout013.tst000066400000000000000000000233651471627602100172710ustar00rootroot00000000000000description p4lang: evpn/cmac with bgp over srv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int tun1 vrf for v1 ipv6 addr 4444:1:: ffff:ffff:: tun sour sdn1 tun dest 4444:1:: tun vrf v1 tun mod srv6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a segrou temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a segrou temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-srv6 tun1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge srv6 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4444:3:: ffff:ffff:: tun sour eth1 tun dest 4444:3:: tun vrf v1 tun mod srv6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 segrou neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 segrou neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4444:4:: ffff:ffff:: tun sour eth1 tun dest 4444:4:: tun vrf v1 tun mod srv6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 segrou neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 segrou neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout014.tst000066400000000000000000000154431471627602100172700ustar00rootroot00000000000000description p4lang: bundle routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout015.tst000066400000000000000000000161771471627602100172760ustar00rootroot00000000000000description p4lang: bundle mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout016.tst000066400000000000000000000154631471627602100172740ustar00rootroot00000000000000description p4lang: bundle vlan routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout017.tst000066400000000000000000000162171471627602100172730ustar00rootroot00000000000000description p4lang: bundle vlan mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout018.tst000066400000000000000000000102771471627602100172740ustar00rootroot00000000000000description p4lang: bundle vlan bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bridge 1 mac-learn exit int sdn1 bridge-gr 1 exit int sdn2 bridge-gr 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature bundle vlan bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.2.5 vrf v1 r3 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout019.tst000066400000000000000000000212341471627602100172700ustar00rootroot00000000000000description p4lang: bridge routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout020.tst000066400000000000000000000214411471627602100172600ustar00rootroot00000000000000description p4lang: bridge mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout021.tst000066400000000000000000000213241471627602100172610ustar00rootroot00000000000000description p4lang: vlan bridge routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout022.tst000066400000000000000000000215311471627602100172620ustar00rootroot00000000000000description p4lang: vlan bridge mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout023.tst000066400000000000000000000216441471627602100172700ustar00rootroot00000000000000description p4lang: vlan vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature vlan mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout024.tst000066400000000000000000000134711471627602100172700ustar00rootroot00000000000000description p4lang: vlan eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit int sdn4 exit int sdn4.222 xconnect v1 lo0 pweompls 2.2.2.104 1234 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature vlan eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout025.tst000066400000000000000000000167721471627602100173000ustar00rootroot00000000000000description p4lang: bundle vlan vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bundle 1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 bridge-gr 1 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r5 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r5 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout026.tst000066400000000000000000000123631471627602100172710ustar00rootroot00000000000000description p4lang: bundle vlan eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit bundle 1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r5 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r5 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout027.tst000066400000000000000000000231211471627602100172640ustar00rootroot00000000000000description p4lang: pppoe routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout028.tst000066400000000000000000000231621471627602100172720ustar00rootroot00000000000000description p4lang: vlan pppoe routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 p2poe relay di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1.111 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout029.tst000066400000000000000000000233041471627602100172710ustar00rootroot00000000000000description p4lang: pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout030.tst000066400000000000000000000233351471627602100172650ustar00rootroot00000000000000description p4lang: vlan pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 exit int sdn2.111 p2poe relay di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1.111 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout031.tst000066400000000000000000000313721471627602100172660ustar00rootroot00000000000000description p4lang: hairpin routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout032.tst000066400000000000000000000123411471627602100172620ustar00rootroot00000000000000description p4lang: hairpin bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit bridge 2 mac-learn exit hair 1 ether exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 2 exit int hair11 bridge-gr 1 exit int hair12 bridge-gr 2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature hairpin bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout033.tst000066400000000000000000000314401471627602100172640ustar00rootroot00000000000000description p4lang: hairpin mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 label-mode per-prefix exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair12 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout034.tst000066400000000000000000000314141471627602100172660ustar00rootroot00000000000000description p4lang: hairpin vlan routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11.111 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12.111 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout035.tst000066400000000000000000000123631471627602100172710ustar00rootroot00000000000000description p4lang: hairpin vlan bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit bridge 2 mac-learn exit hair 1 ether exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 2 exit int hair11.111 bridge-gr 1 exit int hair12.111 bridge-gr 2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout036.tst000066400000000000000000000314621471627602100172730ustar00rootroot00000000000000description p4lang: hairpin vlan mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 label-mode per-prefix exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11.111 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair12.111 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout037.tst000066400000000000000000000315041471627602100172710ustar00rootroot00000000000000description p4lang: hairpin pppoe routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit int hair11 p2poe client di1 exit int hair12 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout038.tst000066400000000000000000000315261471627602100172760ustar00rootroot00000000000000description p4lang: hairpin vlan pppoe routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit int hair11.111 p2poe client di1 exit int hair12.111 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout039.tst000066400000000000000000000316571471627602100173040ustar00rootroot00000000000000description p4lang: hairpin pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 label-mode per-prefix exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11 p2poe client di1 exit int hair12 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 2.2.2.100 vrf v1 sou lo0 r1 tping 100 30 4321::100 vrf v1 sou lo0 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r1 tping 100 30 2.2.2.100 vrf v2 sou lo1 r1 tping 100 30 4321::100 vrf v2 sou lo1 r1 tping 100 30 2.2.2.101 vrf v2 sou lo1 r1 tping 100 30 4321::101 vrf v2 sou lo1 r1 tping 100 30 2.2.2.103 vrf v2 sou lo1 r1 tping 100 30 4321::103 vrf v2 sou lo1 r1 tping 100 30 2.2.2.104 vrf v2 sou lo1 r1 tping 100 30 4321::104 vrf v2 sou lo1 r1 tping 100 30 2.2.2.105 vrf v2 sou lo1 r1 tping 100 30 4321::105 vrf v2 sou lo1 r1 tping 100 30 2.2.2.106 vrf v2 sou lo1 r1 tping 100 30 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout040.tst000066400000000000000000000317011471627602100172620ustar00rootroot00000000000000description p4lang: hairpin vlan pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 label-mode per-prefix exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11.111 p2poe client di1 exit int hair12.111 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin pppoe vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 2.2.2.100 vrf v1 sou lo0 r1 tping 100 30 4321::100 vrf v1 sou lo0 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r1 tping 100 30 2.2.2.100 vrf v2 sou lo1 r1 tping 100 30 4321::100 vrf v2 sou lo1 r1 tping 100 30 2.2.2.101 vrf v2 sou lo1 r1 tping 100 30 4321::101 vrf v2 sou lo1 r1 tping 100 30 2.2.2.103 vrf v2 sou lo1 r1 tping 100 30 4321::103 vrf v2 sou lo1 r1 tping 100 30 2.2.2.104 vrf v2 sou lo1 r1 tping 100 30 4321::104 vrf v2 sou lo1 r1 tping 100 30 2.2.2.105 vrf v2 sou lo1 r1 tping 100 30 4321::105 vrf v2 sou lo1 r1 tping 100 30 2.2.2.106 vrf v2 sou lo1 r1 tping 100 30 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout041.tst000066400000000000000000000223321471627602100172630ustar00rootroot00000000000000description p4lang: hairpin vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 mac-learn exit bridge 3 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11 bridge-gr 1 exit int hair12 bridge-gr 2 exit int hair21 bridge-gr 1 exit int hair22 bridge-gr 3 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vpls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r6 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout042.tst000066400000000000000000000223641471627602100172710ustar00rootroot00000000000000description p4lang: hairpin vlan vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 mac-learn exit bridge 3 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11.111 bridge-gr 1 exit int hair12.111 bridge-gr 2 exit int hair21.111 bridge-gr 1 exit int hair22.111 bridge-gr 3 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r6 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout043.tst000066400000000000000000000141571471627602100172730ustar00rootroot00000000000000description p4lang: hairpin eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 1 mac-learn exit bridge 2 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit int hair12 bridge-gr 1 exit int hair21 xconnect v1 lo0 pweompls 2.2.2.104 1234 exit int hair22 bridge-gr 2 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 2 exit server p4lang p4 interconnect eth2 export-br 1 export-br 2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r4 3.3.3.106 vrf v1 sou lo1 r1 dping sdn . r4 3333::106 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout044.tst000066400000000000000000000142111471627602100172630ustar00rootroot00000000000000description p4lang: hairpin vlan eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 1 mac-learn exit bridge 2 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11.111 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit int hair12.111 bridge-gr 1 exit int hair21.111 xconnect v1 lo0 pweompls 2.2.2.104 1234 exit int hair22.111 bridge-gr 2 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 2 exit server p4lang p4 interconnect eth2 export-br 1 export-br 2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r4 3.3.3.106 vrf v1 sou lo1 r1 dping sdn . r4 3333::106 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout045.tst000066400000000000000000000225601471627602100172720ustar00rootroot00000000000000description p4lang: vlan evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature vlan evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout046.tst000066400000000000000000000177051471627602100173000ustar00rootroot00000000000000description p4lang: bundle vlan evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bundle 1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r5 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r5 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout047.tst000066400000000000000000000232461471627602100172760ustar00rootroot00000000000000description p4lang: hairpin evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 2 mac-learn exit bridge 3 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11 bridge-gr 1 exit int hair12 bridge-gr 2 exit int hair21 bridge-gr 1 exit int hair22 bridge-gr 3 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout048.tst000066400000000000000000000233001471627602100172660ustar00rootroot00000000000000description p4lang: hairpin vlan evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 2 mac-learn exit bridge 3 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11.111 bridge-gr 1 exit int hair12.111 bridge-gr 2 exit int hair21.111 bridge-gr 1 exit int hair22.111 bridge-gr 3 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout049.tst000066400000000000000000000236071471627602100173010ustar00rootroot00000000000000description p4lang: gre routing over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout050.tst000066400000000000000000000236151471627602100172700ustar00rootroot00000000000000description p4lang: gre routing over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout051.tst000066400000000000000000000242421471627602100172660ustar00rootroot00000000000000description p4lang: gre routing over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout052.tst000066400000000000000000000244221471627602100172670ustar00rootroot00000000000000description p4lang: gre routing over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout053.tst000066400000000000000000000236531471627602100172750ustar00rootroot00000000000000description p4lang: gre routing over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout054.tst000066400000000000000000000163111471627602100172670ustar00rootroot00000000000000description p4lang: gre routing over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature gre route bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout055.tst000066400000000000000000000163431471627602100172750ustar00rootroot00000000000000description p4lang: gre routing over bundle vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature gre route bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout056.tst000066400000000000000000000246261471627602100173010ustar00rootroot00000000000000description p4lang: gre routing over hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11 tun destination 9.9.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout057.tst000066400000000000000000000247131471627602100172770ustar00rootroot00000000000000description p4lang: gre routing over hairpin vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12.111 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11.111 tun destination 9.9.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route vlan hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout058.tst000066400000000000000000000237461471627602100173050ustar00rootroot00000000000000description p4lang: gre routing over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout059.tst000066400000000000000000000240111471627602100172700ustar00rootroot00000000000000description p4lang: gre routing over vlan bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout060.tst000066400000000000000000000241211471627602100172620ustar00rootroot00000000000000description p4lang: gre mpls over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout061.tst000066400000000000000000000241271471627602100172710ustar00rootroot00000000000000description p4lang: gre mpls over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout062.tst000066400000000000000000000245541471627602100172760ustar00rootroot00000000000000description p4lang: gre mpls over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout063.tst000066400000000000000000000247341471627602100172770ustar00rootroot00000000000000description p4lang: gre mpls over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout064.tst000066400000000000000000000241651471627602100172760ustar00rootroot00000000000000description p4lang: gre mpls over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout065.tst000066400000000000000000000170451471627602100172760ustar00rootroot00000000000000description p4lang: gre mpls over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature gre mpls bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout066.tst000066400000000000000000000170771471627602100173040ustar00rootroot00000000000000description p4lang: gre mpls over bundle vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature gre mpls bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout067.tst000066400000000000000000000251771471627602100173050ustar00rootroot00000000000000description p4lang: gre mpls over hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11 tun destination 9.9.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout068.tst000066400000000000000000000252251471627602100173000ustar00rootroot00000000000000description p4lang: gre mpls over hairpin vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12.111 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11.111 tun destination 9.9.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls vlan hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout069.tst000066400000000000000000000242661471627602100173050ustar00rootroot00000000000000description p4lang: gre mpls over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout070.tst000066400000000000000000000243271471627602100172730ustar00rootroot00000000000000description p4lang: gre mpls over vlan bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout071.tst000066400000000000000000000235431471627602100172730ustar00rootroot00000000000000description p4lang: l2tp routing over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout072.tst000066400000000000000000000235511471627602100172730ustar00rootroot00000000000000description p4lang: l2tp routing over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9999::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout073.tst000066400000000000000000000241771471627602100173010ustar00rootroot00000000000000description p4lang: l2tp routing over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 lo1 l2tp2 8.8.8.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 8.8.8.2 vrf v2 r3 tping 100 30 8.8.8.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout074.tst000066400000000000000000000243571471627602100173020ustar00rootroot00000000000000description p4lang: l2tp routing over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 lo1 l2tp2 8888::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 8888::2 vrf v2 r3 tping 100 30 8888::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout075.tst000066400000000000000000000236031471627602100172740ustar00rootroot00000000000000description p4lang: l2tp routing over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout076.tst000066400000000000000000000162371471627602100173020ustar00rootroot00000000000000description p4lang: l2tp routing over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 bun1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature l2tp bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout077.tst000066400000000000000000000240551471627602100173000ustar00rootroot00000000000000description p4lang: l2tp mpls over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout078.tst000066400000000000000000000240631471627602100173000ustar00rootroot00000000000000description p4lang: l2tp mpls over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9999::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout079.tst000066400000000000000000000245111471627602100172770ustar00rootroot00000000000000description p4lang: l2tp mpls over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 lo1 l2tp2 8.8.8.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 8.8.8.2 vrf v2 r3 tping 100 30 8.8.8.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout080.tst000066400000000000000000000246711471627602100172760ustar00rootroot00000000000000description p4lang: l2tp mpls over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 lo1 l2tp2 8888::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 8888::2 vrf v2 r3 tping 100 30 8888::1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout081.tst000066400000000000000000000241151471627602100172700ustar00rootroot00000000000000description p4lang: l2tp mpls over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout082.tst000066400000000000000000000170011471627602100172650ustar00rootroot00000000000000description p4lang: l2tp mpls over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 bun1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout083.tst000066400000000000000000000131361471627602100172730ustar00rootroot00000000000000description p4lang: bridging over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn3 tun destination 9.9.9.2 tun mode gre bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge gre gretap int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1 tun destination 9.9.9.1 tun mode gre bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout084.tst000066400000000000000000000132071471627602100172730ustar00rootroot00000000000000description p4lang: bridging over gre vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn3.222 tun destination 9.9.9.2 tun mode gre bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge gre gretap vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1.222 tun destination 9.9.9.1 tun mode gre bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout085.tst000066400000000000000000000125651471627602100173020ustar00rootroot00000000000000description p4lang: bridging over pppoe addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int di1 enc ppp bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn3 p2poe client di1 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pppoe pppoetap int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp bridge-gr 1 exit int eth1 p2poe relay di1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234:1::1 vrf v1 r4 tping 100 30 1.1.2.5 vrf v1 r4 tping 100 30 1234:2::5 vrf v1 r4 tping 100 30 1.1.2.6 vrf v1 r4 tping 100 30 1234:2::6 vrf v1 r5 tping 100 30 1.1.2.4 vrf v1 r5 tping 100 30 1234:2::4 vrf v1 r5 tping 100 30 1.1.2.6 vrf v1 r5 tping 100 30 1234:2::6 vrf v1 r6 tping 100 30 1.1.2.4 vrf v1 r6 tping 100 30 1234:2::4 vrf v1 r6 tping 100 30 1.1.2.5 vrf v1 r6 tping 100 30 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout086.tst000066400000000000000000000126261471627602100173010ustar00rootroot00000000000000description p4lang: bridging over pppoe vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int di1 enc ppp bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn3 exit int sdn3.222 p2poe client di1 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pppoe pppoetap vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp bridge-gr 1 exit int eth1.222 p2poe relay di1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234:1::1 vrf v1 r4 tping 100 30 1.1.2.5 vrf v1 r4 tping 100 30 1234:2::5 vrf v1 r4 tping 100 30 1.1.2.6 vrf v1 r4 tping 100 30 1234:2::6 vrf v1 r5 tping 100 30 1.1.2.4 vrf v1 r5 tping 100 30 1234:2::4 vrf v1 r5 tping 100 30 1.1.2.6 vrf v1 r5 tping 100 30 1234:2::6 vrf v1 r6 tping 100 30 1.1.2.4 vrf v1 r6 tping 100 30 1234:2::4 vrf v1 r6 tping 100 30 1.1.2.5 vrf v1 r6 tping 100 30 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout087.tst000066400000000000000000000130731471627602100172770ustar00rootroot00000000000000description p4lang: bridging over l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn3 l2tp2 9.9.9.2 1234 bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge l2tp l2tptap int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp bridge-gr 1 exit server l2tp2 l clone dialer1 vrf v2 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234:1::1 vrf v1 r4 tping 100 30 1.1.2.5 vrf v1 r4 tping 100 30 1234:2::5 vrf v1 r4 tping 100 30 1.1.2.6 vrf v1 r4 tping 100 30 1234:2::6 vrf v1 r5 tping 100 30 1.1.2.4 vrf v1 r5 tping 100 30 1234:2::4 vrf v1 r5 tping 100 30 1.1.2.6 vrf v1 r5 tping 100 30 1234:2::6 vrf v1 r6 tping 100 30 1.1.2.4 vrf v1 r6 tping 100 30 1234:2::4 vrf v1 r6 tping 100 30 1.1.2.5 vrf v1 r6 tping 100 30 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout088.tst000066400000000000000000000131401471627602100172730ustar00rootroot00000000000000description p4lang: bridging over l2tp vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn3.222 l2tp2 9.9.9.2 1234 bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge l2tp l2tptap vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp bridge-gr 1 exit server l2tp2 l clone dialer1 vrf v2 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234:1::1 vrf v1 r4 tping 100 30 1.1.2.5 vrf v1 r4 tping 100 30 1234:2::5 vrf v1 r4 tping 100 30 1.1.2.6 vrf v1 r4 tping 100 30 1234:2::6 vrf v1 r5 tping 100 30 1.1.2.4 vrf v1 r5 tping 100 30 1234:2::4 vrf v1 r5 tping 100 30 1.1.2.6 vrf v1 r5 tping 100 30 1234:2::6 vrf v1 r6 tping 100 30 1.1.2.4 vrf v1 r6 tping 100 30 1234:2::4 vrf v1 r6 tping 100 30 1.1.2.5 vrf v1 r6 tping 100 30 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout089.tst000066400000000000000000000126411471627602100173010ustar00rootroot00000000000000description p4lang: vxlan over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 123 protocol vxlan exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 vxlan 9.9.9.1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout090.tst000066400000000000000000000126471471627602100172770ustar00rootroot00000000000000description p4lang: vxlan over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9999::2 vcid 123 protocol vxlan exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 vxlan 9999::1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout091.tst000066400000000000000000000133111471627602100172650ustar00rootroot00000000000000description p4lang: vxlan over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 source lo1 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 8.8.8.2 vcid 123 protocol vxlan exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 vxlan 8.8.8.1 123 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r5 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout092.tst000066400000000000000000000134711471627602100172750ustar00rootroot00000000000000description p4lang: vxlan over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit proxy-profile p2 source lo1 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 8888::2 vcid 123 protocol vxlan exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 vxlan 8888::1 123 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r5 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout093.tst000066400000000000000000000127011471627602100172710ustar00rootroot00000000000000description p4lang: vxlan over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 123 protocol vxlan exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1.111 vxlan 9.9.9.1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout094.tst000066400000000000000000000106421471627602100172740ustar00rootroot00000000000000description p4lang: vxlan over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 123 protocol vxlan exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 bun1 vxlan 9.9.9.1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout095.tst000066400000000000000000000216451471627602100173020ustar00rootroot00000000000000description p4lang: evpn/vxlan with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r3 3.3.3.106 vrf v1 sou lo1 r1 dping sdn . r3 3333::106 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout096.tst000066400000000000000000000217301471627602100172760ustar00rootroot00000000000000description p4lang: vlan evpn/vxlan with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r3 3.3.3.106 vrf v1 sou lo1 r1 dping sdn . r3 3333::106 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout097.tst000066400000000000000000000174341471627602100173050ustar00rootroot00000000000000description p4lang: bundle vlan evpn/vxlan with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bundle 1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r3 3.3.3.105 vrf v1 sou lo1 r1 dping sdn . r3 3333::105 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout098.tst000066400000000000000000000224131471627602100172770ustar00rootroot00000000000000description p4lang: hairpin evpn/vxlan with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 2 mac-learn exit bridge 3 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11 bridge-gr 1 exit int hair12 bridge-gr 2 exit int hair21 bridge-gr 1 exit int hair22 bridge-gr 3 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r3 3.3.3.106 vrf v1 sou lo1 r1 dping sdn . r3 3333::106 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout099.tst000066400000000000000000000236131471627602100173030ustar00rootroot00000000000000description p4lang: ipip routing over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature ipip route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout100.tst000066400000000000000000000236211471627602100172610ustar00rootroot00000000000000description p4lang: ipip routing over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature ipip route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout101.tst000066400000000000000000000242461471627602100172660ustar00rootroot00000000000000description p4lang: ipip routing over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature ipip route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout102.tst000066400000000000000000000244261471627602100172670ustar00rootroot00000000000000description p4lang: ipip routing over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature ipip route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout103.tst000066400000000000000000000236571471627602100172750ustar00rootroot00000000000000description p4lang: ipip routing over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature ipip vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout104.tst000066400000000000000000000163151471627602100172670ustar00rootroot00000000000000description p4lang: ipip routing over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.2 tun mode ipip vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature ipip route bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.1 tun mode ipip vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout105.tst000066400000000000000000000126531471627602100172710ustar00rootroot00000000000000description p4lang: pckoudp over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol pckoudp exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 pckoudp 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout106.tst000066400000000000000000000126611471627602100172710ustar00rootroot00000000000000description p4lang: pckoudp over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9999::2 vcid 2554 protocol pckoudp exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 pckoudp 9999::1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout107.tst000066400000000000000000000133231471627602100172660ustar00rootroot00000000000000description p4lang: pckoudp over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 source lo1 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 8.8.8.2 vcid 2554 protocol pckoudp exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 pckoudp 8.8.8.1 2554 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r5 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout108.tst000066400000000000000000000135031471627602100172670ustar00rootroot00000000000000description p4lang: pckoudp over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit proxy-profile p2 source lo1 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 8888::2 vcid 2554 protocol pckoudp exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 pckoudp 8888::1 2554 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r5 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout109.tst000066400000000000000000000127131471627602100172720ustar00rootroot00000000000000description p4lang: pckoudp over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol pckoudp exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1.111 pckoudp 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout110.tst000066400000000000000000000106541471627602100172640ustar00rootroot00000000000000description p4lang: pckoudp over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol pckoudp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 bun1 pckoudp 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout111.tst000066400000000000000000000125511471627602100172630ustar00rootroot00000000000000description p4lang: pckoudp server over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit server pckoudp pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 pckoudp 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout112.tst000066400000000000000000000125571471627602100172720ustar00rootroot00000000000000description p4lang: pckoudp server over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit server pckoudp pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 pckoudp 9999::1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout113.tst000066400000000000000000000132051471627602100172620ustar00rootroot00000000000000description p4lang: pckoudp server over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit server pckoudp pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 pckoudp 8.8.8.1 2554 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r5 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout114.tst000066400000000000000000000133651471627602100172720ustar00rootroot00000000000000description p4lang: pckoudp server over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit server pckoudp pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 pckoudp 8888::1 2554 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r5 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout115.tst000066400000000000000000000125551471627602100172730ustar00rootroot00000000000000description p4lang: vxlan server over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit server vxlan vx bridge 1 instance 123 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 vxlan 9.9.9.1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout116.tst000066400000000000000000000125631471627602100172730ustar00rootroot00000000000000description p4lang: vxlan server over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit server vxlan vx bridge 1 instance 123 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 vxlan 9999::1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout117.tst000066400000000000000000000132111471627602100172630ustar00rootroot00000000000000description p4lang: vxlan server over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit server vxlan vx bridge 1 instance 123 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 vxlan 8.8.8.1 123 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r5 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout118.tst000066400000000000000000000133711471627602100172730ustar00rootroot00000000000000description p4lang: vxlan server over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit server vxlan vx bridge 1 instance 123 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 vxlan 8888::1 123 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r5 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout119.tst000066400000000000000000000231311471627602100172670ustar00rootroot00000000000000description p4lang: pppoe server routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 p2poe server di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout120.tst000066400000000000000000000231721471627602100172640ustar00rootroot00000000000000description p4lang: vlan pppoe server routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 p2poe server di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1.111 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout121.tst000066400000000000000000000234431471627602100172660ustar00rootroot00000000000000description p4lang: pppoe server mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 p2poe server di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout122.tst000066400000000000000000000235041471627602100172650ustar00rootroot00000000000000description p4lang: vlan pppoe server mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 exit int sdn2.111 p2poe server di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1.111 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout123.tst000066400000000000000000000235461471627602100172740ustar00rootroot00000000000000description p4lang: l2tp server routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server l2tp2 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp2 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout124.tst000066400000000000000000000236071471627602100172730ustar00rootroot00000000000000description p4lang: vlan l2tp server routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server l2tp2 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp2 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout125.tst000066400000000000000000000240611471627602100172670ustar00rootroot00000000000000description p4lang: l2tp server mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp2 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout126.tst000066400000000000000000000241221471627602100172660ustar00rootroot00000000000000description p4lang: vlan l2tp server mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp2 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout127.tst000066400000000000000000000417251471627602100172770ustar00rootroot00000000000000description p4lang: p2p ldp tail+head addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.11.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout128.tst000066400000000000000000000432611471627602100172750ustar00rootroot00000000000000description p4lang: p2p ldp mid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.21.2 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:21::2 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.31.2 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:31::2 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.41.2 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:41::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.21.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.31.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.41.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:21::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:31::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:41::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pldp vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pldp vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout129.tst000066400000000000000000000421141471627602100172720ustar00rootroot00000000000000description p4lang: p2p te tail+head addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.11.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout130.tst000066400000000000000000000434421471627602100172670ustar00rootroot00000000000000description p4lang: p2p te mid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.21.2 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:21::2 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.31.2 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:31::2 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.41.2 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:41::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.21.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.31.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.41.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:21::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:31::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:41::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout131.tst000066400000000000000000000356201471627602100172670ustar00rootroot00000000000000description p4lang: sr te over mpls tail+head addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun domain 2.2.2.103 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun domain 4321::103 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun domain 2.2.2.104 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun domain 4321::104 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.105 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun domain 4321::105 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun domain 2.2.2.106 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun domain 4321::106 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.11.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout132.tst000066400000000000000000000373601471627602100172730ustar00rootroot00000000000000description p4lang: sr te over mpls mid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun domain 2.2.2.103 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun domain 4321::103 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun domain 2.2.2.104 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun domain 4321::104 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.105 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun domain 4321::105 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun domain 2.2.2.106 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun domain 4321::106 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.21.2 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:21::2 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.31.2 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:31::2 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.41.2 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:41::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.21.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.31.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.41.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:21::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:31::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:41::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout133.tst000066400000000000000000000237751471627602100173010ustar00rootroot00000000000000description p4lang: policy routing between vrfs addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit access-list a2b4 permit all 2.2.2.0 255.255.255.0 all 2.2.2.103 255.255.255.255 all exit access-list a2b6 permit all 4321:: ffff:ffff:ffff:ffff:: all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a4 permit all 2.2.2.103 255.255.255.255 all 2.2.2.0 255.255.255.0 all exit access-list b2a6 permit all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321:: ffff:ffff:ffff:ffff:: all exit ipv4 pbr v1 a2b4 v2 ipv6 pbr v1 a2b6 v2 ipv4 pbr v2 b2a4 v1 ipv6 pbr v2 b2a6 v1 server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route pbr int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 10 1234:2::2 vrf v1 r3 tping 0 10 1.1.3.2 vrf v1 r3 tping 0 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 0 10 1.1.1.2 vrf v1 r4 tping 0 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 0 10 1.1.1.2 vrf v1 r5 tping 0 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout134.tst000066400000000000000000000236371471627602100172770ustar00rootroot00000000000000description p4lang: policy routing with nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit access-list a2b4 permit all 2.2.2.0 255.255.255.0 all 2.2.2.103 255.255.255.255 all exit access-list a2b6 permit all 4321:: ffff:ffff:ffff:ffff:: all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a4 permit all 2.2.2.103 255.255.255.255 all 2.2.2.0 255.255.255.0 all exit access-list b2a6 permit all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321:: ffff:ffff:ffff:ffff:: all exit ipv4 pbr v1 a2b4 v2 next 1.1.1.2 ipv6 pbr v1 a2b6 v2 next 1234:1::2 ipv4 pbr v2 b2a4 v1 ipv6 pbr v2 b2a6 v1 server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route pbr int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 10 1234:2::2 vrf v1 r3 tping 0 10 1.1.3.2 vrf v1 r3 tping 0 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 0 10 1.1.1.2 vrf v1 r4 tping 0 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 0 10 1.1.1.2 vrf v1 r5 tping 0 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout135.tst000066400000000000000000000236771471627602100173040ustar00rootroot00000000000000description p4lang: policy routing with interface and nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit access-list a2b4 permit all 2.2.2.0 255.255.255.0 all 2.2.2.103 255.255.255.255 all exit access-list a2b6 permit all 4321:: ffff:ffff:ffff:ffff:: all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a4 permit all 2.2.2.103 255.255.255.255 all 2.2.2.0 255.255.255.0 all exit access-list b2a6 permit all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321:: ffff:ffff:ffff:ffff:: all exit ipv4 pbr v1 a2b4 v2 int sdn1 next 1.1.1.2 ipv6 pbr v1 a2b6 v2 int sdn1 next 1234:1::2 ipv4 pbr v2 b2a4 v1 ipv6 pbr v2 b2a6 v1 server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route pbr int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 0 10 1.1.2.2 vrf v1 r3 tping 0 10 1234:2::2 vrf v1 r3 tping 0 10 1.1.3.2 vrf v1 r3 tping 0 10 1234:3::2 vrf v1 r3 tping 0 10 1.1.4.2 vrf v1 r3 tping 0 10 1234:4::2 vrf v1 r4 tping 0 10 1.1.1.2 vrf v1 r4 tping 0 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 0 10 1.1.1.2 vrf v1 r5 tping 0 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 0 10 1.1.1.2 vrf v1 r6 tping 0 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout136.tst000066400000000000000000000245611471627602100172760ustar00rootroot00000000000000description p4lang: multicast routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout137.tst000066400000000000000000000247271471627602100173030ustar00rootroot00000000000000description p4lang: multicast vlan routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout138.tst000066400000000000000000000167331471627602100173020ustar00rootroot00000000000000description p4lang: multicast bundle routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 mroute v1 :: :: 1234:1::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle route mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 200 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 200 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout139.tst000066400000000000000000000167741471627602100173100ustar00rootroot00000000000000description p4lang: multicast bundle vlan routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 exit int bun1.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 mroute v1 :: :: 1234:1::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle route vlan mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 200 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 200 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout140.tst000066400000000000000000000334421471627602100172670ustar00rootroot00000000000000description p4lang: hairpin multicast routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 vrf for v2 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int hair12 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 ipv4 mroute v2 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v2 :: :: 1234:5::1 server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:3:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.4.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:4:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.5.1 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! addother r2 controller r1 v9 9080 - feature hairpin route mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout141.tst000066400000000000000000000335261471627602100172730ustar00rootroot00000000000000description p4lang: hairpin vlan multicast routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 vrf for v2 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11 exit int hair11.111 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int hair12 exit int hair12.111 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 ipv4 mroute v2 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v2 :: :: 1234:5::1 server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:3:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.4.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:4:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.5.1 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! addother r2 controller r1 v9 9080 - feature hairpin vlan route mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout142.tst000066400000000000000000000250031471627602100172630ustar00rootroot00000000000000description p4lang: mldp core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout143.tst000066400000000000000000000251511471627602100172700ustar00rootroot00000000000000description p4lang: mldp vlan core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout144.tst000066400000000000000000000256521471627602100172770ustar00rootroot00000000000000description p4lang: mldp core over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route gre duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout145.tst000066400000000000000000000256061471627602100172770ustar00rootroot00000000000000description p4lang: mldp core over l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route l2tp duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout146.tst000066400000000000000000000203631471627602100172730ustar00rootroot00000000000000description p4lang: mldp bundle core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route bundle duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 200 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 200 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout147.tst000066400000000000000000000204751471627602100173000ustar00rootroot00000000000000description p4lang: mldp bundle vlan core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 exit int bun1.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route bundle duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 200 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 200 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout148.tst000066400000000000000000000336461471627602100173050ustar00rootroot00000000000000description p4lang: hairpin mldp core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v2 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int hair11 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int hair12 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:3:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.4.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:4:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.5.1 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! addother r2 controller r1 v9 9080 - feature route hairpin duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout149.tst000066400000000000000000000336701471627602100173030ustar00rootroot00000000000000description p4lang: hairpin vlan mldp core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v2 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int hair11.111 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int hair12.111 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:3:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.4.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:4:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.5.1 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! addother r2 controller r1 v9 9080 - feature route hairpin vlan duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout150.tst000066400000000000000000000247031471627602100172700ustar00rootroot00000000000000description p4lang: mldp egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout151.tst000066400000000000000000000250511471627602100172660ustar00rootroot00000000000000description p4lang: mldp vlan egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route mroute duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout152.tst000066400000000000000000000240031471627602100172630ustar00rootroot00000000000000description p4lang: mldp ingress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 pim ena ipv6 pim ena exit ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a neigh 2.2.2.105 temp a red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a neigh 4321::105 temp a red conn red stat exit ! addother r2 controller r1 v9 9080 - feature route duplab mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.5 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.5 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout153.tst000066400000000000000000000241511471627602100172700ustar00rootroot00000000000000description p4lang: mldp vlan ingress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 pim ena ipv6 pim ena exit ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a neigh 2.2.2.105 temp a red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a neigh 4321::105 temp a red conn red stat exit ! addother r2 controller r1 v9 9080 - feature vlan route duplab mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.5 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.5 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout154.tst000066400000000000000000000250041471627602100172670ustar00rootroot00000000000000description p4lang: mldp core and egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout155.tst000066400000000000000000000251521471627602100172740ustar00rootroot00000000000000description p4lang: vlan mldp core and egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route mroute duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout156.tst000066400000000000000000000260521471627602100172750ustar00rootroot00000000000000description p4lang: bier core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout157.tst000066400000000000000000000262201471627602100172730ustar00rootroot00000000000000description p4lang: bier vlan core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route vlan bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout158.tst000066400000000000000000000267211471627602100173020ustar00rootroot00000000000000description p4lang: bier core over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route gre bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout159.tst000066400000000000000000000267511471627602100173060ustar00rootroot00000000000000description p4lang: bier core over l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route l2tp bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout160.tst000066400000000000000000000214351471627602100172700ustar00rootroot00000000000000description p4lang: bier bundle core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route bundle bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ int eth3 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth3 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout161.tst000066400000000000000000000215351471627602100172720ustar00rootroot00000000000000description p4lang: bier bundle vlan core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route bundle vlan bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ int eth3 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth3 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout162.tst000066400000000000000000000312151471627602100172670ustar00rootroot00000000000000description p4lang: hairpin bier core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit router lsrp4 2 vrf v2 router 4.4.4.9 bier 256 10 9 red conn exit router lsrp6 2 vrf v2 router 6.6.6.9 bier 256 10 9 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 2 ena router lsrp6 2 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int hair11 vrf for v1 ipv4 addr 1.1.6.1 255.255.255.0 ipv6 addr 1234:6::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int hair12 vrf for v2 ipv4 addr 1.1.6.2 255.255.255.0 ipv6 addr 1234:6::2 ffff:ffff:: ipv6 ena mpls enable router lsrp4 2 ena router lsrp6 2 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route hairpin bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.6.2 vrf v1 r1 tping 100 10 1234:6::2 vrf v1 r1 tping 100 10 1.1.6.1 vrf v2 r1 tping 100 10 1234:6::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.6.2 vrf v1 r1 tping 100 10 1234:6::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.6.2 vrf v1 r3 tping 100 10 1234:6::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.6.2 vrf v1 r4 tping 100 10 1234:6::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.6.2 vrf v1 r5 tping 100 10 1234:6::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.6.2 vrf v1 r6 tping 100 10 1234:6::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.6.2 vrf v1 r7 tping 100 10 1234:6::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.100 vrf v1 sou lo0 r3 tping 100 10 4321::100 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.100 vrf v1 sou lo0 r4 tping 100 10 4321::100 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.100 vrf v1 sou lo0 r5 tping 100 10 4321::100 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.100 vrf v1 sou lo0 r6 tping 100 10 4321::100 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.100 vrf v1 sou lo0 r7 tping 100 10 4321::100 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout163.tst000066400000000000000000000312741471627602100172750ustar00rootroot00000000000000description p4lang: hairpin vlan bier core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit router lsrp4 2 vrf v2 router 4.4.4.9 bier 256 10 9 red conn exit router lsrp6 2 vrf v2 router 6.6.6.9 bier 256 10 9 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 2 ena router lsrp6 2 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int hair11 exit int hair11.111 vrf for v1 ipv4 addr 1.1.6.1 255.255.255.0 ipv6 addr 1234:6::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int hair12 exit int hair12.111 vrf for v2 ipv4 addr 1.1.6.2 255.255.255.0 ipv6 addr 1234:6::2 ffff:ffff:: ipv6 ena mpls enable router lsrp4 2 ena router lsrp6 2 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route hairpin bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.6.2 vrf v1 r1 tping 100 10 1234:6::2 vrf v1 r1 tping 100 10 1.1.6.1 vrf v2 r1 tping 100 10 1234:6::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.6.2 vrf v1 r1 tping 100 10 1234:6::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.6.2 vrf v1 r3 tping 100 10 1234:6::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.6.2 vrf v1 r4 tping 100 10 1234:6::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.6.2 vrf v1 r5 tping 100 10 1234:6::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.6.2 vrf v1 r6 tping 100 10 1234:6::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.6.2 vrf v1 r7 tping 100 10 1234:6::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.100 vrf v1 sou lo0 r3 tping 100 10 4321::100 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.100 vrf v1 sou lo0 r4 tping 100 10 4321::100 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.100 vrf v1 sou lo0 r5 tping 100 10 4321::100 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.100 vrf v1 sou lo0 r6 tping 100 10 4321::100 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.100 vrf v1 sou lo0 r7 tping 100 10 4321::100 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout164.tst000066400000000000000000000265321471627602100172770ustar00rootroot00000000000000description p4lang: bier egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena router lsrp4 1 ena router lsrp6 1 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route mroute bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout165.tst000066400000000000000000000267001471627602100172750ustar00rootroot00000000000000description p4lang: bier vlan egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena router lsrp4 1 ena router lsrp6 1 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature vlan route mroute bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout166.tst000066400000000000000000000342311471627602100172740ustar00rootroot00000000000000description p4lang: bier ingress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv6 ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a neigh 2.2.2.105 temp a neigh 2.2.2.107 temp a red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a neigh 4321::105 temp a neigh 4321::107 temp a red conn red stat exit ! addother r2 controller r1 v9 9080 - feature route mroute bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.5 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.5 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.7 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.7 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout167.tst000066400000000000000000000343771471627602100173100ustar00rootroot00000000000000description p4lang: bier vlan ingress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv6 ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a neigh 2.2.2.105 temp a neigh 2.2.2.107 temp a red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a neigh 4321::105 temp a neigh 4321::107 temp a red conn red stat exit ! addother r2 controller r1 v9 9080 - feature vlan route mroute bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.5 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.5 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.7 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.7 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout168.tst000066400000000000000000000304571471627602100173040ustar00rootroot00000000000000description p4lang: bier core and egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn red stat exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn red stat exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout169.tst000066400000000000000000000306201471627602100172750ustar00rootroot00000000000000description p4lang: vlan bier core and egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn red stat exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn red stat exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn2 exit int sdn2.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 exit int sdn3.333 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit int sdn4 exit int sdn4.444 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 1 ipv6 pim bier 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route mroute bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1.333 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1.444 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout170.tst000066400000000000000000000236601471627602100172730ustar00rootroot00000000000000description p4lang: amt server over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int temp1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena shut exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server amt a clone temp1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port temp1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature amt route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun sou bvi1 tun vrf v2 tun dest 9.9.9.1 tun mod amt vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout171.tst000066400000000000000000000236661471627602100173020ustar00rootroot00000000000000description p4lang: amt server over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int temp1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena shut exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server amt a clone temp1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port temp1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature amt route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun sou bvi1 tun vrf v2 tun dest 9999::1 tun mod amt vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout172.tst000066400000000000000000000243141471627602100172720ustar00rootroot00000000000000description p4lang: amt server over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int temp1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena shut exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server amt a clone temp1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port temp1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature amt route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int tun1 tun sou lo1 tun vrf v2 tun dest 8.8.8.1 tun mod amt vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout173.tst000066400000000000000000000244741471627602100173020ustar00rootroot00000000000000description p4lang: amt server over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int temp1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena shut exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server amt a clone temp1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port temp1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature amt route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int tun1 tun sou lo1 tun vrf v2 tun dest 8888::1 tun mod amt vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout174.tst000066400000000000000000000257701471627602100173030ustar00rootroot00000000000000description p4lang: autoroute to sr te over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun domain 2.2.2.103 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.103 1.1.11.2 exclu exit int tun12 tun sou lo0 tun dest 4321::103 tun domain 4321::103 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::103 1234:11::2 exclu exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun domain 2.2.2.104 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.104 1.1.12.2 exclu exit int tun22 tun sou lo0 tun dest 4321::104 tun domain 4321::104 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::104 1234:12::2 exclu exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.105 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.105 1.1.13.2 exclu exit int tun32 tun sou lo0 tun dest 4321::105 tun domain 4321::105 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::105 1234:13::2 exclu exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun domain 2.2.2.106 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.106 1.1.14.2 exclu exit int tun42 tun sou lo0 tun dest 4321::106 tun domain 4321::106 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::106 1234:14::2 exclu exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.101 1.1.11.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:11::1 exclu exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.101 1.1.12.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:12::1 exclu exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.103 1.1.12.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:13::1 exclu exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.103 1.1.14.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:14::1 exclu exit ! r1 tping 100 10 1.1.1.2 vrf v1 sou sdn1 r1 tping 100 10 1234:1::2 vrf v1 sou sdn1 r1 tping 100 10 1.1.2.2 vrf v1 sou sdn2 r1 tping 100 10 1234:2::2 vrf v1 sou sdn2 r1 tping 100 10 1.1.3.2 vrf v1 sou sdn3 r1 tping 100 10 1234:3::2 vrf v1 sou sdn3 r1 tping 100 10 1.1.4.2 vrf v1 sou sdn4 r1 tping 100 10 1234:4::2 vrf v1 sou sdn4 r3 tping 100 10 1.1.1.2 vrf v1 sou eth1 r3 tping 100 10 1234:1::2 vrf v1 sou eth1 r3 tping 100 10 1.1.2.2 vrf v1 sou eth1 r3 tping 100 10 1234:2::2 vrf v1 sou eth1 r3 tping 100 10 1.1.3.2 vrf v1 sou eth1 r3 tping 100 10 1234:3::2 vrf v1 sou eth1 r3 tping 100 10 1.1.4.2 vrf v1 sou eth1 r3 tping 100 10 1234:4::2 vrf v1 sou eth1 r4 tping 100 10 1.1.1.2 vrf v1 sou eth1 r4 tping 100 10 1234:1::2 vrf v1 sou eth1 r4 tping 100 10 1.1.2.2 vrf v1 sou eth1 r4 tping 100 10 1234:2::2 vrf v1 sou eth1 r4 tping 100 10 1.1.3.2 vrf v1 sou eth1 r4 tping 100 10 1234:3::2 vrf v1 sou eth1 r4 tping 100 10 1.1.4.2 vrf v1 sou eth1 r4 tping 100 10 1234:4::2 vrf v1 sou eth1 r5 tping 100 10 1.1.1.2 vrf v1 sou eth1 r5 tping 100 10 1234:1::2 vrf v1 sou eth1 r5 tping 100 10 1.1.2.2 vrf v1 sou eth1 r5 tping 100 10 1234:2::2 vrf v1 sou eth1 r5 tping 100 10 1.1.3.2 vrf v1 sou eth1 r5 tping 100 10 1234:3::2 vrf v1 sou eth1 r5 tping 100 10 1.1.4.2 vrf v1 sou eth1 r5 tping 100 10 1234:4::2 vrf v1 sou eth1 r6 tping 100 10 1.1.1.2 vrf v1 sou eth1 r6 tping 100 10 1234:1::2 vrf v1 sou eth1 r6 tping 100 10 1.1.2.2 vrf v1 sou eth1 r6 tping 100 10 1234:2::2 vrf v1 sou eth1 r6 tping 100 10 1.1.3.2 vrf v1 sou eth1 r6 tping 100 10 1234:3::2 vrf v1 sou eth1 r6 tping 100 10 1.1.4.2 vrf v1 sou eth1 r6 tping 100 10 1234:4::2 vrf v1 sou eth1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 1.1.3.2 vrf v1 sou eth1 r1 dping sdn . r6 1234:3::2 vrf v1 sou eth1 freeRtr-24.11.16/cfg/p4lang-rout175.tst000066400000000000000000000254651471627602100173050ustar00rootroot00000000000000description p4lang: autoroute to p2p te over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.1 justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.103 1.1.11.2 exclu exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::103 1234:11::2 exclu exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.104 1.1.12.2 exclu exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::104 1234:12::2 exclu exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.105 1.1.13.2 exclu exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::105 1234:13::2 exclu exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.106 1.1.14.2 exclu exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::106 1234:14::2 exclu exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.101 1.1.11.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:11::1 exclu exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.101 1.1.12.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:12::1 exclu exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.103 1.1.12.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:13::1 exclu exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 ipv4 autoroute lsrp4 1 2.2.2.103 1.1.14.1 exclu exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: ipv6 autoroute lsrp6 1 4321::101 1234:14::1 exclu exit ! r1 tping 100 10 1.1.1.2 vrf v1 sou sdn1 r1 tping 100 10 1234:1::2 vrf v1 sou sdn1 r1 tping 100 10 1.1.2.2 vrf v1 sou sdn2 r1 tping 100 10 1234:2::2 vrf v1 sou sdn2 r1 tping 100 10 1.1.3.2 vrf v1 sou sdn3 r1 tping 100 10 1234:3::2 vrf v1 sou sdn3 r1 tping 100 10 1.1.4.2 vrf v1 sou sdn4 r1 tping 100 10 1234:4::2 vrf v1 sou sdn4 r3 tping 100 10 1.1.1.2 vrf v1 sou eth1 r3 tping 100 10 1234:1::2 vrf v1 sou eth1 r3 tping 100 10 1.1.2.2 vrf v1 sou eth1 r3 tping 100 10 1234:2::2 vrf v1 sou eth1 r3 tping 100 10 1.1.3.2 vrf v1 sou eth1 r3 tping 100 10 1234:3::2 vrf v1 sou eth1 r3 tping 100 10 1.1.4.2 vrf v1 sou eth1 r3 tping 100 10 1234:4::2 vrf v1 sou eth1 r4 tping 100 10 1.1.1.2 vrf v1 sou eth1 r4 tping 100 10 1234:1::2 vrf v1 sou eth1 r4 tping 100 10 1.1.2.2 vrf v1 sou eth1 r4 tping 100 10 1234:2::2 vrf v1 sou eth1 r4 tping 100 10 1.1.3.2 vrf v1 sou eth1 r4 tping 100 10 1234:3::2 vrf v1 sou eth1 r4 tping 100 10 1.1.4.2 vrf v1 sou eth1 r4 tping 100 10 1234:4::2 vrf v1 sou eth1 r5 tping 100 10 1.1.1.2 vrf v1 sou eth1 r5 tping 100 10 1234:1::2 vrf v1 sou eth1 r5 tping 100 10 1.1.2.2 vrf v1 sou eth1 r5 tping 100 10 1234:2::2 vrf v1 sou eth1 r5 tping 100 10 1.1.3.2 vrf v1 sou eth1 r5 tping 100 10 1234:3::2 vrf v1 sou eth1 r5 tping 100 10 1.1.4.2 vrf v1 sou eth1 r5 tping 100 10 1234:4::2 vrf v1 sou eth1 r6 tping 100 10 1.1.1.2 vrf v1 sou eth1 r6 tping 100 10 1234:1::2 vrf v1 sou eth1 r6 tping 100 10 1.1.2.2 vrf v1 sou eth1 r6 tping 100 10 1234:2::2 vrf v1 sou eth1 r6 tping 100 10 1.1.3.2 vrf v1 sou eth1 r6 tping 100 10 1234:3::2 vrf v1 sou eth1 r6 tping 100 10 1.1.4.2 vrf v1 sou eth1 r6 tping 100 10 1234:4::2 vrf v1 sou eth1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 1.1.3.2 vrf v1 sou eth1 r1 dping sdn . r6 1234:3::2 vrf v1 sou eth1 freeRtr-24.11.16/cfg/p4lang-rout176.tst000066400000000000000000000266061471627602100173040ustar00rootroot00000000000000description p4lang: policy routing to sr te over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun domain 2.2.2.103 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun domain 4321::103 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun domain 2.2.2.104 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun domain 4321::104 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.105 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun domain 4321::105 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun domain 2.2.2.106 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun domain 4321::106 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.0 255.255.255.0 all 2.2.2.203 255.255.255.255 all exit access-list a2b6 permit all 4321:: ffff:ffff:ffff:ffff:: all 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 next 1.1.11.2 ipv6 pbr v1 a2b6 v1 next 1234:11::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature mpls pbr int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun domain 2.2.2.101 tun vrf v1 tun mod srmpls vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun domain 4321::101 tun vrf v1 tun mod srmpls vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 sou sdn1 r1 tping 100 10 1234:1::2 vrf v1 sou sdn1 r1 tping 100 10 1.1.2.2 vrf v1 sou sdn2 r1 tping 100 10 1234:2::2 vrf v1 sou sdn2 r1 tping 100 10 1.1.3.2 vrf v1 sou sdn3 r1 tping 100 10 1234:3::2 vrf v1 sou sdn3 r1 tping 100 10 1.1.4.2 vrf v1 sou sdn4 r1 tping 100 10 1234:4::2 vrf v1 sou sdn4 r3 tping 100 10 1.1.1.2 vrf v1 sou eth1 r3 tping 100 10 1234:1::2 vrf v1 sou eth1 r3 tping 100 10 1.1.2.2 vrf v1 sou eth1 r3 tping 100 10 1234:2::2 vrf v1 sou eth1 r3 tping 100 10 1.1.3.2 vrf v1 sou eth1 r3 tping 100 10 1234:3::2 vrf v1 sou eth1 r3 tping 100 10 1.1.4.2 vrf v1 sou eth1 r3 tping 100 10 1234:4::2 vrf v1 sou eth1 r4 tping 100 10 1.1.1.2 vrf v1 sou eth1 r4 tping 100 10 1234:1::2 vrf v1 sou eth1 r4 tping 100 10 1.1.2.2 vrf v1 sou eth1 r4 tping 100 10 1234:2::2 vrf v1 sou eth1 r4 tping 100 10 1.1.3.2 vrf v1 sou eth1 r4 tping 100 10 1234:3::2 vrf v1 sou eth1 r4 tping 100 10 1.1.4.2 vrf v1 sou eth1 r4 tping 100 10 1234:4::2 vrf v1 sou eth1 r5 tping 100 10 1.1.1.2 vrf v1 sou eth1 r5 tping 100 10 1234:1::2 vrf v1 sou eth1 r5 tping 100 10 1.1.2.2 vrf v1 sou eth1 r5 tping 100 10 1234:2::2 vrf v1 sou eth1 r5 tping 100 10 1.1.3.2 vrf v1 sou eth1 r5 tping 100 10 1234:3::2 vrf v1 sou eth1 r5 tping 100 10 1.1.4.2 vrf v1 sou eth1 r5 tping 100 10 1234:4::2 vrf v1 sou eth1 r6 tping 100 10 1.1.1.2 vrf v1 sou eth1 r6 tping 100 10 1234:1::2 vrf v1 sou eth1 r6 tping 100 10 1.1.2.2 vrf v1 sou eth1 r6 tping 100 10 1234:2::2 vrf v1 sou eth1 r6 tping 100 10 1.1.3.2 vrf v1 sou eth1 r6 tping 100 10 1234:3::2 vrf v1 sou eth1 r6 tping 100 10 1.1.4.2 vrf v1 sou eth1 r6 tping 100 10 1234:4::2 vrf v1 sou eth1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.203 vrf v1 sou lo0 r1 tping 100 10 4321::203 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.203 vrf v1 sou lo0 r3 tping 100 10 4321::203 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.203 vrf v1 sou lo0 r4 tping 100 10 4321::203 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.203 vrf v1 sou lo0 r5 tping 100 10 4321::203 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.203 vrf v1 sou lo0 r6 tping 100 10 4321::203 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.203 vrf v1 sou lo0 r1 dping sdn . r6 4321::203 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout177.tst000066400000000000000000000263031471627602100172770ustar00rootroot00000000000000description p4lang: policy routing to p2p te over mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.1 justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.0 255.255.255.0 all 2.2.2.203 255.255.255.255 all exit access-list a2b6 permit all 4321:: ffff:ffff:ffff:ffff:: all 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 next 1.1.11.2 ipv6 pbr v1 a2b6 v1 next 1234:11::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature mpls pbr int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit router lsrp4 1 vrf v1 router 4.4.4.6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod p2pte vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod p2pte vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 sou sdn1 r1 tping 100 10 1234:1::2 vrf v1 sou sdn1 r1 tping 100 10 1.1.2.2 vrf v1 sou sdn2 r1 tping 100 10 1234:2::2 vrf v1 sou sdn2 r1 tping 100 10 1.1.3.2 vrf v1 sou sdn3 r1 tping 100 10 1234:3::2 vrf v1 sou sdn3 r1 tping 100 10 1.1.4.2 vrf v1 sou sdn4 r1 tping 100 10 1234:4::2 vrf v1 sou sdn4 r3 tping 100 10 1.1.1.2 vrf v1 sou eth1 r3 tping 100 10 1234:1::2 vrf v1 sou eth1 r3 tping 100 10 1.1.2.2 vrf v1 sou eth1 r3 tping 100 10 1234:2::2 vrf v1 sou eth1 r3 tping 100 10 1.1.3.2 vrf v1 sou eth1 r3 tping 100 10 1234:3::2 vrf v1 sou eth1 r3 tping 100 10 1.1.4.2 vrf v1 sou eth1 r3 tping 100 10 1234:4::2 vrf v1 sou eth1 r4 tping 100 10 1.1.1.2 vrf v1 sou eth1 r4 tping 100 10 1234:1::2 vrf v1 sou eth1 r4 tping 100 10 1.1.2.2 vrf v1 sou eth1 r4 tping 100 10 1234:2::2 vrf v1 sou eth1 r4 tping 100 10 1.1.3.2 vrf v1 sou eth1 r4 tping 100 10 1234:3::2 vrf v1 sou eth1 r4 tping 100 10 1.1.4.2 vrf v1 sou eth1 r4 tping 100 10 1234:4::2 vrf v1 sou eth1 r5 tping 100 10 1.1.1.2 vrf v1 sou eth1 r5 tping 100 10 1234:1::2 vrf v1 sou eth1 r5 tping 100 10 1.1.2.2 vrf v1 sou eth1 r5 tping 100 10 1234:2::2 vrf v1 sou eth1 r5 tping 100 10 1.1.3.2 vrf v1 sou eth1 r5 tping 100 10 1234:3::2 vrf v1 sou eth1 r5 tping 100 10 1.1.4.2 vrf v1 sou eth1 r5 tping 100 10 1234:4::2 vrf v1 sou eth1 r6 tping 100 10 1.1.1.2 vrf v1 sou eth1 r6 tping 100 10 1234:1::2 vrf v1 sou eth1 r6 tping 100 10 1.1.2.2 vrf v1 sou eth1 r6 tping 100 10 1234:2::2 vrf v1 sou eth1 r6 tping 100 10 1.1.3.2 vrf v1 sou eth1 r6 tping 100 10 1234:3::2 vrf v1 sou eth1 r6 tping 100 10 1.1.4.2 vrf v1 sou eth1 r6 tping 100 10 1234:4::2 vrf v1 sou eth1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.203 vrf v1 sou lo0 r1 tping 100 10 4321::203 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.203 vrf v1 sou lo0 r3 tping 100 10 4321::203 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.203 vrf v1 sou lo0 r4 tping 100 10 4321::203 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.203 vrf v1 sou lo0 r5 tping 100 10 4321::203 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.203 vrf v1 sou lo0 r6 tping 100 10 4321::203 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.203 vrf v1 sou lo0 r1 dping sdn . r6 4321::203 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout178.tst000066400000000000000000000277041471627602100173060ustar00rootroot00000000000000description p4lang: nsh addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena nsh ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit nsh 1001 122 rou v1 nsh 1003 122 int sdn1 0000.0000.3333 nsh 1004 122 int sdn2 0000.0000.4444 nsh 1005 122 int sdn3 0000.0000.5555 nsh 1006 122 rou v1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route nsh int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.0 ipv6 addr 4321::103 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 121 rou v1 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.0 ipv6 addr 4321::104 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 121 rou v1 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1003 123 ipv6 pbr v1 test36 v1 nsh 1003 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.0 ipv6 addr 4321::105 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 121 rou v1 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.0 ipv6 addr 4321::106 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 2.2.2.101 vrf v1 sou eth1 r3 tping 100 10 4321::101 vrf v1 sou eth1 r3 tping 100 10 2.2.2.103 vrf v1 sou eth1 r3 tping 100 10 4321::103 vrf v1 sou eth1 r3 tping 100 10 2.2.2.104 vrf v1 sou eth1 r3 tping 100 10 4321::104 vrf v1 sou eth1 r3 tping 100 10 2.2.2.105 vrf v1 sou eth1 r3 tping 100 10 4321::105 vrf v1 sou eth1 r3 tping 100 10 2.2.2.106 vrf v1 sou eth1 r3 tping 100 10 4321::106 vrf v1 sou eth1 r4 tping 100 10 2.2.2.101 vrf v1 sou eth1 r4 tping 100 10 4321::101 vrf v1 sou eth1 r4 tping 100 10 2.2.2.103 vrf v1 sou eth1 r4 tping 100 10 4321::103 vrf v1 sou eth1 r4 tping 100 10 2.2.2.104 vrf v1 sou eth1 r4 tping 100 10 4321::104 vrf v1 sou eth1 r4 tping 100 10 2.2.2.105 vrf v1 sou eth1 r4 tping 100 10 4321::105 vrf v1 sou eth1 r4 tping 100 10 2.2.2.106 vrf v1 sou eth1 r4 tping 100 10 4321::106 vrf v1 sou eth1 r5 tping 100 10 2.2.2.101 vrf v1 sou eth1 r5 tping 100 10 4321::101 vrf v1 sou eth1 r5 tping 100 10 2.2.2.103 vrf v1 sou eth1 r5 tping 100 10 4321::103 vrf v1 sou eth1 r5 tping 100 10 2.2.2.104 vrf v1 sou eth1 r5 tping 100 10 4321::104 vrf v1 sou eth1 r5 tping 100 10 2.2.2.105 vrf v1 sou eth1 r5 tping 100 10 4321::105 vrf v1 sou eth1 r5 tping 100 10 2.2.2.106 vrf v1 sou eth1 r5 tping 100 10 4321::106 vrf v1 sou eth1 r6 tping 100 10 2.2.2.101 vrf v1 sou eth1 r6 tping 100 10 4321::101 vrf v1 sou eth1 r6 tping 100 10 2.2.2.103 vrf v1 sou eth1 r6 tping 100 10 4321::103 vrf v1 sou eth1 r6 tping 100 10 2.2.2.104 vrf v1 sou eth1 r6 tping 100 10 4321::104 vrf v1 sou eth1 r6 tping 100 10 2.2.2.105 vrf v1 sou eth1 r6 tping 100 10 4321::105 vrf v1 sou eth1 r6 tping 100 10 2.2.2.106 vrf v1 sou eth1 r6 tping 100 10 4321::106 vrf v1 sou eth1 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout179.tst000066400000000000000000000300411471627602100172730ustar00rootroot00000000000000description p4lang: vlan nsh addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena nsh ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit nsh 1001 122 rou v1 nsh 1003 122 int sdn1.111 0000.0000.3333 nsh 1004 122 int sdn2 0000.0000.4444 nsh 1005 122 int sdn3 0000.0000.5555 nsh 1006 122 rou v1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route nsh int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.0 ipv6 addr 4321::103 ffff:ffff:: exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1.111 0000.0000.1111 nsh 1003 121 rou v1 nsh 1004 123 int eth1.111 0000.0000.1111 nsh 1005 123 int eth1.111 0000.0000.1111 nsh 1006 123 int eth1.111 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.0 ipv6 addr 4321::104 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 121 rou v1 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1003 123 ipv6 pbr v1 test36 v1 nsh 1003 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.0 ipv6 addr 4321::105 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 121 rou v1 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.0 ipv6 addr 4321::106 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 2.2.2.101 vrf v1 sou eth1.111 r3 tping 100 10 4321::101 vrf v1 sou eth1.111 r3 tping 100 10 2.2.2.103 vrf v1 sou eth1.111 r3 tping 100 10 4321::103 vrf v1 sou eth1.111 r3 tping 100 10 2.2.2.104 vrf v1 sou eth1.111 r3 tping 100 10 4321::104 vrf v1 sou eth1.111 r3 tping 100 10 2.2.2.105 vrf v1 sou eth1.111 r3 tping 100 10 4321::105 vrf v1 sou eth1.111 r3 tping 100 10 2.2.2.106 vrf v1 sou eth1.111 r3 tping 100 10 4321::106 vrf v1 sou eth1.111 r4 tping 100 10 2.2.2.101 vrf v1 sou eth1 r4 tping 100 10 4321::101 vrf v1 sou eth1 r4 tping 100 10 2.2.2.103 vrf v1 sou eth1 r4 tping 100 10 4321::103 vrf v1 sou eth1 r4 tping 100 10 2.2.2.104 vrf v1 sou eth1 r4 tping 100 10 4321::104 vrf v1 sou eth1 r4 tping 100 10 2.2.2.105 vrf v1 sou eth1 r4 tping 100 10 4321::105 vrf v1 sou eth1 r4 tping 100 10 2.2.2.106 vrf v1 sou eth1 r4 tping 100 10 4321::106 vrf v1 sou eth1 r5 tping 100 10 2.2.2.101 vrf v1 sou eth1 r5 tping 100 10 4321::101 vrf v1 sou eth1 r5 tping 100 10 2.2.2.103 vrf v1 sou eth1 r5 tping 100 10 4321::103 vrf v1 sou eth1 r5 tping 100 10 2.2.2.104 vrf v1 sou eth1 r5 tping 100 10 4321::104 vrf v1 sou eth1 r5 tping 100 10 2.2.2.105 vrf v1 sou eth1 r5 tping 100 10 4321::105 vrf v1 sou eth1 r5 tping 100 10 2.2.2.106 vrf v1 sou eth1 r5 tping 100 10 4321::106 vrf v1 sou eth1 r6 tping 100 10 2.2.2.101 vrf v1 sou eth1 r6 tping 100 10 4321::101 vrf v1 sou eth1 r6 tping 100 10 2.2.2.103 vrf v1 sou eth1 r6 tping 100 10 4321::103 vrf v1 sou eth1 r6 tping 100 10 2.2.2.104 vrf v1 sou eth1 r6 tping 100 10 4321::104 vrf v1 sou eth1 r6 tping 100 10 2.2.2.105 vrf v1 sou eth1 r6 tping 100 10 4321::105 vrf v1 sou eth1 r6 tping 100 10 2.2.2.106 vrf v1 sou eth1 r6 tping 100 10 4321::106 vrf v1 sou eth1 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout180.tst000066400000000000000000000354111471627602100172710ustar00rootroot00000000000000description p4lang: polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature polka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.11.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::105 tun domain 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout181.tst000066400000000000000000000354521471627602100172770ustar00rootroot00000000000000description p4lang: vlan polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature vlan polka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.11.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::105 tun domain 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout182.tst000066400000000000000000000210341471627602100172670ustar00rootroot00000000000000description p4lang: mpolka core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature mpolka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.101 2.2.2.104 2.2.2.105 2.2.2.106 , 2.2.2.104 2.2.2.104 , 2.2.2.105 2.2.2.105 , 2.2.2.106 2.2.2.106 , tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::101 4321::104 4321::105 4321::106 , 4321::104 4321::104 , 4321::105 4321::105 , 4321::106 4321::106 , tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 300 5 3.3.3.1 vrf v1 sou lo0 multi r3 tping 300 5 3333::1 vrf v1 sou lo0 multi r1 dping sdn . r3 3.3.3.1 vrf v1 sou lo0 r1 dping sdn . r3 3333::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout183.tst000066400000000000000000000210751471627602100172750ustar00rootroot00000000000000description p4lang: mpolka vlan core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 exit int sdn3.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature vlan mpolka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.101 2.2.2.104 2.2.2.105 2.2.2.106 , 2.2.2.104 2.2.2.104 , 2.2.2.105 2.2.2.105 , 2.2.2.106 2.2.2.106 , tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::101 4321::104 4321::105 4321::106 , 4321::104 4321::104 , 4321::105 4321::105 , 4321::106 4321::106 , tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 300 5 3.3.3.1 vrf v1 sou lo0 multi r3 tping 300 5 3333::1 vrf v1 sou lo0 multi r1 dping sdn . r3 3.3.3.1 vrf v1 sou lo0 r1 dping sdn . r3 3333::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout184.tst000066400000000000000000000210131471627602100172660ustar00rootroot00000000000000description p4lang: mpolka edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature mpolka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.101 2.2.2.101 2.2.2.104 2.2.2.105 , 2.2.2.104 2.2.2.104 , 2.2.2.105 2.2.2.105 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::101 4321::101 4321::104 4321::105 , 4321::104 4321::104 , 4321::105 4321::105 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert lo1 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert lo1 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 300 5 3.3.3.1 vrf v1 sou lo0 multi r3 tping 300 5 3333::1 vrf v1 sou lo0 multi r1 dping sdn . r3 3.3.3.1 vrf v1 sou lo0 r1 dping sdn . r3 3333::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout185.tst000066400000000000000000000210541471627602100172740ustar00rootroot00000000000000description p4lang: mpolka vlan edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 exit int sdn3.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature vlan mpolka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.101 2.2.2.101 2.2.2.104 2.2.2.105 , 2.2.2.104 2.2.2.104 , 2.2.2.105 2.2.2.105 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::3 tunnel domain-name 4321::101 4321::101 4321::104 4321::105 , 4321::104 4321::104 , 4321::105 4321::105 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 ipv6 address 3333::1 ffff:ffff:: exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert lo1 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert lo1 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 300 5 3.3.3.1 vrf v1 sou lo0 multi r3 tping 300 5 3333::1 vrf v1 sou lo0 multi r1 dping sdn . r3 3.3.3.1 vrf v1 sou lo0 r1 dping sdn . r3 3333::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout186.tst000066400000000000000000000237671471627602100173120ustar00rootroot00000000000000description p4lang: gtp server over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit ipv4 pool p4 1.1.1.2 0.0.0.1 1 ipv6 pool p6 1234:1::2 ::1 1 int di1 enc iponly vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv4 pool p4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 pool p6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server gtp gtp clone di1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gtp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun sou bvi1 tun vrf v2 tun dest 9.9.9.1 tun mod gtp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout187.tst000066400000000000000000000237751471627602100173120ustar00rootroot00000000000000description p4lang: gtp server over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit ipv4 pool p4 1.1.1.2 0.0.0.1 1 ipv6 pool p6 1234:1::2 ::1 1 int di1 enc iponly vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv4 pool p4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 pool p6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server gtp gtp clone di1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gtp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun sou bvi1 tun vrf v2 tun dest 9999::1 tun mod gtp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout188.tst000066400000000000000000000244231471627602100173020ustar00rootroot00000000000000description p4lang: gtp server over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit ipv4 pool p4 1.1.1.2 0.0.0.1 1 ipv6 pool p6 1234:1::2 ::1 1 int di1 enc iponly vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv4 pool p4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 pool p6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server gtp gtp clone di1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gtp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int tun1 tun sou lo1 tun vrf v2 tun dest 8.8.8.1 tun mod gtp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout189.tst000066400000000000000000000246031471627602100173030ustar00rootroot00000000000000description p4lang: gtp server over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit ipv4 pool p4 1.1.1.2 0.0.0.1 1 ipv6 pool p6 1234:1::2 ::1 1 int di1 enc iponly vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv4 pool p4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 pool p6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server gtp gtp clone di1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gtp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int tun1 tun sou lo1 tun vrf v2 tun dest 8888::1 tun mod gtp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout190.tst000066400000000000000000000155161471627602100172760ustar00rootroot00000000000000description p4lang: bundle mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout191.tst000066400000000000000000000155361471627602100173010ustar00rootroot00000000000000description p4lang: bundle vlan mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout192.tst000066400000000000000000000226231471627602100172750ustar00rootroot00000000000000description p4lang: pppoe mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout193.tst000066400000000000000000000234261471627602100173000ustar00rootroot00000000000000description p4lang: gre mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout194.tst000066400000000000000000000233621471627602100173000ustar00rootroot00000000000000description p4lang: l2tp mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout195.tst000066400000000000000000000155171471627602100173040ustar00rootroot00000000000000description p4lang: bundle mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout196.tst000066400000000000000000000155371471627602100173070ustar00rootroot00000000000000description p4lang: bundle vlan mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout197.tst000066400000000000000000000226241471627602100173030ustar00rootroot00000000000000description p4lang: pppoe mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout198.tst000066400000000000000000000234271471627602100173060ustar00rootroot00000000000000description p4lang: gre mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout199.tst000066400000000000000000000233631471627602100173060ustar00rootroot00000000000000description p4lang: l2tp mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout200.tst000066400000000000000000000203331471627602100172570ustar00rootroot00000000000000description p4lang: lpm routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.0 255.255.255.0 1.1.2.2 ipv4 route v1 2.2.0.0 255.255.0.0 1.1.3.2 ipv4 route v1 2.0.0.0 255.0.0.0 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321:: ffff:: 1234:2::2 ipv6 route v1 4320:: fff0:: 1234:3::2 ipv6 route v1 4300:: ff00:: 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.24 255.255.255.255 ipv6 addr 4321::24 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 route v1 :: :: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.1.105 255.255.255.255 ipv6 addr 4320::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.3.105 255.255.255.255 ipv6 addr 4322::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 route v1 :: :: 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.1.2.106 255.255.255.255 ipv6 addr 4311::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.3.2.106 255.255.255.255 ipv6 addr 4331::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.4.1 ipv6 route v1 :: :: 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.24 vrf v1 sou lo0 r1 tping 100 10 4321::24 vrf v1 sou lo0 r1 tping 100 10 2.2.1.105 vrf v1 sou lo0 r1 tping 100 10 4320::105 vrf v1 sou lo0 r1 tping 100 10 2.2.3.105 vrf v1 sou lo0 r1 tping 100 10 4322::105 vrf v1 sou lo0 r1 tping 100 10 2.1.2.106 vrf v1 sou lo0 r1 tping 100 10 4311::106 vrf v1 sou lo0 r1 tping 100 10 2.3.2.106 vrf v1 sou lo0 r1 tping 100 10 4331::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.24 vrf v1 sou lo0 r3 tping 100 10 4321::24 vrf v1 sou lo0 r3 tping 100 10 2.2.1.105 vrf v1 sou lo0 r3 tping 100 10 4320::105 vrf v1 sou lo0 r3 tping 100 10 2.2.3.105 vrf v1 sou lo0 r3 tping 100 10 4322::105 vrf v1 sou lo0 r3 tping 100 10 2.1.2.106 vrf v1 sou lo0 r3 tping 100 10 4311::106 vrf v1 sou lo0 r3 tping 100 10 2.3.2.106 vrf v1 sou lo0 r3 tping 100 10 4331::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.24 vrf v1 sou lo0 r4 tping 100 10 4321::24 vrf v1 sou lo0 r4 tping 100 10 2.2.1.105 vrf v1 sou lo0 r4 tping 100 10 4320::105 vrf v1 sou lo0 r4 tping 100 10 2.2.3.105 vrf v1 sou lo0 r4 tping 100 10 4322::105 vrf v1 sou lo0 r4 tping 100 10 2.1.2.106 vrf v1 sou lo0 r4 tping 100 10 4311::106 vrf v1 sou lo0 r4 tping 100 10 2.3.2.106 vrf v1 sou lo0 r4 tping 100 10 4331::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.24 vrf v1 sou lo0 r5 tping 100 10 4321::24 vrf v1 sou lo0 r5 tping 100 10 2.2.1.105 vrf v1 sou lo0 r5 tping 100 10 4320::105 vrf v1 sou lo0 r5 tping 100 10 2.2.3.105 vrf v1 sou lo0 r5 tping 100 10 4322::105 vrf v1 sou lo0 r5 tping 100 10 2.1.2.106 vrf v1 sou lo0 r5 tping 100 10 4311::106 vrf v1 sou lo0 r5 tping 100 10 2.3.2.106 vrf v1 sou lo0 r5 tping 100 10 4331::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.24 vrf v1 sou lo0 r6 tping 100 10 4321::24 vrf v1 sou lo0 r6 tping 100 10 2.2.1.105 vrf v1 sou lo0 r6 tping 100 10 4320::105 vrf v1 sou lo0 r6 tping 100 10 2.2.3.105 vrf v1 sou lo0 r6 tping 100 10 4322::105 vrf v1 sou lo0 r6 tping 100 10 2.1.2.106 vrf v1 sou lo0 r6 tping 100 10 4311::106 vrf v1 sou lo0 r6 tping 100 10 2.3.2.106 vrf v1 sou lo0 r6 tping 100 10 4331::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.1.105 vrf v1 sou lo0 r1 dping sdn . r3 4320::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout201.tst000066400000000000000000000207701471627602100172650ustar00rootroot00000000000000description p4lang: l2vpn over bundle mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout202.tst000066400000000000000000000210101471627602100172520ustar00rootroot00000000000000description p4lang: l2vpn over bundle vlan mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout203.tst000066400000000000000000000260751471627602100172730ustar00rootroot00000000000000description p4lang: l2vpn over pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.104 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::104 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r4 tping 100 10 4.4.4.1 vrf v2 r4 tping 100 10 4.4.6.1 vrf v2 r4 tping 100 10 4444::1 vrf v2 r4 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r4 tping 100 10 4.4.5.1 vrf v2 r4 tping 100 10 4.4.7.1 vrf v2 r4 tping 100 10 4445::1 vrf v2 r4 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout204.tst000066400000000000000000000267001471627602100172670ustar00rootroot00000000000000description p4lang: l2vpn over gre mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout205.tst000066400000000000000000000266341471627602100172760ustar00rootroot00000000000000description p4lang: l2vpn over l2tp mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout206.tst000066400000000000000000000227551471627602100172770ustar00rootroot00000000000000description p4lang: l3vpn over bundle mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout207.tst000066400000000000000000000227751471627602100173020ustar00rootroot00000000000000description p4lang: l3vpn over bundle vlan mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout208.tst000066400000000000000000000300621471627602100172670ustar00rootroot00000000000000description p4lang: l3vpn over pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 p2poe client di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.104 remote-as 1 neigh 2.2.2.104 update lo0 neigh 2.2.2.104 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::104 remote-as 1 neigh 4321::104 update lo0 neigh 4321::104 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1 p2poe relay di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r4 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r4 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r4 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r4 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout209.tst000066400000000000000000000306651471627602100173010ustar00rootroot00000000000000description p4lang: l3vpn over gre mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout210.tst000066400000000000000000000306211471627602100172610ustar00rootroot00000000000000description p4lang: l3vpn over l2tp mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout211.tst000066400000000000000000000277301471627602100172710ustar00rootroot00000000000000description p4lang: routing over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int bun1 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int bun2 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r8 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r8 4321::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout212.tst000066400000000000000000000213151471627602100172630ustar00rootroot00000000000000description p4lang: bridging over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit bridge 1 mac-learn exit int sdn11 bridge-gr 1 exit int sdn12 bridge-gr 1 exit int bun1 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 bridge-gr 1 exit int sdn22 bridge-gr 1 exit int bun2 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-br 1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-br 1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls vpls bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls vpls bridge int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.3 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::6 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234::5 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.3 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::6 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.0 ipv6 addr 1234::6 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.3 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.5 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::5 ! r5 tping 100 10 1.1.1.3 vrf v1 r5 tping 100 10 1234::3 vrf v1 r5 tping 100 10 1.1.1.4 vrf v1 r5 tping 100 10 1234::4 vrf v1 r5 tping 100 10 1.1.1.5 vrf v1 r5 tping 100 10 1234::5 vrf v1 r5 tping 100 10 1.1.1.6 vrf v1 r5 tping 100 10 1234::6 vrf v1 r6 tping 100 10 1.1.1.3 vrf v1 r6 tping 100 10 1234::3 vrf v1 r6 tping 100 10 1.1.1.4 vrf v1 r6 tping 100 10 1234::4 vrf v1 r6 tping 100 10 1.1.1.5 vrf v1 r6 tping 100 10 1234::5 vrf v1 r6 tping 100 10 1.1.1.6 vrf v1 r6 tping 100 10 1234::6 vrf v1 r7 tping 100 10 1.1.1.3 vrf v1 r7 tping 100 10 1234::3 vrf v1 r7 tping 100 10 1.1.1.4 vrf v1 r7 tping 100 10 1234::4 vrf v1 r7 tping 100 10 1.1.1.5 vrf v1 r7 tping 100 10 1234::5 vrf v1 r7 tping 100 10 1.1.1.6 vrf v1 r7 tping 100 10 1234::6 vrf v1 r8 tping 100 10 1.1.1.3 vrf v1 r8 tping 100 10 1234::3 vrf v1 r8 tping 100 10 1.1.1.4 vrf v1 r8 tping 100 10 1234::4 vrf v1 r8 tping 100 10 1.1.1.5 vrf v1 r8 tping 100 10 1234::5 vrf v1 r8 tping 100 10 1.1.1.6 vrf v1 r8 tping 100 10 1234::6 vrf v1 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r8 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r8 4321::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout213.tst000066400000000000000000000321511471627602100172640ustar00rootroot00000000000000description p4lang: mpls core over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 label-mode per-prefix rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int bun1 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int bun2 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 label-mode per-prefix rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.106 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::106 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 label-mode per-prefix rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 label-mode per-prefix rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 label-mode per-prefix rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 4.4.4.2 vrf v2 r5 tping 100 10 4.4.6.2 vrf v2 r5 tping 100 10 4444::2 vrf v2 r5 tping 100 10 4446::2 vrf v2 r8 tping 100 10 4.4.4.1 vrf v2 r8 tping 100 10 4.4.6.1 vrf v2 r8 tping 100 10 4444::1 vrf v2 r8 tping 100 10 4446::1 vrf v2 r1 dping sdn . r8 4.4.4.1 vrf v2 r1 dping sdn . r8 4446::1 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout214.tst000066400000000000000000000305501471627602100172660ustar00rootroot00000000000000description p4lang: mpls vpn over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int bun1 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn22 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int bun2 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.104 temp a neigh 2.2.2.105 temp a afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::104 temp a neigh 4321::105 temp a afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit server p4lang a interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-vrf v2 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ipv4 route v2 3.3.3.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v2 3.3.3.106 255.255.255.255 1.1.4.2 ipv6 route v2 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v2 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 3.3.3.101 255.255.255.255 1.1.1.1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.1.1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.1.1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.1.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.5 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.5 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv4 route v1 3.3.3.101 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.4.1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.4.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 3.3.3.101 vrf v2 sou lo1 r1 tping 100 10 3333::101 vrf v2 sou lo1 r1 tping 100 10 3.3.3.103 vrf v2 sou lo1 r1 tping 100 10 3333::103 vrf v2 sou lo1 r1 tping 100 10 3.3.3.104 vrf v2 sou lo1 r1 tping 100 10 3333::104 vrf v2 sou lo1 r1 tping 100 10 3.3.3.105 vrf v2 sou lo1 r1 tping 100 10 3333::105 vrf v2 sou lo1 r1 tping 100 10 3.3.3.106 vrf v2 sou lo1 r1 tping 100 10 3333::106 vrf v2 sou lo1 r6 tping 100 10 3.3.3.101 vrf v2 sou lo1 r6 tping 100 10 3333::101 vrf v2 sou lo1 r6 tping 100 10 3.3.3.103 vrf v2 sou lo1 r6 tping 100 10 3333::103 vrf v2 sou lo1 r6 tping 100 10 3.3.3.104 vrf v2 sou lo1 r6 tping 100 10 3333::104 vrf v2 sou lo1 r6 tping 100 10 3.3.3.105 vrf v2 sou lo1 r6 tping 100 10 3333::105 vrf v2 sou lo1 r6 tping 100 10 3.3.3.106 vrf v2 sou lo1 r6 tping 100 10 3333::106 vrf v2 sou lo1 r7 tping 100 10 3.3.3.101 vrf v2 sou lo1 r7 tping 100 10 3333::101 vrf v2 sou lo1 r7 tping 100 10 3.3.3.103 vrf v2 sou lo1 r7 tping 100 10 3333::103 vrf v2 sou lo1 r7 tping 100 10 3.3.3.104 vrf v2 sou lo1 r7 tping 100 10 3333::104 vrf v2 sou lo1 r7 tping 100 10 3.3.3.105 vrf v2 sou lo1 r7 tping 100 10 3333::105 vrf v2 sou lo1 r7 tping 100 10 3.3.3.106 vrf v2 sou lo1 r7 tping 100 10 3333::106 vrf v2 sou lo1 r5 tping 100 10 3.3.3.101 vrf v1 sou lo0 r5 tping 100 10 3333::101 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r8 tping 100 10 3.3.3.101 vrf v1 sou lo0 r8 tping 100 10 3333::101 vrf v1 sou lo0 r8 tping 100 10 3.3.3.103 vrf v1 sou lo0 r8 tping 100 10 3333::103 vrf v1 sou lo0 r8 tping 100 10 3.3.3.104 vrf v1 sou lo0 r8 tping 100 10 3333::104 vrf v1 sou lo0 r8 tping 100 10 3.3.3.105 vrf v1 sou lo0 r8 tping 100 10 3333::105 vrf v1 sou lo0 r8 tping 100 10 3.3.3.106 vrf v1 sou lo0 r8 tping 100 10 3333::106 vrf v1 sou lo0 r1 dping sdn . r8 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r8 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout215.tst000066400000000000000000000127451471627602100172750ustar00rootroot00000000000000description p4lang: local connect addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn4 connect sdn3 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature loconn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r3 tping 100 10 1.1.2.1 vrf v1 r3 tping 100 10 1234:2::1 vrf v1 r4 tping 100 10 1.1.1.1 vrf v1 r4 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.1 vrf v1 r4 tping 100 10 1234:2::1 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout216.tst000066400000000000000000000114401471627602100172650ustar00rootroot00000000000000description p4lang: vlan local connect addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn3 exit int sdn3.111 exit int sdn3.222 connect sdn2 exit int sdn4 exit int sdn4.111 connect sdn3.111 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature vlan loconn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.5 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit int eth1.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.3.5 vrf v1 r4 tping 100 10 1234:3::5 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout217.tst000066400000000000000000000233361471627602100172750ustar00rootroot00000000000000description p4lang: pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 pmtud-in 1400 ipv6 pmtud-in 1400 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route pmtud int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 siz 1400 r6 tping 100 10 4321::103 vrf v1 sou lo0 siz 1400 r6 tping -100 10 2.2.2.103 vrf v1 sou lo0 siz 1401 error r6 tping -100 10 4321::103 vrf v1 sou lo0 siz 1401 error r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout218.tst000066400000000000000000000235041471627602100172730ustar00rootroot00000000000000description p4lang: vlan pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 pmtud-in 1400 ipv6 pmtud-in 1400 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan pmtud int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 siz 1400 r6 tping 100 10 4321::103 vrf v1 sou lo0 siz 1400 r6 tping -100 10 2.2.2.103 vrf v1 sou lo0 siz 1401 error r6 tping -100 10 4321::103 vrf v1 sou lo0 siz 1401 error r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout219.tst000066400000000000000000000246451471627602100173030ustar00rootroot00000000000000description p4lang: tcpmss addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route tcpmss int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v2 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 2.2.2.103 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 4321::103 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 30 2.2.2.0 vrf v2 siz 3000 r6 tping 100 30 2.2.2.0 vrf v3 siz 3000 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout220.tst000066400000000000000000000250131471627602100172610ustar00rootroot00000000000000description p4lang: vlan tcpmss addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit int sdn2 exit int sdn2.111 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan tcpmss int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v2 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 2.2.2.103 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 4321::103 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 30 2.2.2.0 vrf v2 siz 3000 r6 tping 100 30 2.2.2.0 vrf v3 siz 3000 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout221.tst000066400000000000000000000140121471627602100172570ustar00rootroot00000000000000description p4lang: bridge tcpmss addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge tcpmss int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vrf def v2 rd 1:1 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v2 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 2.2.2.104 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 4321::104 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 30 2.2.2.0 vrf v2 siz 3000 r6 tping 100 30 2.2.2.0 vrf v3 siz 3000 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout222.tst000066400000000000000000000141601471627602100172640ustar00rootroot00000000000000description p4lang: vlan bridge tcpmss addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.111 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vlan tcpmss int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vrf def v2 rd 1:1 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v2 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 2.2.2.104 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 4321::104 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 30 2.2.2.0 vrf v2 siz 3000 r6 tping 100 30 2.2.2.0 vrf v3 siz 3000 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout223.tst000066400000000000000000000125071471627602100172700ustar00rootroot00000000000000description p4lang: bridge pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 1 bridge-pmtud ipv4in 1400 3.3.3.3 bridge-pmtud ipv6in 1400 3333::3 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pmtud int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 siz 1400 r6 tping 100 10 4321::104 vrf v1 sou lo0 siz 1400 r6 tping -100 10 2.2.2.104 vrf v1 sou lo0 siz 1401 error r6 tping -100 10 4321::104 vrf v1 sou lo0 siz 1401 error r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout224.tst000066400000000000000000000126551471627602100172750ustar00rootroot00000000000000description p4lang: vlan bridge pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.111 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 bridge-gr 1 exit int sdn3 exit int sdn3.111 bridge-gr 1 exit int sdn4 exit int sdn4.111 bridge-gr 1 bridge-pmtud ipv4in 1400 3.3.3.3 bridge-pmtud ipv6in 1400 3333::3 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vlan pmtud int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 siz 1400 r6 tping 100 10 4321::104 vrf v1 sou lo0 siz 1400 r6 tping -100 10 2.2.2.104 vrf v1 sou lo0 siz 1401 error r6 tping -100 10 4321::104 vrf v1 sou lo0 siz 1401 error r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout225.tst000066400000000000000000000361441471627602100172750ustar00rootroot00000000000000description p4lang: ip ttl exceed addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.4.2 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ int eth2 eth 0000.0000.6666 $7a$ $7b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.5.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.5.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ int eth2 eth 0000.0000.7777 $8a$ $8b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.6.1 255.255.255.0 ipv6 addr 1234:6::1 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.6.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::2 ! addrouter r8 int eth1 eth 0000.0000.8888 $8b$ $8a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.108 255.255.255.255 ipv6 addr 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.6.2 255.255.255.0 ipv6 addr 1234:6::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.6.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r1 tping 100 10 2.2.2.108 vrf v1 sou lo0 r1 tping 100 10 4321::108 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.108 vrf v1 sou lo0 r3 tping 100 10 4321::108 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.108 vrf v1 sou lo0 r4 tping 100 10 4321::108 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.108 vrf v1 sou lo0 r5 tping 100 10 4321::108 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.108 vrf v1 sou lo0 r6 tping 100 10 4321::108 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.108 vrf v1 sou lo0 r7 tping 100 10 4321::108 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.107 vrf v1 sou lo0 r8 tping 100 10 4321::107 vrf v1 sou lo0 r8 tping 100 10 2.2.2.108 vrf v1 sou lo0 r8 tping 100 10 4321::108 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 1 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 1 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 1 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.104 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::104 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.105 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::105 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::106 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.107 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::107 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.108 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::108 vrf v1 sou lo0 ttl 1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::104 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::105 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::106 vrf v1 sou lo0 ttl 2 r3 tping 0 10 2.2.2.107 vrf v1 sou lo0 ttl 2 r3 tping 0 10 4321::107 vrf v1 sou lo0 ttl 2 r3 tping 0 10 2.2.2.108 vrf v1 sou lo0 ttl 2 r3 tping 0 10 4321::108 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::104 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::105 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::106 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::107 vrf v1 sou lo0 ttl 3 r3 tping 0 10 2.2.2.108 vrf v1 sou lo0 ttl 3 r3 tping 0 10 4321::108 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::104 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::105 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::106 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::107 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.108 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::108 vrf v1 sou lo0 ttl 4 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout226.tst000066400000000000000000000426311471627602100172740ustar00rootroot00000000000000description p4lang: mpls ttl exceed addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.4.2 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ int eth2 eth 0000.0000.6666 $7a$ $7b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.5.1 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.5.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ int eth2 eth 0000.0000.7777 $8a$ $8b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.6.1 255.255.255.0 ipv6 addr 1234:6::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.108 255.255.255.255 1.1.6.2 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::2 ! addrouter r8 int eth1 eth 0000.0000.8888 $8b$ $8a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.108 255.255.255.255 ipv6 addr 4321::108 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.6.2 255.255.255.0 ipv6 addr 1234:6::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.6.1 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.6.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:6::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r1 tping 100 10 2.2.2.108 vrf v1 sou lo0 r1 tping 100 10 4321::108 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.108 vrf v1 sou lo0 r3 tping 100 10 4321::108 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.108 vrf v1 sou lo0 r4 tping 100 10 4321::108 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.108 vrf v1 sou lo0 r5 tping 100 10 4321::108 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.108 vrf v1 sou lo0 r6 tping 100 10 4321::108 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.108 vrf v1 sou lo0 r7 tping 100 10 4321::108 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.107 vrf v1 sou lo0 r8 tping 100 10 4321::107 vrf v1 sou lo0 r8 tping 100 10 2.2.2.108 vrf v1 sou lo0 r8 tping 100 10 4321::108 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 1 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 1 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 1 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.104 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::104 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.105 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::105 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.106 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::106 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.107 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::107 vrf v1 sou lo0 ttl 1 r3 tping 0 10 2.2.2.108 vrf v1 sou lo0 ttl 1 r3 tping 0 10 4321::108 vrf v1 sou lo0 ttl 1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::104 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::105 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 ttl 2 r3 tping 100 10 4321::106 vrf v1 sou lo0 ttl 2 r3 tping 0 10 2.2.2.107 vrf v1 sou lo0 ttl 2 r3 tping 0 10 4321::107 vrf v1 sou lo0 ttl 2 r3 tping 0 10 2.2.2.108 vrf v1 sou lo0 ttl 2 r3 tping 0 10 4321::108 vrf v1 sou lo0 ttl 2 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::104 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::105 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::106 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 ttl 3 r3 tping 100 10 4321::107 vrf v1 sou lo0 ttl 3 r3 tping 0 10 2.2.2.108 vrf v1 sou lo0 ttl 3 r3 tping 0 10 4321::108 vrf v1 sou lo0 ttl 3 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::101 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::103 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::104 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::105 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::106 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::107 vrf v1 sou lo0 ttl 4 r3 tping 100 10 2.2.2.108 vrf v1 sou lo0 ttl 4 r3 tping 100 10 4321::108 vrf v1 sou lo0 ttl 4 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout227.tst000066400000000000000000000247121471627602100172750ustar00rootroot00000000000000description p4lang: null routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.0 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 exit int nul0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo0 r1 tping 100 10 4321::201 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 0 10 2.2.2.101 vrf v1 sou lo0 r3 tping 0 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.201 vrf v1 sou lo0 r3 tping 100 10 4321::201 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 0 10 2.2.2.101 vrf v1 sou lo0 r4 tping 0 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.201 vrf v1 sou lo0 r4 tping 100 10 4321::201 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 0 10 2.2.2.101 vrf v1 sou lo0 r5 tping 0 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.201 vrf v1 sou lo0 r5 tping 100 10 4321::201 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 0 10 2.2.2.101 vrf v1 sou lo0 r6 tping 0 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.201 vrf v1 sou lo0 r6 tping 100 10 4321::201 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout228.tst000066400000000000000000000244161471627602100172770ustar00rootroot00000000000000description p4lang: fib filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int nul0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.0 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit prefix-list p4 sequence 10 deny 2.2.2.104/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::104/128 sequence 20 permit ::/0 le 128 exit server p4lang p4 interconnect eth2 export-vrf v1 filter-list4 v1 p4 filter-list6 v1 p6 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 0 10 2.2.2.104 vrf v1 sou lo0 r3 tping 0 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 0 10 2.2.2.103 vrf v1 sou lo0 r4 tping 0 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout229.tst000066400000000000000000000245221471627602100172760ustar00rootroot00000000000000description p4lang: fib filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int nul0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.0 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit route-map p4 sequence 10 act deny match network 2.2.2.104/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::104/128 sequence 20 act perm match network ::/0 le 128 exit server p4lang p4 interconnect eth2 export-vrf v1 filter-map4 v1 p4 filter-map6 v1 p6 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 0 10 2.2.2.104 vrf v1 sou lo0 r3 tping 0 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 0 10 2.2.2.103 vrf v1 sou lo0 r4 tping 0 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout230.tst000066400000000000000000000243711471627602100172700ustar00rootroot00000000000000description p4lang: fib filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int nul0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.0 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit route-policy p4 if network 2.2.2.104/32 drop else pass enif exit route-policy p6 if network 4321::104/128 drop else pass enif exit server p4lang p4 interconnect eth2 export-vrf v1 filter-policy4 v1 p4 filter-policy6 v1 p6 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 0 10 2.2.2.104 vrf v1 sou lo0 r3 tping 0 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 0 10 2.2.2.103 vrf v1 sou lo0 r4 tping 0 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 0 10 2.2.2.105 vrf v1 sou lo0 r4 tping 0 10 4321::105 vrf v1 sou lo0 r4 tping 0 10 2.2.2.106 vrf v1 sou lo0 r4 tping 0 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 0 10 2.2.2.104 vrf v1 sou lo0 r5 tping 0 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 0 10 2.2.2.104 vrf v1 sou lo0 r6 tping 0 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout231.tst000066400000000000000000000234201471627602100172630ustar00rootroot00000000000000description p4lang: routing with fib compression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 filter-compress4 v1 filter-compress6 v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout232.tst000066400000000000000000000236251471627602100172730ustar00rootroot00000000000000description p4lang: mpls with fib compression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 filter-compress4 v1 filter-compress6 v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv4 route v1 2.2.2.107 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv6 route v1 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout233.tst000066400000000000000000000235351471627602100172740ustar00rootroot00000000000000description p4lang: l2tp3 routing over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout234.tst000066400000000000000000000235431471627602100172740ustar00rootroot00000000000000description p4lang: l2tp3 routing over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9999::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9999::1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout235.tst000066400000000000000000000235471471627602100173010ustar00rootroot00000000000000description p4lang: l2tp3 server routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server l2tp3 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout236.tst000066400000000000000000000236141471627602100172750ustar00rootroot00000000000000description p4lang: vlan l2tp3 server routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server l2tp3 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1.222 l2tp3 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout237.tst000066400000000000000000000240621471627602100172740ustar00rootroot00000000000000description p4lang: l2tp3 server mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server l2tp3 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout238.tst000066400000000000000000000241271471627602100172770ustar00rootroot00000000000000description p4lang: vlan l2tp3 server mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server l2tp3 l clone dialer1 vrf v2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1.222 l2tp3 9.9.9.1 1234 control vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout239.tst000066400000000000000000000256001471627602100172750ustar00rootroot00000000000000description p4lang: mldp core over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route l3tp duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout240.tst000066400000000000000000000267431471627602100172760ustar00rootroot00000000000000description p4lang: bier core over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route l3tp bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout241.tst000066400000000000000000000233541471627602100172720ustar00rootroot00000000000000description p4lang: l2tp3 mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout242.tst000066400000000000000000000233551471627602100172740ustar00rootroot00000000000000description p4lang: l2tp3 mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout243.tst000066400000000000000000000266261471627602100173010ustar00rootroot00000000000000description p4lang: l2vpn over l2tp3 mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout244.tst000066400000000000000000000306131471627602100172710ustar00rootroot00000000000000description p4lang: l3vpn over l2tp3 mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout245.tst000066400000000000000000000241761471627602100173010ustar00rootroot00000000000000description p4lang: l2tp3 routing over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8.8.8.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8.8.8.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 8.8.8.2 vrf v2 r3 tping 100 30 8.8.8.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout246.tst000066400000000000000000000243501471627602100172740ustar00rootroot00000000000000description p4lang: l2tp3 routing over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8888::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8888::1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 8888::2 vrf v2 r3 tping 100 30 8888::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout247.tst000066400000000000000000000236011471627602100172730ustar00rootroot00000000000000description p4lang: l2tp3 routing over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1.222 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout248.tst000066400000000000000000000162311471627602100172750ustar00rootroot00000000000000description p4lang: l2tp3 routing over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 bun1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature l3tp bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bun1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout249.tst000066400000000000000000000240471471627602100173020ustar00rootroot00000000000000description p4lang: l2tp3 mpls over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout250.tst000066400000000000000000000240551471627602100172710ustar00rootroot00000000000000description p4lang: l2tp3 mpls over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 sdn1 l2tp3 9999::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int virt1 enc ppp pseudo v2 bvi1 l2tp3 9999::1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout251.tst000066400000000000000000000245021471627602100172670ustar00rootroot00000000000000description p4lang: l2tp3 mpls over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8.8.8.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8.8.8.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 8.8.8.2 vrf v2 r3 tping 100 30 8.8.8.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout252.tst000066400000000000000000000246621471627602100172770ustar00rootroot00000000000000description p4lang: l2tp3 mpls over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8888::2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int virt1 enc ppp pseudo v2 lo1 l2tp3 8888::1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9999::2 vrf v2 r3 tping 100 30 9999::1 vrf v2 r1 tping 100 30 8888::2 vrf v2 r3 tping 100 30 8888::1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout253.tst000066400000000000000000000241131471627602100172670ustar00rootroot00000000000000description p4lang: l2tp3 mpls over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bvi1.222 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout254.tst000066400000000000000000000167731471627602100173050ustar00rootroot00000000000000description p4lang: l2tp3 mpls over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 bun1 l2tp3 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature l3tp mpls bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 bun1 l2tp3 9.9.9.1 1234 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout255.tst000066400000000000000000000130651471627602100172750ustar00rootroot00000000000000description p4lang: bridging over l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn3 l2tp3 9.9.9.2 1234 bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge l3tp l3tptap int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 eth1 l2tp3 9.9.9.1 1234 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234:1::1 vrf v1 r4 tping 100 30 1.1.2.5 vrf v1 r4 tping 100 30 1234:2::5 vrf v1 r4 tping 100 30 1.1.2.6 vrf v1 r4 tping 100 30 1234:2::6 vrf v1 r5 tping 100 30 1.1.2.4 vrf v1 r5 tping 100 30 1234:2::4 vrf v1 r5 tping 100 30 1.1.2.6 vrf v1 r5 tping 100 30 1234:2::6 vrf v1 r6 tping 100 30 1.1.2.4 vrf v1 r6 tping 100 30 1234:2::4 vrf v1 r6 tping 100 30 1.1.2.5 vrf v1 r6 tping 100 30 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout256.tst000066400000000000000000000131361471627602100172750ustar00rootroot00000000000000description p4lang: bridging over l2tp3 vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn3.222 l2tp3 9.9.9.2 1234 bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge l3tp l3tptap vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int virt1 enc ppp pseudo v2 eth1.222 l2tp3 9.9.9.1 1234 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 30 9.9.9.2 vrf v2 r5 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r3 tping 100 30 1.1.1.1 vrf v1 r3 tping 100 30 1234:1::1 vrf v1 r4 tping 100 30 1.1.2.5 vrf v1 r4 tping 100 30 1234:2::5 vrf v1 r4 tping 100 30 1.1.2.6 vrf v1 r4 tping 100 30 1234:2::6 vrf v1 r5 tping 100 30 1.1.2.4 vrf v1 r5 tping 100 30 1234:2::4 vrf v1 r5 tping 100 30 1.1.2.6 vrf v1 r5 tping 100 30 1234:2::6 vrf v1 r6 tping 100 30 1.1.2.4 vrf v1 r6 tping 100 30 1234:2::4 vrf v1 r6 tping 100 30 1.1.2.5 vrf v1 r6 tping 100 30 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout257.tst000066400000000000000000000273771471627602100173120ustar00rootroot00000000000000description p4lang: sdwan over ipv4 with l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user h pass p pref ipv4 calling 1701 para l2tp proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route l2tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l2tp proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l2tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l2tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l2tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout258.tst000066400000000000000000000273771471627602100173130ustar00rootroot00000000000000description p4lang: sdwan over ipv6 with l2tp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user h pass p pref ipv6 calling 1701 para l2tp proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route l2tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l2tp proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l2tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l2tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l2tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout259.tst000066400000000000000000000273621471627602100173060ustar00rootroot00000000000000description p4lang: sdwan over ipv4 with l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user h pass p pref ipv4 para l3tp proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route l3tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l3tp proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l3tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l3tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para l3tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout260.tst000066400000000000000000000273621471627602100172760ustar00rootroot00000000000000description p4lang: sdwan over ipv6 with l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user h pass p pref ipv6 para l3tp proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route l3tp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l3tp proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l3tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l3tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc ppp vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para l3tp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout261.tst000066400000000000000000000273521471627602100172760ustar00rootroot00000000000000description p4lang: sdwan over ipv4 with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user h pass p pref ipv4 para gre proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route gre int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gre proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gre proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gre proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gre proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout262.tst000066400000000000000000000273521471627602100172770ustar00rootroot00000000000000description p4lang: sdwan over ipv6 with gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user h pass p pref ipv6 para gre proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route gre int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gre proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gre proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gre proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gre proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout263.tst000066400000000000000000000273701471627602100173000ustar00rootroot00000000000000description p4lang: sdwan over ipv4 with amt addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user h pass p pref ipv4 calling 2268 para amt proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route amt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para amt proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para amt proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para amt proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para amt proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout264.tst000066400000000000000000000273701471627602100173010ustar00rootroot00000000000000description p4lang: sdwan over ipv6 with amt addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user h pass p pref ipv6 calling 2268 para amt proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route amt int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para amt proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para amt proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para amt proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para amt proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout265.tst000066400000000000000000000273701471627602100173020ustar00rootroot00000000000000description p4lang: sdwan over ipv4 with gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user h pass p pref ipv4 calling 2152 para gtp proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route gtp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gtp proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gtp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gtp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para gtp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout266.tst000066400000000000000000000273701471627602100173030ustar00rootroot00000000000000description p4lang: sdwan over ipv6 with gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user h pass p pref ipv6 calling 2152 para gtp proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route gtp int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gtp proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gtp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gtp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para gtp proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout267.tst000066400000000000000000000236131471627602100173000ustar00rootroot00000000000000description p4lang: tmux routing over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout268.tst000066400000000000000000000236211471627602100173000ustar00rootroot00000000000000description p4lang: tmux routing over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout269.tst000066400000000000000000000242461471627602100173050ustar00rootroot00000000000000description p4lang: tmux routing over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout270.tst000066400000000000000000000244261471627602100172750ustar00rootroot00000000000000description p4lang: tmux routing over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout271.tst000066400000000000000000000236571471627602100173030ustar00rootroot00000000000000description p4lang: tmux routing over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout272.tst000066400000000000000000000163151471627602100172750ustar00rootroot00000000000000description p4lang: tmux routing over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature tmux route bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout273.tst000066400000000000000000000163471471627602100173030ustar00rootroot00000000000000description p4lang: tmux routing over bundle vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature tmux route bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout274.tst000066400000000000000000000246321471627602100173000ustar00rootroot00000000000000description p4lang: tmux routing over hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11 tun destination 9.9.8.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout275.tst000066400000000000000000000247171471627602100173050ustar00rootroot00000000000000description p4lang: tmux routing over hairpin vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12.111 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11.111 tun destination 9.9.8.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route vlan hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout276.tst000066400000000000000000000237521471627602100173040ustar00rootroot00000000000000description p4lang: tmux routing over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout277.tst000066400000000000000000000240151471627602100172760ustar00rootroot00000000000000description p4lang: tmux routing over vlan bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux route bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout278.tst000066400000000000000000000241251471627602100173010ustar00rootroot00000000000000description p4lang: tmux mpls over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout279.tst000066400000000000000000000241331471627602100173010ustar00rootroot00000000000000description p4lang: tmux mpls over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source sdn1 tun destination 9999::2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source bvi1 tun destination 9999::1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout280.tst000066400000000000000000000245601471627602100172750ustar00rootroot00000000000000description p4lang: tmux mpls over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source lo1 tun destination 8.8.8.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r3 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout281.tst000066400000000000000000000247401471627602100172760ustar00rootroot00000000000000description p4lang: tmux mpls over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit int sdn1 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int tun1 tun vrf v2 tun source lo1 tun destination 8888::1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9999::2 vrf v2 r3 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r3 tping 100 10 8888::1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout282.tst000066400000000000000000000241711471627602100172750ustar00rootroot00000000000000description p4lang: tmux mpls over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout283.tst000066400000000000000000000170511471627602100172750ustar00rootroot00000000000000description p4lang: tmux mpls over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout284.tst000066400000000000000000000171031471627602100172740ustar00rootroot00000000000000description p4lang: tmux mpls over bundle vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout285.tst000066400000000000000000000252031471627602100172750ustar00rootroot00000000000000description p4lang: tmux mpls over hairpin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11 tun destination 9.9.8.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout286.tst000066400000000000000000000252311471627602100172770ustar00rootroot00000000000000description p4lang: tmux mpls over hairpin vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12.111 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11.111 tun destination 9.9.8.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls vlan hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout287.tst000066400000000000000000000242721471627602100173040ustar00rootroot00000000000000description p4lang: tmux mpls over bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout288.tst000066400000000000000000000243331471627602100173030ustar00rootroot00000000000000description p4lang: tmux mpls over vlan bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.222 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout289.tst000066400000000000000000000131431471627602100173010ustar00rootroot00000000000000description p4lang: bridging over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn3 tun destination 9.9.9.2 tun mode tmux bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge tmux tmuxtap int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1 tun destination 9.9.9.1 tun mode tmux bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout290.tst000066400000000000000000000132141471627602100172700ustar00rootroot00000000000000description p4lang: bridging over tmux vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn3.222 tun destination 9.9.9.2 tun mode tmux bridge-gr 1 vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge tmux tmuxtap vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1.222 tun destination 9.9.9.1 tun mode tmux bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout291.tst000066400000000000000000000256561471627602100173060ustar00rootroot00000000000000description p4lang: mldp core over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route tmux duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout292.tst000066400000000000000000000267251471627602100173050ustar00rootroot00000000000000description p4lang: bier core over tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route tmux bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout293.tst000066400000000000000000000234321471627602100172760ustar00rootroot00000000000000description p4lang: tmux mpls pop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout294.tst000066400000000000000000000234331471627602100173000ustar00rootroot00000000000000description p4lang: tmux mpls push addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout295.tst000066400000000000000000000267041471627602100173050ustar00rootroot00000000000000description p4lang: l2vpn over tmux mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout296.tst000066400000000000000000000306711471627602100173040ustar00rootroot00000000000000description p4lang: l3vpn over tmux mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1 tun destination 9.9.9.2 tun mode tmux vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature tmux mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode tmux vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout297.tst000066400000000000000000000273771471627602100173160ustar00rootroot00000000000000description p4lang: sdwan over ipv4 with tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user h pass p pref ipv4 calling 2152 para tmux proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route tmux int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para tmux proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para tmux proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para tmux proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 2.2.2.100 proxy p1 user u pass p pref ipv4 para tmux proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout298.tst000066400000000000000000000273771471627602100173170ustar00rootroot00000000000000description p4lang: sdwan over ipv6 with tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit aaa userlist usr username u password p username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa hub h pool4 p4 pool6 p6 vrf v1 exit proxy-profile p1 vrf v1 source lo1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user h pass p pref ipv6 calling 2152 para tmux proto sdwan exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dyn vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.6 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::6 ! addother r2 controller r1 v9 9080 - feature route tmux int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para tmux proto sdwan exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para tmux proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para tmux proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit proxy-profile p1 vrf v1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 4321::100 proxy p1 user u pass p pref ipv6 para tmux proto sdwan exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 2.2.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 2.2.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 2222::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout299.tst000066400000000000000000000126531471627602100173070ustar00rootroot00000000000000description p4lang: etherip over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol etherip exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 etherip 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout300.tst000066400000000000000000000126611471627602100172650ustar00rootroot00000000000000description p4lang: etherip over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9999::2 vcid 2554 protocol etherip exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 etherip 9999::1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout301.tst000066400000000000000000000133231471627602100172620ustar00rootroot00000000000000description p4lang: etherip over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 source lo1 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 8.8.8.2 vcid 2554 protocol etherip exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 etherip 8.8.8.1 2554 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r5 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout302.tst000066400000000000000000000135031471627602100172630ustar00rootroot00000000000000description p4lang: etherip over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit proxy-profile p2 source lo1 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 8888::2 vcid 2554 protocol etherip exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 etherip 8888::1 2554 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r5 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout303.tst000066400000000000000000000127131471627602100172660ustar00rootroot00000000000000description p4lang: etherip over vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol etherip exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1.111 etherip 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout304.tst000066400000000000000000000106541471627602100172710ustar00rootroot00000000000000description p4lang: etherip over bundle addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol etherip exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip bundle int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 bun1 etherip 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout305.tst000066400000000000000000000125511471627602100172700ustar00rootroot00000000000000description p4lang: etherip server over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit server etherip pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 etherip 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout306.tst000066400000000000000000000125571471627602100172770ustar00rootroot00000000000000description p4lang: etherip server over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit server etherip pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1 etherip 9999::1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout307.tst000066400000000000000000000132051471627602100172670ustar00rootroot00000000000000description p4lang: etherip server over ipv4 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.1 255.255.255.255 exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit server etherip pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v2 8.8.8.2 255.255.255.255 9.9.9.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 8.8.8.2 255.255.255.255 exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 etherip 8.8.8.1 2554 exit ipv4 route v2 8.8.8.1 255.255.255.255 9.9.9.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 8.8.8.2 vrf v2 r5 tping 100 10 8.8.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout308.tst000066400000000000000000000133651471627602100172770ustar00rootroot00000000000000description p4lang: etherip server over ipv6 loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv6 ena exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 vrf for v2 ipv6 addr 9999::1 ffff:ffff:: ipv6 ena exit server etherip pou bridge 1 vrf v2 exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv6 route v2 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge etherip int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv6 addr 8888::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv6 addr 9999::2 ffff:ffff:: exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 lo1 etherip 8888::1 2554 exit ipv6 route v2 8888::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 9999::1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9999::2 vrf v2 r5 tping 100 10 9999::1 vrf v2 r1 tping 100 10 8888::2 vrf v2 r5 tping 100 10 8888::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout309.tst000066400000000000000000000133501471627602100172720ustar00rootroot00000000000000description p4lang: gre local connect addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v8 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v2 ipv4 addr 9.9.8.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn2 tun destination 9.9.8.2 tun mode gre vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 exit int sdn3 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun2 tun vrf v2 tun source sdn3 tun destination 9.9.9.2 tun mode gre vrf for v8 ipv4 addr 3.3.3.3 255.255.255.255 connect tun1 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v8 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic export-port tun2 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre loconn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1 tun destination 9.9.8.1 tun mode gre vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 9.9.8.2 vrf v2 r4 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.4.1 vrf v1 r6 tping 100 10 1234:4::1 vrf v1 r4 tping 100 10 2.2.2.2 vrf v1 r4 tping 100 10 4321::2 vrf v1 r5 tping 100 10 2.2.2.1 vrf v1 r5 tping 100 10 4321::1 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.2 vrf v1 r1 dping sdn . r4 4321::2 vrf v1 freeRtr-24.11.16/cfg/p4lang-rout310.tst000066400000000000000000000256431471627602100172720ustar00rootroot00000000000000description p4lang: gre multicast routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn2 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multicast host-enable ipv4 multicast host-proxy ipv6 multicast host-enable ipv6 multicast host-proxy exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source eth1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 multicast host-enable ipv4 multicast host-proxy ipv6 multicast host-enable ipv6 multicast host-proxy exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r4 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout311.tst000066400000000000000000000316611471627602100172700ustar00rootroot00000000000000description p4lang: multicast routing over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int bun1.111 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int bun2.111 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3.111 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4.111 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1.111 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2.111 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3.111 1 forwarder 3 backplane bun4.111 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route mroute duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route mroute duplab int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route mroute duplab int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r8 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r8 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r8 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout312.tst000066400000000000000000000255041471627602100172700ustar00rootroot00000000000000description p4lang: polka over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int bun1 vrf for v1 mpls ena polka enable 1 65536 10 exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int bun2 vrf for v1 mpls ena polka enable 1 65536 10 exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena polka enable 1 65536 10 exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena polka enable 1 65536 10 exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route polka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route polka int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route polka int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert bvi1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert bvi1 exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.106 tun doma 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::106 tun doma 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun doma 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun doma 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 1.1.11.1 vrf v1 r5 tping 100 10 1234:11::1 vrf v1 r8 tping 100 10 1.1.11.2 vrf v1 r8 tping 100 10 1234:11::2 vrf v1 r1 dping sdn . r8 1.1.11.2 vrf v1 sou lo0 r1 dping sdn . r8 1234:11::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout313.tst000066400000000000000000000424171471627602100172730ustar00rootroot00000000000000description p4lang: nsh over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena nsh ena exit int bun1 vrf for v1 mpls ena nsh ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena nsh ena exit int bun2 vrf for v1 mpls ena nsh ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena nsh ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena nsh ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 nsh 1001 122 rou v1 nsh 1003 122 int sdn11 0000.0000.3333 nsh 1004 122 int sdn12 0000.0000.4444 nsh 1005 122 int sdn21 0000.0000.5555 nsh 1006 122 int sdn22 0000.0000.6666 ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route nsh int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route nsh int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route nsh int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 121 rou v1 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 121 rou v1 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1003 123 ipv6 pbr v1 test36 v1 nsh 1003 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 121 rou v1 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 121 rou v1 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r8 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r8 4321::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout314.tst000066400000000000000000000257101471627602100172710ustar00rootroot00000000000000description p4lang: bier core over backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int bun1 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int bun2 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3 1 forwarder 3 backplane bun4 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route bier int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route bier int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r8 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r8 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r8 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout315.tst000066400000000000000000000257551471627602100173030ustar00rootroot00000000000000description p4lang: bier core over vlan backplane addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ int eth3 eth 0000.0000.1111 $7a$ $7b$ int eth4 eth 0000.0000.1111 $8b$ $8a$ int eth5 eth 0000.0000.1111 $13a$ $13b$ int eth6 eth 0000.0000.1111 $14b$ $14a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int eth3 vrf for v9 ipv4 addr 10.12.13.254 255.255.255.0 exit int eth4 exit server dhcp4 eth3 pool 10.12.13.1 10.12.13.99 gateway 10.12.13.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.3333 10.12.13.111 interface eth3 vrf v9 exit int eth5 vrf for v9 ipv4 addr 10.13.14.254 255.255.255.0 exit int eth6 exit server dhcp4 eth5 pool 10.13.14.1 10.13.14.99 gateway 10.13.14.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.4444 10.13.14.111 interface eth5 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bundle 2 exit bundle 3 exit bundle 4 exit int sdn11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn12 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int bun1.111 vrf for v1 mpls ena exit int sdn13 bundle-gr 1 exit int sdn14 bundle-gr 1 exit int sdn21 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn22 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int bun2.111 vrf for v1 mpls ena exit int sdn23 bundle-gr 2 exit int sdn24 bundle-gr 2 exit int bun3.111 vrf for v1 mpls ena exit int sdn31 bundle-gr 3 exit int sdn32 bundle-gr 3 exit int bun4.111 vrf for v1 mpls ena exit int sdn33 bundle-gr 4 exit int sdn34 bundle-gr 4 exit server p4lang a interconnect eth2 export-vrf v1 export-port sdn11 1 10 export-port sdn12 2 10 export-port sdn13 3 10 export-port sdn14 4 10 export-port bun1 dynamic exit server p4lang b interconnect eth4 export-vrf v1 export-port sdn21 1 10 export-port sdn22 2 10 export-port sdn23 3 10 export-port sdn24 4 10 export-port bun2 dynamic exit server p4lang c interconnect eth6 export-vrf v1 export-port sdn31 1 10 export-port sdn32 2 10 export-port sdn33 3 10 export-port sdn34 4 10 export-port bun3 dynamic export-port bun4 dynamic exit server stack s dataplanes 4 forwarder 1 p4lang a forwarder 1 backplane bun1.111 1 forwarder 1 remote 10.11.12.111 forwarder 2 p4lang b forwarder 2 backplane bun2.111 1 forwarder 2 remote 10.12.13.111 forwarder 3 p4lang c forwarder 3 backplane bun3.111 1 forwarder 3 backplane bun4.111 1 forwarder 3 remote 10.13.14.111 vrf v9 exit ! addother r2 controller r1 v9 9080 10.11.12.111 feature bundle mpls route bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addother r3 controller r1 v9 9080 10.12.13.111 feature bundle mpls route bier int eth1 eth 0000.0000.3333 $7b$ $7a$ int eth2 eth 0000.0000.3333 $8a$ $8b$ int eth3 eth 0000.0000.3333 $9a$ $9b$ int eth4 eth 0000.0000.3333 $10a$ $10b$ int eth5 eth 0000.0000.3333 $11a$ $11b$ int eth6 eth 0000.0000.3333 $12a$ $12b$ ! ! addother r4 controller r1 v9 9080 10.13.14.111 feature bundle mpls route bier int eth1 eth 0000.0000.4444 $13b$ $13a$ int eth2 eth 0000.0000.4444 $14a$ $14b$ int eth3 eth 0000.0000.4444 $5b$ $5a$ int eth4 eth 0000.0000.4444 $6b$ $6a$ int eth5 eth 0000.0000.4444 $11b$ $11a$ int eth6 eth 0000.0000.4444 $12b$ $12a$ ! ! addrouter r5 int eth1 eth 0000.0000.5555 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r7 int eth1 eth 0000.0000.7777 $9b$ $9a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r8 int eth1 eth 0000.0000.8888 $10b$ $10a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r8 tping 100 10 1.1.1.2 vrf v1 r8 tping 100 10 1234:1::2 vrf v1 r8 tping 100 10 1.1.2.2 vrf v1 r8 tping 100 10 1234:2::2 vrf v1 r8 tping 100 10 1.1.3.2 vrf v1 r8 tping 100 10 1234:3::2 vrf v1 r8 tping 100 10 1.1.4.2 vrf v1 r8 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 100 10 2.2.2.101 vrf v1 sou lo0 r8 tping 100 10 4321::101 vrf v1 sou lo0 r8 tping 100 10 2.2.2.103 vrf v1 sou lo0 r8 tping 100 10 4321::103 vrf v1 sou lo0 r8 tping 100 10 2.2.2.104 vrf v1 sou lo0 r8 tping 100 10 4321::104 vrf v1 sou lo0 r8 tping 100 10 2.2.2.105 vrf v1 sou lo0 r8 tping 100 10 4321::105 vrf v1 sou lo0 r8 tping 100 10 2.2.2.106 vrf v1 sou lo0 r8 tping 100 10 4321::106 vrf v1 sou lo0 r8 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r8 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r8 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r8 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout316.tst000066400000000000000000000233601471627602100172720ustar00rootroot00000000000000description p4lang: qinq routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.103 vrf v1 sou lo0 r1 dping sdn . r6 4321::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout317.tst000066400000000000000000000125741471627602100173000ustar00rootroot00000000000000description p4lang: qinq bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout318.tst000066400000000000000000000236721471627602100173020ustar00rootroot00000000000000description p4lang: qinq mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout319.tst000066400000000000000000000155351471627602100173020ustar00rootroot00000000000000description p4lang: bundle qinq routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout320.tst000066400000000000000000000162711471627602100172700ustar00rootroot00000000000000description p4lang: bundle qinq mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout321.tst000066400000000000000000000103511471627602100172620ustar00rootroot00000000000000description p4lang: bundle qinq bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit bridge 1 mac-learn exit int sdn1 bridge-gr 1 exit int sdn2 bridge-gr 1 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature bundle vlan bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.2.5 vrf v1 r3 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout322.tst000066400000000000000000000214601471627602100172660ustar00rootroot00000000000000description p4lang: qinq bridge routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.2.3 vrf v1 r1 tping 100 10 1234:2::3 vrf v1 r1 tping 100 10 1.1.2.4 vrf v1 r1 tping 100 10 1234:2::4 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.2.3 vrf v1 r3 tping 100 10 1234:2::3 vrf v1 r3 tping 100 10 1.1.2.4 vrf v1 r3 tping 100 10 1234:2::4 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.2.3 vrf v1 r4 tping 100 10 1234:2::3 vrf v1 r4 tping 100 10 1.1.2.4 vrf v1 r4 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.2.3 vrf v1 r5 tping 100 10 1234:2::3 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.2.3 vrf v1 r6 tping 100 10 1234:2::3 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout323.tst000066400000000000000000000216651471627602100172760ustar00rootroot00000000000000description p4lang: qinq bridge mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.3 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.4 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ! addother r2 controller r1 v9 9080 - feature vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1234:2::3 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout324.tst000066400000000000000000000220001471627602100172570ustar00rootroot00000000000000description p4lang: qinq vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 bridge-gr 1 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature vlan mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout325.tst000066400000000000000000000136251471627602100172750ustar00rootroot00000000000000description p4lang: qinq eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit int sdn4 exit int sdn4.222 exit int sdn4.222.333 xconnect v1 lo0 pweompls 2.2.2.104 1234 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature vlan eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout326.tst000066400000000000000000000170501471627602100172720ustar00rootroot00000000000000description p4lang: bundle qinq vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bundle 1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 bridge-gr 1 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r5 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r5 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout327.tst000066400000000000000000000124411471627602100172720ustar00rootroot00000000000000description p4lang: bundle qinq eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit bundle 1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r5 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r5 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout328.tst000066400000000000000000000232401471627602100172720ustar00rootroot00000000000000description p4lang: qinq pppoe routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 p2poe relay di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1.111 exit int eth1.111.222 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout329.tst000066400000000000000000000234131471627602100172750ustar00rootroot00000000000000description p4lang: qinq pppoe mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int di1 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 p2poe relay di1 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port di1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan pppoe mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int di1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit int eth1.111 exit int eth1.111.222 p2poe client di1 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r4 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r4 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout330.tst000066400000000000000000000314761471627602100172750ustar00rootroot00000000000000description p4lang: hairpin qinq routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int hair11.111 exit int hair11.111.222 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int hair12.111 exit int hair12.111.222 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.1.2 vrf v2 r1 tping 100 10 1234:1::2 vrf v2 r1 tping 100 10 1.1.2.2 vrf v2 r1 tping 100 10 1234:2::2 vrf v2 r1 tping 100 10 1.1.3.2 vrf v2 r1 tping 100 10 1234:3::2 vrf v2 r1 tping 100 10 1.1.4.2 vrf v2 r1 tping 100 10 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout331.tst000066400000000000000000000124451471627602100172710ustar00rootroot00000000000000description p4lang: hairpin qinq bridging addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit bridge 2 mac-learn exit hair 1 ether exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 2 exit int hair11.111 exit int hair11.111.222 bridge-gr 1 exit int hair12.111 exit int hair12.111.222 bridge-gr 2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout332.tst000066400000000000000000000315441471627602100172730ustar00rootroot00000000000000description p4lang: hairpin qinq mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 label-mode per-prefix exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11.111 exit int hair11.111.222 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair12.111 exit int hair12.111.222 vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 1.1.5.1 vrf v2 r1 tping 100 10 1234:5::1 vrf v2 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout333.tst000066400000000000000000000316101471627602100172660ustar00rootroot00000000000000description p4lang: hairpin qinq pppoe routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.100 255.255.255.255 ipv6 addr 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v2 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: ipv6 ena exit int di2 enc ppp vrf for v2 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: ipv6 ena exit int hair11.111 exit int hair11.111.222 p2poe client di1 exit int hair12.111 exit int hair12.111.222 p2poe relay di2 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port di1 dynamic export-port di2 dynamic vrf v9 exit ipv4 route v1 1.1.4.0 255.255.255.0 1.1.5.2 ipv6 route v1 1234:4:: ffff:ffff:: 1234:5::2 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.5.2 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.5.2 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ipv4 route v2 1.1.1.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.2.0 255.255.255.0 1.1.5.1 ipv4 route v2 1.1.3.0 255.255.255.0 1.1.5.1 ipv6 route v2 1234:1:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:2:: ffff:ffff:: 1234:5::1 ipv6 route v2 1234:3:: ffff:ffff:: 1234:5::1 ipv4 route v2 2.2.2.101 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.103 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.104 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.105 255.255.255.255 1.1.5.1 ipv4 route v2 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v2 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv6 route v2 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan pppoe route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.5.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:5:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.100 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::100 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 1.1.5.2 vrf v1 r1 tping 100 30 1234:5::2 vrf v1 r1 tping 100 30 1.1.5.1 vrf v2 r1 tping 100 30 1234:5::1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r1 tping 100 30 1.1.1.2 vrf v2 r1 tping 100 30 1234:1::2 vrf v2 r1 tping 100 30 1.1.2.2 vrf v2 r1 tping 100 30 1234:2::2 vrf v2 r1 tping 100 30 1.1.3.2 vrf v2 r1 tping 100 30 1234:3::2 vrf v2 r1 tping 100 30 1.1.4.2 vrf v2 r1 tping 100 30 1234:4::2 vrf v2 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.100 vrf v1 sou lo0 r1 tping 100 10 4321::100 vrf v1 sou lo0 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.100 vrf v2 sou lo1 r1 tping 100 10 4321::100 vrf v2 sou lo1 r1 tping 100 10 2.2.2.101 vrf v2 sou lo1 r1 tping 100 10 4321::101 vrf v2 sou lo1 r1 tping 100 10 2.2.2.103 vrf v2 sou lo1 r1 tping 100 10 4321::103 vrf v2 sou lo1 r1 tping 100 10 2.2.2.104 vrf v2 sou lo1 r1 tping 100 10 4321::104 vrf v2 sou lo1 r1 tping 100 10 2.2.2.105 vrf v2 sou lo1 r1 tping 100 10 4321::105 vrf v2 sou lo1 r1 tping 100 10 2.2.2.106 vrf v2 sou lo1 r1 tping 100 10 4321::106 vrf v2 sou lo1 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout334.tst000066400000000000000000000225301471627602100172700ustar00rootroot00000000000000description p4lang: hairpin qinq vpls/ldp with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 mac-learn exit bridge 3 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11.111 exit int hair11.111.222 bridge-gr 1 exit int hair12.111 exit int hair12.111.222 bridge-gr 2 exit int hair21.111 exit int hair21.111.222 bridge-gr 1 exit int hair22.111 exit int hair22.111.222 bridge-gr 3 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan mpls vpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r6 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout335.tst000066400000000000000000000143551471627602100172770ustar00rootroot00000000000000description p4lang: hairpin qinq eompls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 1 mac-learn exit bridge 2 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int hair11.111 exit int hair11.111.222 xconnect v1 lo0 pweompls 2.2.2.103 1234 exit int hair12.111 exit int hair12.111.222 bridge-gr 1 exit int hair21.111 exit int hair21.111.222 xconnect v1 lo0 pweompls 2.2.2.104 1234 exit int hair22.111 exit int hair22.111.222 bridge-gr 2 exit int sdn3 bridge-gr 1 exit int sdn4 bridge-gr 2 exit server p4lang p4 interconnect eth2 export-br 1 export-br 2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan eompls mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 pseudowire v1 lo0 pweompls 2.2.2.101 1234 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r4 3.3.3.106 vrf v1 sou lo1 r1 dping sdn . r4 3333::106 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout336.tst000066400000000000000000000226361471627602100173010ustar00rootroot00000000000000description p4lang: qinq evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.222 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature vlan evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout337.tst000066400000000000000000000177631471627602100173070ustar00rootroot00000000000000description p4lang: bundle qinq evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bundle 1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 bridge-gr 1 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bundle 1 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r1 dping sdn . r5 3.3.3.103 vrf v1 sou lo0 r1 dping sdn . r5 3333::103 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout338.tst000066400000000000000000000234441471627602100173010ustar00rootroot00000000000000description p4lang: hairpin qinq evpn/cmac with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit hair 1 ether exit hair 2 ether exit bridge 2 mac-learn exit bridge 3 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bridge-gr 2 exit int sdn4 bridge-gr 3 exit int hair11.111 exit int hair11.111.222 bridge-gr 1 exit int hair12.111 exit int hair12.111.222 bridge-gr 2 exit int hair21.111 exit int hair21.111.222 bridge-gr 1 exit int hair22.111 exit int hair22.111.222 bridge-gr 3 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a send-comm both temp a pmsi temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-br 2 export-br 3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port hair21 dynamic export-port hair22 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4444:3:: ffff:ffff:: 1234:1::2 ipv6 route v1 4444:4:: ffff:ffff:: 1234:2::2 ! addother r2 controller r1 v9 9080 - feature hairpin vlan evpn mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.103 255.255.255.255 ipv6 addr 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1234:3::3 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:1::1 ipv6 route v1 4444:4:: ffff:ffff:: 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.104 255.255.255.255 ipv6 addr 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both neigh 2.2.2.101 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both neigh 4321::101 pmsi exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ipv6 route v1 4444:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 4444:3:: ffff:ffff:: 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.105 255.255.255.255 ipv6 addr 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.106 255.255.255.255 1.1.3.6 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 3.3.3.106 255.255.255.255 ipv6 addr 3333::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.6 255.255.255.0 ipv6 addr 1234:3::6 ffff:ffff:: exit ipv4 route v1 3.3.3.103 255.255.255.255 1.1.3.3 ipv4 route v1 3.3.3.104 255.255.255.255 1.1.3.4 ipv4 route v1 3.3.3.105 255.255.255.255 1.1.3.5 ipv6 route v1 3333::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ipv6 route v1 3333::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 3333::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.103 vrf v1 sou lo0 r5 tping 100 10 3333::103 vrf v1 sou lo0 r5 tping 100 10 3.3.3.104 vrf v1 sou lo0 r5 tping 100 10 3333::104 vrf v1 sou lo0 r5 tping 100 10 3.3.3.105 vrf v1 sou lo0 r5 tping 100 10 3333::105 vrf v1 sou lo0 r5 tping 100 10 3.3.3.106 vrf v1 sou lo0 r5 tping 100 10 3333::106 vrf v1 sou lo0 r6 tping 100 10 3.3.3.103 vrf v1 sou lo0 r6 tping 100 10 3333::103 vrf v1 sou lo0 r6 tping 100 10 3.3.3.104 vrf v1 sou lo0 r6 tping 100 10 3333::104 vrf v1 sou lo0 r6 tping 100 10 3.3.3.105 vrf v1 sou lo0 r6 tping 100 10 3333::105 vrf v1 sou lo0 r6 tping 100 10 3.3.3.106 vrf v1 sou lo0 r6 tping 100 10 3333::106 vrf v1 sou lo0 r3 tping 100 10 3.3.3.103 vrf v1 sou lo1 r3 tping 100 10 3333::103 vrf v1 sou lo1 r3 tping 100 10 3.3.3.104 vrf v1 sou lo1 r3 tping 100 10 3333::104 vrf v1 sou lo1 r3 tping 100 10 3.3.3.105 vrf v1 sou lo1 r3 tping 100 10 3333::105 vrf v1 sou lo1 r3 tping 100 10 3.3.3.106 vrf v1 sou lo1 r3 tping 100 10 3333::106 vrf v1 sou lo1 r4 tping 100 10 3.3.3.103 vrf v1 sou lo1 r4 tping 100 10 3333::103 vrf v1 sou lo1 r4 tping 100 10 3.3.3.104 vrf v1 sou lo1 r4 tping 100 10 3333::104 vrf v1 sou lo1 r4 tping 100 10 3.3.3.105 vrf v1 sou lo1 r4 tping 100 10 3333::105 vrf v1 sou lo1 r4 tping 100 10 3.3.3.106 vrf v1 sou lo1 r4 tping 100 10 3333::106 vrf v1 sou lo1 r1 dping sdn . r6 3.3.3.104 vrf v1 sou lo0 r1 dping sdn . r6 3333::104 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout339.tst000066400000000000000000000237411471627602100173020ustar00rootroot00000000000000description p4lang: gre routing over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222.333 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre vlan route int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222.333 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout340.tst000066400000000000000000000164311471627602100172700ustar00rootroot00000000000000description p4lang: gre routing over bundle qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.222 exit int bun1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222.333 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature gre route bundle vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.222 exit int bun1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bun1.222.333 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout341.tst000066400000000000000000000250011471627602100172620ustar00rootroot00000000000000description p4lang: gre routing over hairpin qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit vrf def v9 rd 1:1 exit hair 1 ether exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int hair11.111 exit int hair11.111.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int hair12.111 exit int hair12.111.222 vrf for v3 ipv4 addr 9.9.9.2 255.255.255.0 exit int sdn1 vrf for v3 ipv4 addr 9.9.8.1 255.255.255.0 exit ipv4 route v2 9.9.8.0 255.255.255.0 9.9.9.2 int tun1 tun vrf v2 tun source hair11.111.222 tun destination 9.9.8.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-vrf v3 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port hair11 dynamic export-port hair12 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route vlan hairpin int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.8.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v2 9.9.9.0 255.255.255.0 9.9.8.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v3 r1 tping 100 10 9.9.9.1 vrf v3 r1 tping 100 10 9.9.9.2 vrf v2 r1 tping 100 10 9.9.8.2 vrf v3 r1 tping 100 10 9.9.8.1 vrf v3 r3 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r3 tping 100 10 9.9.8.2 vrf v2 r3 tping 100 10 9.9.8.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout342.tst000066400000000000000000000240671471627602100172760ustar00rootroot00000000000000description p4lang: gre routing over qinq bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bvi1 dynamic export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre route bridge int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.222 exit int eth1.222.333 bridge-gr 1 exit int bvi1 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout343.tst000066400000000000000000000242531471627602100172740ustar00rootroot00000000000000description p4lang: gre mpls over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int tun1 tun vrf v2 tun source sdn1.222.333 tun destination 9.9.9.2 tun mode gre vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature gre vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int tun1 tun vrf v2 tun source bvi1.222.333 tun destination 9.9.9.1 tun mode gre vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 9.9.9.2 vrf v2 r3 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout344.tst000066400000000000000000000236651471627602100173030ustar00rootroot00000000000000description p4lang: l2tp routing over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222.333 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp route vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 1.1.1.2 vrf v1 r1 tping 100 30 1234:1::2 vrf v1 r1 tping 100 30 1.1.2.2 vrf v1 r1 tping 100 30 1234:2::2 vrf v1 r1 tping 100 30 1.1.3.2 vrf v1 r1 tping 100 30 1234:3::2 vrf v1 r1 tping 100 30 1.1.4.2 vrf v1 r1 tping 100 30 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout345.tst000066400000000000000000000241771471627602100173030ustar00rootroot00000000000000description p4lang: l2tp mpls over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.222 exit int sdn1.222.333 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit int virt1 enc ppp pseudo v2 sdn1.222.333 l2tp2 9.9.9.2 1234 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port virt1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature l2tp mpls vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.222 exit int bvi1.222.333 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int di1 enc ppp vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit server l2tp2 l clone dialer1 vrf v2 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 30 9.9.9.2 vrf v2 r3 tping 100 30 9.9.9.1 vrf v2 r1 tping 100 30 2.2.2.101 vrf v1 sou lo0 r1 tping 100 30 4321::101 vrf v1 sou lo0 r1 tping 100 30 2.2.2.103 vrf v1 sou lo0 r1 tping 100 30 4321::103 vrf v1 sou lo0 r1 tping 100 30 2.2.2.104 vrf v1 sou lo0 r1 tping 100 30 4321::104 vrf v1 sou lo0 r1 tping 100 30 2.2.2.105 vrf v1 sou lo0 r1 tping 100 30 4321::105 vrf v1 sou lo0 r1 tping 100 30 2.2.2.106 vrf v1 sou lo0 r1 tping 100 30 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r3 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r3 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout346.tst000066400000000000000000000127631471627602100173020ustar00rootroot00000000000000description p4lang: vxlan over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 123 protocol vxlan exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vxlan vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1.111.222 vxlan 9.9.9.1 123 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout347.tst000066400000000000000000000127751471627602100173060ustar00rootroot00000000000000description p4lang: pckoudp over qinq addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 bridge-gr 1 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 vrf for v2 ipv4 addr 9.9.9.1 255.255.255.0 exit proxy-profile p2 vrf v2 exit vpdn vx bridge-group 1 proxy p2 target 9.9.9.2 vcid 2554 protocol pckoudp exit int sdn4 bridge-gr 1 exit server p4lang p4 interconnect eth2 export-vrf v1 export-vrf v2 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge pckoudp vlan int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v2 ipv4 addr 9.9.9.2 255.255.255.0 exit int pweth1 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: pseudo v2 eth1.111.222 pckoudp 9.9.9.1 2554 exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 9.9.9.2 vrf v2 r5 tping 100 10 9.9.9.1 vrf v2 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout348.tst000066400000000000000000000252171471627602100173020ustar00rootroot00000000000000description p4lang: multicast qinq routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 exit int sdn3.333 exit int sdn3.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 exit int sdn4.444 exit int sdn4.444.555 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 exit int bvi1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 exit int eth1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 exit int eth1.444.555 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout349.tst000066400000000000000000000170521471627602100173010ustar00rootroot00000000000000description p4lang: multicast bundle qinq routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 exit int bun1.111 exit int bun1.111.222 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 mroute v1 :: :: 1234:1::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle route vlan mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi static 232.2.2.2 2.2.2.103 ipv6 multi static ff06::1 4321::103 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.111 exit int bun1.111.222 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 200 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 200 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout350.tst000066400000000000000000000254411471627602100172720ustar00rootroot00000000000000description p4lang: mldp qinq core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 exit int sdn3.333 exit int sdn3.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 exit int sdn4.444 exit int sdn4.444.555 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 exit int bvi1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 exit int eth1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 exit int eth1.444.555 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout351.tst000066400000000000000000000207071471627602100172730ustar00rootroot00000000000000description p4lang: mldp bundle qinq core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1 exit int bun1.333 exit int bun1.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route bundle duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 exit int bvi1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.333 exit int bun1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 200 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 200 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout352.tst000066400000000000000000000253411471627602100172730ustar00rootroot00000000000000description p4lang: mldp qinq egress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn3 exit int sdn3.333 exit int sdn3.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena ipv4 multi static 232.2.2.2 2.2.2.106 ipv6 multi static ff06::1 4321::106 exit int sdn4 exit int sdn4.444 exit int sdn4.444.555 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.4.2 ipv6 mroute v1 :: :: 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route mroute duplab int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 exit int bvi1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 exit int eth1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 exit int eth1.444.555 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout353.tst000066400000000000000000000244411471627602100172740ustar00rootroot00000000000000description p4lang: mldp qinq ingress edge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn3 exit int sdn3.333 exit int sdn3.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int sdn4 exit int sdn4.444 exit int sdn4.444.555 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 pim ena ipv6 pim ena exit ipv4 mroute v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 mroute v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 2.2.2.103 temp a neigh 2.2.2.104 temp a neigh 2.2.2.105 temp a red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 temp a remote-as 1 temp a update lo0 temp a route-reflect neigh 4321::103 temp a neigh 4321::104 temp a neigh 4321::105 temp a red conn red stat exit ! addother r2 controller r1 v9 9080 - feature vlan route duplab mroute int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 exit int eth1.111.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.3 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.3 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.333 exit int eth1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.5 neigh 2.2.2.101 remote-as 1 neigh 2.2.2.101 update lo0 neigh 2.2.2.101 send-comm both red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.5 neigh 4321::101 remote-as 1 neigh 4321::101 update lo0 neigh 4321::101 send-comm both red conn exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.444 exit int eth1.444.555 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena ipv4 pim ena ipv6 pim ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout354.tst000066400000000000000000000265101471627602100172740ustar00rootroot00000000000000description p4lang: bier qinq core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 exit int sdn3.333 exit int sdn3.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 exit int sdn4.444 exit int sdn4.444.555 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route vlan bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 exit int bvi1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 mroute v1 :: :: 1234:1::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1.333 exit int eth1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth2 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.6 bier 256 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 bier 256 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit int eth1.444 exit int eth1.444.555 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 6 ipv6 pim bier 6 exit ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.106 ipv6 multi v1 join ff06::1 4321::106 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.5.2 vrf v1 r6 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.4.2 vrf v1 r7 tping 100 10 1234:4::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.107 vrf v1 sou lo0 r6 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.106 vrf v1 sou lo0 r7 tping 100 10 4321::106 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r6 tping 400 5 232.2.2.2 vrf v1 sou lo0 multi r6 tping 400 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r6 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r6 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout355.tst000066400000000000000000000217471471627602100173040ustar00rootroot00000000000000description p4lang: bier bundle qinq core addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 red conn exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 exit int sdn2.222 exit int sdn2.222.333 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.333 exit int bun1.333.444 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable router lsrp4 1 ena router lsrp6 1 ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ! addother r2 controller r1 v9 9080 - feature route bundle vlan bier int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit bridge 1 mac-learn block-unicast exit int eth1 bridge-gr 1 exit int bvi1.111 exit int bvi1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 3 ipv6 pim bier 3 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 4 ipv6 pim bier 4 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.2.1 ipv6 mroute v1 :: :: 1234:2::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ int eth3 eth 0000.0000.5555 $7a$ $7b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 red conn exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.333 exit int bun1.333.444 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit int eth3 vrf for v1 ipv4 addr 1.1.5.1 255.255.255.0 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 5 ipv6 pim bier 5 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.3.1 ipv6 mroute v1 :: :: 1234:3::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! addrouter r7 int eth1 eth 0000.0000.7777 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.7 bier 256 10 7 red conn exit router lsrp6 1 vrf v1 router 6.6.6.7 bier 256 10 7 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.107 255.255.255.255 ipv6 addr 4321::107 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit int eth1 vrf for v1 ipv4 addr 1.1.5.2 255.255.255.0 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo0 ipv6 pim join lo0 ipv4 pim bier 7 ipv6 pim bier 7 exit ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.5.1 ipv6 mroute v1 :: :: 1234:5::1 ipv4 multi v1 join 232.2.2.2 2.2.2.103 ipv6 multi v1 join ff06::1 4321::103 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.5.2 vrf v1 r1 tping 100 10 1234:5::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.5.2 vrf v1 r3 tping 100 10 1234:5::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.5.2 vrf v1 r4 tping 100 10 1234:5::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.5.2 vrf v1 r5 tping 100 10 1234:5::2 vrf v1 r7 tping 100 10 1.1.1.2 vrf v1 r7 tping 100 10 1234:1::2 vrf v1 r7 tping 100 10 1.1.2.2 vrf v1 r7 tping 100 10 1234:2::2 vrf v1 r7 tping 100 10 1.1.3.2 vrf v1 r7 tping 100 10 1234:3::2 vrf v1 r7 tping 100 10 1.1.5.2 vrf v1 r7 tping 100 10 1234:5::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.107 vrf v1 sou lo0 r1 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.107 vrf v1 sou lo0 r3 tping 100 10 4321::107 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.107 vrf v1 sou lo0 r4 tping 100 10 4321::107 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.107 vrf v1 sou lo0 r5 tping 100 10 4321::107 vrf v1 sou lo0 r7 tping 100 10 2.2.2.101 vrf v1 sou lo0 r7 tping 100 10 4321::101 vrf v1 sou lo0 r7 tping 100 10 2.2.2.103 vrf v1 sou lo0 r7 tping 100 10 4321::103 vrf v1 sou lo0 r7 tping 100 10 2.2.2.104 vrf v1 sou lo0 r7 tping 100 10 4321::104 vrf v1 sou lo0 r7 tping 100 10 2.2.2.105 vrf v1 sou lo0 r7 tping 100 10 4321::105 vrf v1 sou lo0 r7 tping 100 10 2.2.2.107 vrf v1 sou lo0 r7 tping 100 10 4321::107 vrf v1 sou lo0 r3 tping 300 5 232.2.2.2 vrf v1 sou lo0 multi r3 tping 300 5 ff06::1 vrf v1 sou lo0 multi r1 dping sdn . r3 232.2.2.2 vrf v1 sou lo0 r1 dping sdn . r3 ff06::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout356.tst000066400000000000000000000302131471627602100172710ustar00rootroot00000000000000description p4lang: qinq nsh addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena nsh ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena nsh ena exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit nsh 1001 122 rou v1 nsh 1003 122 int sdn1.111.222 0000.0000.3333 nsh 1004 122 int sdn2 0000.0000.4444 nsh 1005 122 int sdn3 0000.0000.5555 nsh 1006 122 rou v1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature vlan route nsh int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.0 ipv6 addr 4321::103 ffff:ffff:: exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1.111.222 0000.0000.1111 nsh 1003 121 rou v1 nsh 1004 123 int eth1.111.222 0000.0000.1111 nsh 1005 123 int eth1.111.222 0000.0000.1111 nsh 1006 123 int eth1.111.222 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.0 ipv6 addr 4321::104 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 121 rou v1 nsh 1005 123 int eth1 0000.0000.1111 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1003 123 ipv6 pbr v1 test36 v1 nsh 1003 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.0 ipv6 addr 4321::105 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 121 rou v1 nsh 1006 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test64 v1 nsh 1006 123 ipv6 pbr v1 test66 v1 nsh 1006 123 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.0 ipv6 addr 4321::106 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: nsh ena exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 access-list test14 permit 1 any all 2.2.2.101 255.255.255.255 all exit access-list test16 permit 58 any all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test34 permit 1 any all 2.2.2.103 255.255.255.255 all exit access-list test36 permit 58 any all 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test44 permit 1 any all 2.2.2.104 255.255.255.255 all exit access-list test46 permit 58 any all 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test54 permit 1 any all 2.2.2.105 255.255.255.255 all exit access-list test56 permit 58 any all 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list test64 permit 1 any all 2.2.2.106 255.255.255.255 all exit access-list test66 permit 58 any all 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit nsh 1001 123 int eth1 0000.0000.1111 nsh 1003 123 int eth1 0000.0000.1111 nsh 1004 123 int eth1 0000.0000.1111 nsh 1005 123 int eth1 0000.0000.1111 ipv4 pbr v1 test14 v1 nsh 1001 123 ipv6 pbr v1 test16 v1 nsh 1001 123 ipv4 pbr v1 test34 v1 nsh 1004 123 ipv6 pbr v1 test36 v1 nsh 1004 123 ipv4 pbr v1 test44 v1 nsh 1004 123 ipv6 pbr v1 test46 v1 nsh 1004 123 ipv4 pbr v1 test54 v1 nsh 1005 123 ipv6 pbr v1 test56 v1 nsh 1005 123 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 2.2.2.101 vrf v1 sou eth1.111.222 r3 tping 100 10 4321::101 vrf v1 sou eth1.111.222 r3 tping 100 10 2.2.2.103 vrf v1 sou eth1.111.222 r3 tping 100 10 4321::103 vrf v1 sou eth1.111.222 r3 tping 100 10 2.2.2.104 vrf v1 sou eth1.111.222 r3 tping 100 10 4321::104 vrf v1 sou eth1.111.222 r3 tping 100 10 2.2.2.105 vrf v1 sou eth1.111.222 r3 tping 100 10 4321::105 vrf v1 sou eth1.111.222 r3 tping 100 10 2.2.2.106 vrf v1 sou eth1.111.222 r3 tping 100 10 4321::106 vrf v1 sou eth1.111.222 r4 tping 100 10 2.2.2.101 vrf v1 sou eth1 r4 tping 100 10 4321::101 vrf v1 sou eth1 r4 tping 100 10 2.2.2.103 vrf v1 sou eth1 r4 tping 100 10 4321::103 vrf v1 sou eth1 r4 tping 100 10 2.2.2.104 vrf v1 sou eth1 r4 tping 100 10 4321::104 vrf v1 sou eth1 r4 tping 100 10 2.2.2.105 vrf v1 sou eth1 r4 tping 100 10 4321::105 vrf v1 sou eth1 r4 tping 100 10 2.2.2.106 vrf v1 sou eth1 r4 tping 100 10 4321::106 vrf v1 sou eth1 r5 tping 100 10 2.2.2.101 vrf v1 sou eth1 r5 tping 100 10 4321::101 vrf v1 sou eth1 r5 tping 100 10 2.2.2.103 vrf v1 sou eth1 r5 tping 100 10 4321::103 vrf v1 sou eth1 r5 tping 100 10 2.2.2.104 vrf v1 sou eth1 r5 tping 100 10 4321::104 vrf v1 sou eth1 r5 tping 100 10 2.2.2.105 vrf v1 sou eth1 r5 tping 100 10 4321::105 vrf v1 sou eth1 r5 tping 100 10 2.2.2.106 vrf v1 sou eth1 r5 tping 100 10 4321::106 vrf v1 sou eth1 r6 tping 100 10 2.2.2.101 vrf v1 sou eth1 r6 tping 100 10 4321::101 vrf v1 sou eth1 r6 tping 100 10 2.2.2.103 vrf v1 sou eth1 r6 tping 100 10 4321::103 vrf v1 sou eth1 r6 tping 100 10 2.2.2.104 vrf v1 sou eth1 r6 tping 100 10 4321::104 vrf v1 sou eth1 r6 tping 100 10 2.2.2.105 vrf v1 sou eth1 r6 tping 100 10 4321::105 vrf v1 sou eth1 r6 tping 100 10 2.2.2.106 vrf v1 sou eth1 r6 tping 100 10 4321::106 vrf v1 sou eth1 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout357.tst000066400000000000000000000355301471627602100173010ustar00rootroot00000000000000description p4lang: qinq polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop justadvert lo0 exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop justadvert lo0 exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn3 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int sdn4 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.103 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.1 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::103 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: exit int tun21 tun sou lo0 tun dest 2.2.2.104 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.12.1 255.255.255.0 exit int tun22 tun sou lo0 tun dest 4321::104 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:12::1 ffff:ffff:: exit int tun31 tun sou lo0 tun dest 2.2.2.105 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.13.1 255.255.255.0 exit int tun32 tun sou lo0 tun dest 4321::105 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:13::1 ffff:ffff:: exit int tun41 tun sou lo0 tun dest 2.2.2.106 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.14.1 255.255.255.0 exit int tun42 tun sou lo0 tun dest 4321::106 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:14::1 ffff:ffff:: exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port tun11 dynamic export-port tun12 dynamic export-port tun21 dynamic export-port tun22 dynamic export-port tun31 dynamic export-port tun32 dynamic export-port tun41 dynamic export-port tun42 dynamic vrf v9 exit ipv4 route v1 2.2.2.203 255.255.255.255 1.1.11.2 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.12.2 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.13.2 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.14.2 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::2 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::2 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::2 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::2 ! addother r2 controller r1 v9 9080 - feature vlan polka int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.203 255.255.255.255 ipv6 addr 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 justadvert lo0 justadvert eth1 exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.11.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.11.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.11.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:11::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.204 255.255.255.255 ipv6 addr 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 4 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.12.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:12::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.12.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.12.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:12::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.205 255.255.255.255 ipv6 addr 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 5 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.13.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:13::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.13.1 ipv4 route v1 2.2.2.206 255.255.255.255 1.1.13.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ipv6 route v1 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:13::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.206 255.255.255.255 ipv6 addr 4321::206 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 justadvert lo0 justadvert eth1 exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 justadvert lo0 justadvert eth1 exit int eth1 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable polka enable 6 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int tun11 tun sou lo0 tun dest 2.2.2.105 tun domain 2.2.2.101 tun vrf v1 tun mod polka vrf for v1 ipv4 addr 1.1.14.2 255.255.255.0 exit int tun12 tun sou lo0 tun dest 4321::105 tun domain 4321::101 tun vrf v1 tun mod polka vrf for v1 ipv6 addr 1234:14::2 ffff:ffff:: exit ipv4 route v1 2.2.2.201 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.203 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.204 255.255.255.255 1.1.14.1 ipv4 route v1 2.2.2.205 255.255.255.255 1.1.14.1 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::203 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::204 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ipv6 route v1 4321::205 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:14::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 tping 100 10 2.2.2.201 vrf v1 sou lo1 r1 tping 100 10 4321::201 vrf v1 sou lo1 r1 tping 100 10 2.2.2.203 vrf v1 sou lo1 r1 tping 100 10 4321::203 vrf v1 sou lo1 r1 tping 100 10 2.2.2.204 vrf v1 sou lo1 r1 tping 100 10 4321::204 vrf v1 sou lo1 r1 tping 100 10 2.2.2.205 vrf v1 sou lo1 r1 tping 100 10 4321::205 vrf v1 sou lo1 r1 tping 100 10 2.2.2.206 vrf v1 sou lo1 r1 tping 100 10 4321::206 vrf v1 sou lo1 r3 tping 100 10 2.2.2.201 vrf v1 sou lo1 r3 tping 100 10 4321::201 vrf v1 sou lo1 r3 tping 100 10 2.2.2.203 vrf v1 sou lo1 r3 tping 100 10 4321::203 vrf v1 sou lo1 r3 tping 100 10 2.2.2.204 vrf v1 sou lo1 r3 tping 100 10 4321::204 vrf v1 sou lo1 r3 tping 100 10 2.2.2.205 vrf v1 sou lo1 r3 tping 100 10 4321::205 vrf v1 sou lo1 r3 tping 100 10 2.2.2.206 vrf v1 sou lo1 r3 tping 100 10 4321::206 vrf v1 sou lo1 r4 tping 100 10 2.2.2.201 vrf v1 sou lo1 r4 tping 100 10 4321::201 vrf v1 sou lo1 r4 tping 100 10 2.2.2.203 vrf v1 sou lo1 r4 tping 100 10 4321::203 vrf v1 sou lo1 r4 tping 100 10 2.2.2.204 vrf v1 sou lo1 r4 tping 100 10 4321::204 vrf v1 sou lo1 r4 tping 100 10 2.2.2.205 vrf v1 sou lo1 r4 tping 100 10 4321::205 vrf v1 sou lo1 r4 tping 100 10 2.2.2.206 vrf v1 sou lo1 r4 tping 100 10 4321::206 vrf v1 sou lo1 r5 tping 100 10 2.2.2.201 vrf v1 sou lo1 r5 tping 100 10 4321::201 vrf v1 sou lo1 r5 tping 100 10 2.2.2.203 vrf v1 sou lo1 r5 tping 100 10 4321::203 vrf v1 sou lo1 r5 tping 100 10 2.2.2.204 vrf v1 sou lo1 r5 tping 100 10 4321::204 vrf v1 sou lo1 r5 tping 100 10 2.2.2.205 vrf v1 sou lo1 r5 tping 100 10 4321::205 vrf v1 sou lo1 r5 tping 100 10 2.2.2.206 vrf v1 sou lo1 r5 tping 100 10 4321::206 vrf v1 sou lo1 r6 tping 100 10 2.2.2.201 vrf v1 sou lo1 r6 tping 100 10 4321::201 vrf v1 sou lo1 r6 tping 100 10 2.2.2.203 vrf v1 sou lo1 r6 tping 100 10 4321::203 vrf v1 sou lo1 r6 tping 100 10 2.2.2.204 vrf v1 sou lo1 r6 tping 100 10 4321::204 vrf v1 sou lo1 r6 tping 100 10 2.2.2.205 vrf v1 sou lo1 r6 tping 100 10 4321::205 vrf v1 sou lo1 r6 tping 100 10 2.2.2.206 vrf v1 sou lo1 r6 tping 100 10 4321::206 vrf v1 sou lo1 r1 dping sdn . r6 2.2.2.205 vrf v1 sou lo1 r1 dping sdn . r6 4321::205 vrf v1 sou lo1 freeRtr-24.11.16/cfg/p4lang-rout358.tst000066400000000000000000000210621471627602100172750ustar00rootroot00000000000000description p4lang: l2vpn over bundle qinq mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.105 1234 vrf for v2 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::105 1234 vrf for v2 ipv4 addr 4.4.6.1 255.255.255.0 ipv6 addr 4446::1 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.1 255.255.255.0 ipv6 addr 4445::1 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.1 255.255.255.0 ipv6 addr 4447::1 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 exit int pweth1 pseudo v1 lo0 pweompls 2.2.2.103 1234 vrf for v2 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit int pweth2 pseudo v1 lo0 pweompls 4321::103 1234 vrf for v2 ipv4 addr 4.4.6.2 255.255.255.0 ipv6 addr 4446::2 ffff:: exit int pweth1.123 vrf for v2 ipv4 addr 4.4.5.2 255.255.255.0 ipv6 addr 4445::2 ffff:: exit int pweth2.123 vrf for v2 ipv4 addr 4.4.7.2 255.255.255.0 ipv6 addr 4447::2 ffff:: exit ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 4.4.4.2 vrf v2 r3 tping 100 10 4.4.6.2 vrf v2 r3 tping 100 10 4444::2 vrf v2 r3 tping 100 10 4446::2 vrf v2 r5 tping 100 10 4.4.4.1 vrf v2 r5 tping 100 10 4.4.6.1 vrf v2 r5 tping 100 10 4444::1 vrf v2 r5 tping 100 10 4446::1 vrf v2 r3 tping 100 10 4.4.5.2 vrf v2 r3 tping 100 10 4.4.7.2 vrf v2 r3 tping 100 10 4445::2 vrf v2 r3 tping 100 10 4447::2 vrf v2 r5 tping 100 10 4.4.5.1 vrf v2 r5 tping 100 10 4.4.7.1 vrf v2 r5 tping 100 10 4445::1 vrf v2 r5 tping 100 10 4447::1 vrf v2 r1 dping sdn . r3 4.4.4.2 vrf v2 r1 dping sdn . r3 4446::2 vrf v2 freeRtr-24.11.16/cfg/p4lang-rout359.tst000066400000000000000000000230471471627602100173030ustar00rootroot00000000000000description p4lang: l3vpn over bundle qinq mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit int sdn3 bundle-gr 1 exit int sdn4 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena mpls enable mpls ldp4 mpls ldp6 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 export-port bun1 dynamic vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addother r2 controller r1 v9 9080 - feature bundle vlan mpls int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.105 remote-as 1 neigh 2.2.2.105 update lo0 neigh 2.2.2.105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::105 remote-as 1 neigh 4321::105 update lo0 neigh 4321::105 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ int eth2 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit bundle 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bundle-gr 1 exit int eth2 bundle-gr 1 exit int bun1.11 exit int bun1.11.22 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 no ipv4 unreachables no ipv6 unreachables mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.103 remote-as 1 neigh 2.2.2.103 update lo0 neigh 2.2.2.103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::103 remote-as 1 neigh 4321::103 update lo0 neigh 4321::103 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 60 9.9.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9.9.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9.9.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r1 dping sdn . r3 9.9.3.2 vrf v3 r1 dping sdn . r3 9993::2 vrf v3 freeRtr-24.11.16/cfg/p4lang-rout360.tst000066400000000000000000000116561471627602100172760ustar00rootroot00000000000000description p4lang: qinq local connect addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 exit int sdn3.222 exit int sdn3.222.333 connect sdn2 exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 connect sdn3.111.222 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature vlan loconn int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1234:3::4 ffff:ffff:: exit ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.5 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::5 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit int eth1.222 exit int eth1.222.333 vrf for v1 ipv4 addr 1.1.3.5 255.255.255.0 ipv6 addr 1234:3::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.3.5 vrf v1 r4 tping 100 10 1234:3::5 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout361.tst000066400000000000000000000237741471627602100173030ustar00rootroot00000000000000description p4lang: qinq pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 pmtud-in 1400 ipv6 pmtud-in 1400 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan pmtud int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 exit int eth1.111.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 siz 1400 r6 tping 100 10 4321::103 vrf v1 sou lo0 siz 1400 r6 tping -100 10 2.2.2.103 vrf v1 sou lo0 siz 1401 error r6 tping -100 10 4321::103 vrf v1 sou lo0 siz 1401 error r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout362.tst000066400000000000000000000253031471627602100172720ustar00rootroot00000000000000description p4lang: qinq tcpmss addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 ena exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 vrf for v1 ipv4 addr 1.1.3.1 255.255.255.0 ipv6 addr 1234:3::1 ffff:ffff:: ipv6 ena exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 vrf for v1 ipv4 addr 1.1.4.1 255.255.255.0 ipv6 addr 1234:4::1 ffff:ffff:: ipv6 ena ipv4 tcp-mss-in 1280 ipv6 tcp-mss-in 1280 exit server p4lang p4 interconnect eth2 export-vrf v1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.2 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.3.2 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.4.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addother r2 controller r1 v9 9080 - feature route vlan tcpmss int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v2 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn block-unicast exit int eth1.111 exit int eth1.111.222 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.1.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.1.1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:1::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:1::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.2.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.2.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:2::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:2::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.3.2 255.255.255.0 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 1.1.1.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.3.1 ipv4 route v1 1.1.4.0 255.255.255.0 1.1.3.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:3::1 ipv6 route v1 1234:4:: ffff:ffff:: 1234:3::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.3.1 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.3.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.4.2 255.255.255.0 ipv6 addr 1234:4::2 ffff:ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 2.2.2.103 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 4321::103 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ipv4 route v1 1.1.1.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.2.0 255.255.255.0 1.1.4.1 ipv4 route v1 1.1.3.0 255.255.255.0 1.1.4.1 ipv6 route v1 1234:1:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:2:: ffff:ffff:: 1234:4::1 ipv6 route v1 1234:3:: ffff:ffff:: 1234:4::1 ipv4 route v1 2.2.2.101 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.103 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.4.1 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.4.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r1 tping 100 10 1.1.2.2 vrf v1 r1 tping 100 10 1234:2::2 vrf v1 r1 tping 100 10 1.1.3.2 vrf v1 r1 tping 100 10 1234:3::2 vrf v1 r1 tping 100 10 1.1.4.2 vrf v1 r1 tping 100 10 1234:4::2 vrf v1 r3 tping 100 10 1.1.1.2 vrf v1 r3 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.2.2 vrf v1 r3 tping 100 10 1234:2::2 vrf v1 r3 tping 100 10 1.1.3.2 vrf v1 r3 tping 100 10 1234:3::2 vrf v1 r3 tping 100 10 1.1.4.2 vrf v1 r3 tping 100 10 1234:4::2 vrf v1 r4 tping 100 10 1.1.1.2 vrf v1 r4 tping 100 10 1234:1::2 vrf v1 r4 tping 100 10 1.1.2.2 vrf v1 r4 tping 100 10 1234:2::2 vrf v1 r4 tping 100 10 1.1.3.2 vrf v1 r4 tping 100 10 1234:3::2 vrf v1 r4 tping 100 10 1.1.4.2 vrf v1 r4 tping 100 10 1234:4::2 vrf v1 r5 tping 100 10 1.1.1.2 vrf v1 r5 tping 100 10 1234:1::2 vrf v1 r5 tping 100 10 1.1.2.2 vrf v1 r5 tping 100 10 1234:2::2 vrf v1 r5 tping 100 10 1.1.3.2 vrf v1 r5 tping 100 10 1234:3::2 vrf v1 r5 tping 100 10 1.1.4.2 vrf v1 r5 tping 100 10 1234:4::2 vrf v1 r6 tping 100 10 1.1.1.2 vrf v1 r6 tping 100 10 1234:1::2 vrf v1 r6 tping 100 10 1.1.2.2 vrf v1 r6 tping 100 10 1234:2::2 vrf v1 r6 tping 100 10 1.1.3.2 vrf v1 r6 tping 100 10 1234:3::2 vrf v1 r6 tping 100 10 1.1.4.2 vrf v1 r6 tping 100 10 1234:4::2 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r1 tping 100 10 2.2.2.104 vrf v1 sou lo0 r1 tping 100 10 4321::104 vrf v1 sou lo0 r1 tping 100 10 2.2.2.105 vrf v1 sou lo0 r1 tping 100 10 4321::105 vrf v1 sou lo0 r1 tping 100 10 2.2.2.106 vrf v1 sou lo0 r1 tping 100 10 4321::106 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.104 vrf v1 sou lo0 r3 tping 100 10 4321::104 vrf v1 sou lo0 r3 tping 100 10 2.2.2.105 vrf v1 sou lo0 r3 tping 100 10 4321::105 vrf v1 sou lo0 r3 tping 100 10 2.2.2.106 vrf v1 sou lo0 r3 tping 100 10 4321::106 vrf v1 sou lo0 r4 tping 100 10 2.2.2.101 vrf v1 sou lo0 r4 tping 100 10 4321::101 vrf v1 sou lo0 r4 tping 100 10 2.2.2.103 vrf v1 sou lo0 r4 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.101 vrf v1 sou lo0 r5 tping 100 10 4321::101 vrf v1 sou lo0 r5 tping 100 10 2.2.2.103 vrf v1 sou lo0 r5 tping 100 10 4321::103 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.101 vrf v1 sou lo0 r6 tping 100 10 4321::101 vrf v1 sou lo0 r6 tping 100 10 2.2.2.103 vrf v1 sou lo0 r6 tping 100 10 4321::103 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 30 2.2.2.0 vrf v2 siz 3000 r6 tping 100 30 2.2.2.0 vrf v3 siz 3000 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang-rout363.tst000066400000000000000000000144501471627602100172740ustar00rootroot00000000000000description p4lang: qinq bridge tcpmss addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v9 rd 1:1 exit int lo9 vrf for v9 ipv4 addr 10.10.10.227 255.255.255.255 exit int eth1 vrf for v9 ipv4 addr 10.11.12.254 255.255.255.0 exit int eth2 exit server dhcp4 eth1 pool 10.11.12.1 10.11.12.99 gateway 10.11.12.254 netmask 255.255.255.0 dns-server 10.10.10.227 domain-name p4l static 0000.0000.2222 10.11.12.111 interface eth1 vrf v9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit bridge 1 mac-learn exit int sdn1 exit int sdn1.111 exit int sdn1.111.222 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 ena exit int sdn2 exit int sdn2.111 exit int sdn2.111.222 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit int sdn3 exit int sdn3.111 exit int sdn3.111.222 bridge-gr 1 exit int sdn4 exit int sdn4.111 exit int sdn4.111.222 bridge-gr 1 bridge-tcp-mss ipv4in 1280 bridge-tcp-mss ipv6in 1280 exit server p4lang p4 interconnect eth2 export-vrf v1 export-br 1 export-port sdn1 1 10 export-port sdn2 2 10 export-port sdn3 3 10 export-port sdn4 4 10 vrf v9 exit ipv4 route v1 2.2.2.103 255.255.255.255 1.1.1.2 ipv6 route v1 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ! addother r2 controller r1 v9 9080 - feature bridge vlan tcpmss int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ int eth4 eth 0000.0000.2222 $4a$ $4b$ int eth5 eth 0000.0000.2222 $5a$ $5b$ int eth6 eth 0000.0000.2222 $6a$ $6b$ ! ! addrouter r3 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.104 255.255.255.255 ipv6 addr 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vrf def v2 rd 1:1 exit ipv4 pool p4 2.2.2.1 0.0.0.1 254 int di1 enc ppp vrf for v2 ipv4 addr 2.2.2.0 255.255.255.255 ppp ip4cp local 2.2.2.0 ipv4 pool p4 ppp ip4cp open exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.4 255.255.255.0 ipv6 addr 1234:2::4 ffff:ffff:: exit server pckotcp pou clone di1 vrf v1 exit client tcp-segments 1024 4096 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r5 int eth1 eth 0000.0000.5555 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.105 255.255.255.255 ipv6 addr 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.0 ipv6 addr 1234:2::5 ffff:ffff:: exit ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.106 255.255.255.255 1.1.2.6 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::6 ! addrouter r6 int eth1 eth 0000.0000.6666 $6b$ $6a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit vrf def v3 rd 1:1 exit proxy-profile p1 vrf v1 exit prefix-list p1 permit 0.0.0.0/0 exit int lo0 vrf for v1 ipv4 addr 2.2.2.106 255.255.255.255 ipv6 addr 4321::106 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.111 exit int eth1.111.222 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.0 ipv6 addr 1234:2::6 ffff:ffff:: exit int di2 enc ppp vrf for v2 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di2 interface di2 proxy p1 target 2.2.2.104 vcid 2554 prot pckotcp exit int di3 enc ppp vrf for v3 ipv4 addr 4.4.4.4 255.255.255.128 ppp ip4cp open ppp ip4cp local 0.0.0.0 exit vpdn di3 interface di3 proxy p1 target 4321::104 vcid 2554 prot pckotcp exit client tcp-segments 1024 4096 ipv4 route v1 2.2.2.104 255.255.255.255 1.1.2.4 ipv4 route v1 2.2.2.105 255.255.255.255 1.1.2.5 ipv6 route v1 4321::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::4 ipv6 route v1 4321::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::5 ! r1 tping 100 10 1.1.1.2 vrf v1 r1 tping 100 10 1234:1::2 vrf v1 r3 tping 100 10 1.1.1.1 vrf v1 r3 tping 100 10 1234:1::1 vrf v1 r4 tping 100 10 1.1.2.5 vrf v1 r4 tping 100 10 1234:2::5 vrf v1 r4 tping 100 10 1.1.2.6 vrf v1 r4 tping 100 10 1234:2::6 vrf v1 r5 tping 100 10 1.1.2.4 vrf v1 r5 tping 100 10 1234:2::4 vrf v1 r5 tping 100 10 1.1.2.6 vrf v1 r5 tping 100 10 1234:2::6 vrf v1 r6 tping 100 10 1.1.2.4 vrf v1 r6 tping 100 10 1234:2::4 vrf v1 r6 tping 100 10 1.1.2.5 vrf v1 r6 tping 100 10 1234:2::5 vrf v1 r1 tping 100 10 2.2.2.101 vrf v1 sou lo0 r1 tping 100 10 4321::101 vrf v1 sou lo0 r1 tping 100 10 2.2.2.103 vrf v1 sou lo0 r1 tping 100 10 4321::103 vrf v1 sou lo0 r3 tping 100 10 2.2.2.101 vrf v1 sou lo0 r3 tping 100 10 4321::101 vrf v1 sou lo0 r3 tping 100 10 2.2.2.103 vrf v1 sou lo0 r3 tping 100 10 4321::103 vrf v1 sou lo0 r4 tping 100 10 2.2.2.104 vrf v1 sou lo0 r4 tping 100 10 4321::104 vrf v1 sou lo0 r4 tping 100 10 2.2.2.105 vrf v1 sou lo0 r4 tping 100 10 4321::105 vrf v1 sou lo0 r4 tping 100 10 2.2.2.106 vrf v1 sou lo0 r4 tping 100 10 4321::106 vrf v1 sou lo0 r5 tping 100 10 2.2.2.104 vrf v1 sou lo0 r5 tping 100 10 4321::104 vrf v1 sou lo0 r5 tping 100 10 2.2.2.105 vrf v1 sou lo0 r5 tping 100 10 4321::105 vrf v1 sou lo0 r5 tping 100 10 2.2.2.106 vrf v1 sou lo0 r5 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 10 2.2.2.104 vrf v1 sou lo0 r6 tping 100 10 4321::104 vrf v1 sou lo0 r6 tping 100 10 2.2.2.105 vrf v1 sou lo0 r6 tping 100 10 4321::105 vrf v1 sou lo0 r6 tping 100 10 2.2.2.106 vrf v1 sou lo0 r6 tping 100 10 4321::106 vrf v1 sou lo0 r6 tping 100 30 2.2.2.0 vrf v2 siz 3000 r6 tping 100 30 2.2.2.0 vrf v3 siz 3000 r1 dping sdn . r6 2.2.2.105 vrf v1 sou lo0 r1 dping sdn . r6 4321::105 vrf v1 sou lo0 freeRtr-24.11.16/cfg/p4lang1.ini000066400000000000000000000012271471627602100160750ustar00rootroot00000000000000bmv2 copp acl racl inspect nat vlan bundle bridge pppoe hairpin gre l2tp l3tp tmux route mpls vpls evpn eompls srv6 gretap pppoetap l2tptap l3tptap tmuxtap vxlan ipip pckoudp pbr qos flwspc mroute duplab bier nsh sgt amt -polka gtp -vrfysrc loconn etherip qemu-img create -f qcow2 -o backing_file=../img/p4bmv2.img,backing_fmt=raw $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 1024 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang2.ini000066400000000000000000000013261471627602100160760ustar00rootroot00000000000000dpdk pckout punting copp acl nat vlan bundle bridge pppoe hairpin gre l2tp l3tp tmux route mpls vpls evpn eompls gretap pppoetap l2tptap l3tptap tmuxtap vxlan ipip macsec ipsec pckoudp openvpn wireguard srv6 pbr qos flwspc mroute duplab bier amt nsh racl inspect sgt vrfysrc gtp loconn tcpmss pmtud etherip polka mpolka qemu-img create -f qcow2 -o backing_file=../img/p4emu.img,backing_fmt=raw $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 1024 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang301.ini000066400000000000000000000007451471627602100162440ustar00rootroot00000000000000tofino copp acl vlan bundle bridge route mpls vpls evpn eompls hairpin qemu-img create -f qcow2 -o backing_file=../img/p4bf_mpls.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang302.ini000066400000000000000000000007311471627602100162400ustar00rootroot00000000000000tofino copp acl vlan bundle route srv6 hairpin nat pbr qos qemu-img create -f qcow2 -o backing_file=../img/p4bf_srv6.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang303.ini000066400000000000000000000007331471627602100162430ustar00rootroot00000000000000tofino copp acl vlan bundle bridge route hairpin gre gretap qemu-img create -f qcow2 -o backing_file=../img/p4bf_brdg1.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang304.ini000066400000000000000000000007251471627602100162450ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin gre mpls pbr qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun1.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang305.ini000066400000000000000000000007231471627602100162440ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin pppoe mpls qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun2.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang306.ini000066400000000000000000000007221471627602100162440ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin l2tp mpls qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun3.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang307.ini000066400000000000000000000007261471627602100162510ustar00rootroot00000000000000tofino copp acl vlan bundle bridge route hairpin vxlan qemu-img create -f qcow2 -o backing_file=../img/p4bf_brdg2.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang308.ini000066400000000000000000000007341471627602100162510ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin ipip nat pbr flwspc qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun4.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang309.ini000066400000000000000000000007301471627602100162460ustar00rootroot00000000000000tofino copp acl vlan bundle bridge route hairpin pckoudp qemu-img create -f qcow2 -o backing_file=../img/p4bf_brdg3.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang310.ini000066400000000000000000000007411471627602100162400ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin mpls mroute duplab bier qemu-img create -f qcow2 -o backing_file=../img/p4bf_mcast.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang311.ini000066400000000000000000000007261471627602100162440ustar00rootroot00000000000000tofino vlan bundle route mpls hairpin polka nsh loconn qemu-img create -f qcow2 -o backing_file=../img/p4bf_polka.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang312.ini000066400000000000000000000007121471627602100162400ustar00rootroot00000000000000tofino vlan bundle route acl racl inspect sgt qemu-img create -f qcow2 -o backing_file=../img/p4bf_fw.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang313.ini000066400000000000000000000007141471627602100162430ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin gtp qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun5.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang314.ini000066400000000000000000000007221471627602100162430ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin l3tp mpls qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun6.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang315.ini000066400000000000000000000007221471627602100162440ustar00rootroot00000000000000tofino copp acl vlan bundle route hairpin tmux mpls qemu-img create -f qcow2 -o backing_file=../img/p4bf_tun7.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang316.ini000066400000000000000000000007301471627602100162440ustar00rootroot00000000000000tofino copp acl vlan bundle bridge route hairpin etherip qemu-img create -f qcow2 -o backing_file=../img/p4bf_brdg4.qcow2,backing_fmt=qcow2 $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 4096 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang4.ini000066400000000000000000000011021471627602100160700ustar00rootroot00000000000000xdp punting route mpls bundle vlan pppoe eompls bridge vpls evpn hairpin sgt loconn pmtud vrfysrc gre l2tp l3tp gtp nsh polka gretap pppoetap l2tptap l3tptap pckoudp vxlan qemu-img create -f qcow2 -o backing_file=../img/p4xdp.img,backing_fmt=raw $fn$ qemu-system-x86_64 -monitor none -serial stdio -nographic -no-reboot -enable-kvm -cpu host -smp cores=2,threads=1,sockets=1 -drive file=$fn$,format=qcow2,cache=unsafe -m 1024 $nc$ 0 -netdev socket,id=n$id$,udp=:$rp$,localaddr=:$lp$ -device virtio-net-pci,netdev=n$id$,mac=$ad$ Router> !!!separator- enable configure terminal freeRtr-24.11.16/cfg/p4lang5.ini000066400000000000000000000006161471627602100161020ustar00rootroot00000000000000udp pckout punting copp acl nat vlan bundle bridge pppoe hairpin gre l2tp route mpls vpls evpn eompls gretap pppoetap l2tptap l3tptap tmuxtap vxlan ipip macsec ipsec pckoudp openvpn wireguard srv6 pbr qos flwspc mroute duplab bier amt nsh racl inspect sgt vrfysrc gtp loconn tcpmss pmtud l3tp tmux etherip polka mpolka ../binTmp/p4udp.bin 127.0.0.1 $cp$ 0 127.0.0.1 127.0.0.1 $nc$ 1 $lp$ $rp$ freeRtr-24.11.16/cfg/p4lang6.ini000066400000000000000000000006701471627602100161030ustar00rootroot00000000000000emudp pckout punting copp acl nat vlan bundle bridge pppoe hairpin gre l2tp route mpls vpls evpn eompls gretap pppoetap l2tptap l3tptap tmuxtap vxlan ipip macsec ipsec pckoudp openvpn wireguard srv6 pbr qos flwspc mroute duplab bier amt nsh racl inspect sgt vrfysrc gtp loconn tcpmss pmtud l3tp tmux etherip polka mpolka ../binDsk/qemu-static -L ../binDsk/ ../binDsk/rtr/p4udp.bin 127.0.0.1 $cp$ 0 127.0.0.1 127.0.0.1 $nc$ 1 $lp$ $rp$ freeRtr-24.11.16/cfg/qos-action01.tst000066400000000000000000000014541471627602100171020ustar00rootroot00000000000000description qos ingress transmit action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 r2 output show policy int eth1 in output ../binTmp/qos-transmit.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action02.tst000066400000000000000000000011151471627602100170750ustar00rootroot00000000000000description qos egress transmit action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-action03.tst000066400000000000000000000014331471627602100171010ustar00rootroot00000000000000description qos ingress drop action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 r2 output show policy int eth1 in output ../binTmp/qos-drop.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action04.tst000066400000000000000000000011001471627602100170710ustar00rootroot00000000000000description qos egress drop action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-action05.tst000066400000000000000000000016771471627602100171150ustar00rootroot00000000000000description qos ingress policer action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pol access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 r2 output show policy int eth1 in output ../binTmp/qos-police.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action06.tst000066400000000000000000000013421471627602100171030ustar00rootroot00000000000000description qos egress policer action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pol access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action07.tst000066400000000000000000000017021471627602100171040ustar00rootroot00000000000000description qos ingress priority action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pri access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 r2 output show policy int eth1 in output ../binTmp/qos-priority.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action08.tst000066400000000000000000000013431471627602100171060ustar00rootroot00000000000000description qos egress priority action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pri access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action09.tst000066400000000000000000000016741471627602100171160ustar00rootroot00000000000000description qos ingress bandwidth action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act ban access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 100 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1234::2 vrf v1 rep 100 tim 500 siz 100 r2 output show policy int eth1 in output ../binTmp/qos-bandwidth.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action10.tst000066400000000000000000000013341471627602100170770ustar00rootroot00000000000000description qos egress bandwidth action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act ban access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 100 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action11.tst000066400000000000000000000020031471627602100170720ustar00rootroot00000000000000description qos ingress shaper action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act sha access-rate 65536 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pol access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 100 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1234::2 vrf v1 rep 100 tim 500 siz 100 r2 output show policy int eth1 in output ../binTmp/qos-shape.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action12.tst000066400000000000000000000014471471627602100171060ustar00rootroot00000000000000description qos egress shaper action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act sha access-rate 65536 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-out p1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pol access-rate 81920 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 100 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 100 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action13.tst000066400000000000000000000020101471627602100170720ustar00rootroot00000000000000description qos ingress hierarchical action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pol access-rate 81920 exit policy-map p2 seq 10 act sha access-rate 163840 service p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p2 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 r2 output show policy int eth1 in output ../binTmp/qos-hqos.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action14.tst000066400000000000000000000014551471627602100171070ustar00rootroot00000000000000description qos egress hierarchical action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pol access-rate 81920 exit policy-map p2 seq 10 act sha access-rate 163840 service p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p2 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action15.tst000066400000000000000000000016671471627602100171150ustar00rootroot00000000000000description qos ingress pps action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pps access-rate 1024 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 r2 output show policy int eth1 in output ../binTmp/qos-pps.html here is the policy:
show:0
! freeRtr-24.11.16/cfg/qos-action16.tst000066400000000000000000000013351471627602100171060ustar00rootroot00000000000000description qos egress pps action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act pps access-rate 1024 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action17.tst000066400000000000000000000012561471627602100171110ustar00rootroot00000000000000description qos ingress rate limit action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: rate-limit-in 819 100 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action18.tst000066400000000000000000000012561471627602100171120ustar00rootroot00000000000000description qos egress rate limit action addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: rate-limit-out 819 100 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-action19.tst000066400000000000000000000026331471627602100171130ustar00rootroot00000000000000description qos ingress divert action addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ int ser3 ser - $3a$ $3b$ int ser4 ser - $4a$ $4b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 exit vrf def v3 rd 1:3 exit vrf def v4 rd 1:4 exit policy-map p1 seq 10 act trans set vrf v4 exit policy-map p2 seq 10 act trans set vrf v2 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int ser2 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser3 vrf for v3 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p2 exit int ser4 vrf for v4 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser - $3b$ $3a$ int ser2 ser - $4b$ $4a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: exit ! r3 tping 100 15 1.1.1.1 vrf v1 siz 200 r3 tping 100 15 1234::1 vrf v1 siz 200 r1 tping 100 15 1.1.1.3 vrf v1 siz 200 r1 tping 100 15 1234::3 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp01.tst000066400000000000000000000011151471627602100165600ustar00rootroot00000000000000description qos ingress transmit copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act trans exit vrf def v1 rd 1:1 copp4in p1 copp6in p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp02.tst000066400000000000000000000011161471627602100165620ustar00rootroot00000000000000description qos egress transmit copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act trans exit vrf def v1 rd 1:1 copp4out p1 copp6out p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp03.tst000066400000000000000000000011001471627602100165540ustar00rootroot00000000000000description qos ingress drop copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act drop exit vrf def v1 rd 1:1 copp4in p1 copp6in p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp04.tst000066400000000000000000000011011471627602100165560ustar00rootroot00000000000000description qos egress drop copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act drop exit vrf def v1 rd 1:1 copp4out p1 copp6out p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp05.tst000066400000000000000000000013421471627602100165660ustar00rootroot00000000000000description qos ingress policer copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pol access-rate 81920 exit vrf def v1 rd 1:1 copp4in p1 copp6in p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp06.tst000066400000000000000000000013431471627602100165700ustar00rootroot00000000000000description qos egress policer copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pol access-rate 81920 exit vrf def v1 rd 1:1 copp4out p1 copp6out p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp07.tst000066400000000000000000000011011471627602100165610ustar00rootroot00000000000000description qos transmit dapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act trans exit vrf def v1 rd 1:1 dapp4 p1 dapp6 p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp08.tst000066400000000000000000000010641471627602100165720ustar00rootroot00000000000000description qos drop dapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act drop exit vrf def v1 rd 1:1 dapp4 p1 dapp6 p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp09.tst000066400000000000000000000013271471627602100165750ustar00rootroot00000000000000description qos policer dapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pol access-rate 163840 exit vrf def v1 rd 1:1 dapp4 p1 dapp6 p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp10.tst000066400000000000000000000013301471627602100165570ustar00rootroot00000000000000description qos priority dapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pri access-rate 163840 exit vrf def v1 rd 1:1 dapp4 p1 dapp6 p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp11.tst000066400000000000000000000015521471627602100165660ustar00rootroot00000000000000description qos transmit flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act trans match access-group a4 exit policy-map p6 seq 10 act trans match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp12.tst000066400000000000000000000015341471627602100165670ustar00rootroot00000000000000description qos drop flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act drop match access-group a4 exit policy-map p6 seq 10 act drop match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp13.tst000066400000000000000000000020231471627602100165620ustar00rootroot00000000000000description qos policer flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act pol access-rate 163840 match access-group a4 exit policy-map p6 seq 10 act pol access-rate 163840 match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp14.tst000066400000000000000000000020241471627602100165640ustar00rootroot00000000000000description qos priority flowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act pri access-rate 163840 match access-group a4 exit policy-map p6 seq 10 act pri access-rate 163840 match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p4 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p6 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp15.tst000066400000000000000000000017311471627602100165710ustar00rootroot00000000000000description qos transmit otherflowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act trans match access-group a4 exit policy-map p6 seq 10 act trans match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p6 exit router bgp6 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p4 exit ! r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp16.tst000066400000000000000000000017131471627602100165720ustar00rootroot00000000000000description qos drop otherflowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act drop match access-group a4 exit policy-map p6 seq 10 act drop match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p6 exit router bgp6 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p4 exit ! r2 tping 0 5 1.1.1.1 vrf v1 siz 200 r2 tping 0 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 200 r1 tping 0 5 1234::2 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp17.tst000066400000000000000000000022021471627602100165650ustar00rootroot00000000000000description qos policer otherflowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act pol access-rate 163840 match access-group a4 exit policy-map p6 seq 10 act pol access-rate 163840 match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p6 exit router bgp6 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p4 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp18.tst000066400000000000000000000022031471627602100165670ustar00rootroot00000000000000description qos priority otherflowspec addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p4 seq 10 act pri access-rate 163840 match access-group a4 exit policy-map p6 seq 10 act pri access-rate 163840 match access-group a6 exit vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p6 exit router bgp6 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p4 exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp19.tst000066400000000000000000000013351471627602100165750ustar00rootroot00000000000000description qos ingress pps copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pps access-rate 1024 exit vrf def v1 rd 1:1 copp4in p1 copp6in p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp20.tst000066400000000000000000000013361471627602100165660ustar00rootroot00000000000000description qos egress pps copp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pps access-rate 1024 exit vrf def v1 rd 1:1 copp4out p1 copp6out p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp21.tst000066400000000000000000000013211471627602100165610ustar00rootroot00000000000000description qos pps dapp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! policy-map p1 seq 10 act pps access-rate 2048 exit vrf def v1 rd 1:1 dapp4 p1 dapp6 p1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r2 tping 85-95 5 1.1.1.1 vrf v1 rep 100 tim 500 siz 100 r2 tping 85-95 5 1234::1 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1.1.1.2 vrf v1 rep 100 tim 500 siz 100 r1 tping 85-95 5 1234::2 vrf v1 rep 100 tim 500 siz 100 freeRtr-24.11.16/cfg/qos-copp22.tst000066400000000000000000000026151471627602100165710ustar00rootroot00000000000000description qos divert dapp addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ int ser3 ser - $3a$ $3b$ int ser4 ser - $4a$ $4b$ ! vrf def v2 rd 1:2 exit vrf def v4 rd 1:4 exit policy-map p1 seq 10 act trans set vrf v4 exit policy-map p2 seq 10 act trans set vrf v2 exit vrf def v1 rd 1:1 dapp4 p1 dapp6 p1 exit vrf def v3 rd 1:3 dapp4 p2 dapp6 p2 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser2 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser3 vrf for v3 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser4 vrf for v4 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! addrouter r3 int ser1 ser - $3b$ $3a$ int ser2 ser - $4b$ $4a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: exit ! r3 tping 100 15 1.1.1.1 vrf v1 siz 200 r3 tping 100 15 1234::1 vrf v1 siz 200 r1 tping 100 15 1.1.1.3 vrf v1 siz 200 r1 tping 100 15 1234::3 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp23.tst000066400000000000000000000036261471627602100165750ustar00rootroot00000000000000description qos divert flowspec addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ int ser3 ser - $3a$ $3b$ int ser4 ser - $4a$ $4b$ ! vrf def v1 rd 1:1 exit vrf def v3 rd 1:3 exit vrf def v2 rd 1:2 exit vrf def v4 rd 1:4 exit access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p1 seq 10 act trans match access-group a4 set vrf v4 exit policy-map p2 seq 10 act trans match access-group a4 set vrf v2 exit policy-map p3 seq 10 act trans match access-group a6 set vrf v4 exit policy-map p4 seq 10 act trans match access-group a6 set vrf v2 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser2 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser3 vrf for v3 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser4 vrf for v4 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 flowspec-install flowspec-advert p1 exit router bgp6 1 vrf v1 flowspec-install flowspec-advert p3 exit router bgp4 3 vrf v3 flowspec-install flowspec-advert p2 exit router bgp6 3 vrf v3 flowspec-install flowspec-advert p4 exit ! addrouter r3 int ser1 ser - $3b$ $3a$ int ser2 ser - $4b$ $4a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: exit ! r3 tping 100 15 1.1.1.1 vrf v1 siz 200 r3 tping 100 15 1234::1 vrf v1 siz 200 r1 tping 100 15 1.1.1.3 vrf v1 siz 200 r1 tping 100 15 1234::3 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-copp24.tst000066400000000000000000000041571471627602100165760ustar00rootroot00000000000000description qos divert otherflowspec addrouter r1 int ser1 ser - $1a$ $1b$ int ser2 ser - $2a$ $2b$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2b$ $2a$ int ser3 ser - $3a$ $3b$ int ser4 ser - $4a$ $4b$ ! vrf def v1 rd 1:1 exit vrf def v3 rd 1:3 exit vrf def v2 rd 1:2 exit vrf def v4 rd 1:4 exit access-list a4 permit 1 any all any all exit access-list a6 permit 58 any all any all exit policy-map p1 seq 10 act trans match access-group a4 set vrf v4 exit policy-map p2 seq 10 act trans match access-group a4 set vrf v2 exit policy-map p3 seq 10 act trans match access-group a6 set vrf v4 exit policy-map p4 seq 10 act trans match access-group a6 set vrf v2 exit int ser1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser2 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser3 vrf for v3 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int ser4 vrf for v4 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit router bgp4 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p3 exit router bgp6 1 vrf v1 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p1 exit router bgp4 3 vrf v3 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p4 exit router bgp6 3 vrf v3 afi-other ena no afi-other vpn afi-other flowspec-install afi-other flowspec-advert p2 exit ! addrouter r3 int ser1 ser - $3b$ $3a$ int ser2 ser - $4b$ $4a$ ! vrf def v1 rd 1:1 exit int ser1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit int ser2 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: exit ! r3 tping 100 15 1.1.1.1 vrf v1 siz 200 r3 tping 100 15 1234::1 vrf v1 siz 200 r1 tping 100 15 1.1.1.3 vrf v1 siz 200 r1 tping 100 15 1234::3 vrf v1 siz 200 freeRtr-24.11.16/cfg/qos-match01.tst000066400000000000000000000025321471627602100167170ustar00rootroot00000000000000description qos ingress length matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match length 300-500 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-match02.tst000066400000000000000000000025331471627602100167210ustar00rootroot00000000000000description qos egress length matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match length 300-500 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-match03.tst000066400000000000000000000022671471627602100167260ustar00rootroot00000000000000description qos ingress tos matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match tos 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 tos 124 r3 tping 100 5 1.1.1.1 vrf v1 tos 124 r1 tping 100 5 4321::2 vrf v1 tos 124 r3 tping 100 5 1234::1 vrf v1 tos 124 r1 tping 0 5 2.2.2.2 vrf v1 tos 123 r3 tping 0 5 1.1.1.1 vrf v1 tos 123 r1 tping 0 5 4321::2 vrf v1 tos 123 r3 tping 0 5 1234::1 vrf v1 tos 123 freeRtr-24.11.16/cfg/qos-match04.tst000066400000000000000000000022701471627602100167210ustar00rootroot00000000000000description qos egress tos matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match tos 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 tos 124 r3 tping 100 5 1.1.1.1 vrf v1 tos 124 r1 tping 100 5 4321::2 vrf v1 tos 124 r3 tping 100 5 1234::1 vrf v1 tos 124 r1 tping 0 5 2.2.2.2 vrf v1 tos 123 r3 tping 0 5 1.1.1.1 vrf v1 tos 123 r1 tping 0 5 4321::2 vrf v1 tos 123 r3 tping 0 5 1234::1 vrf v1 tos 123 freeRtr-24.11.16/cfg/qos-match05.tst000066400000000000000000000022601471627602100167210ustar00rootroot00000000000000description qos ingress dscp matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match dscp 12 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 tos 47 r3 tping 100 5 1.1.1.1 vrf v1 tos 47 r1 tping 100 5 4321::2 vrf v1 tos 47 r3 tping 100 5 1234::1 vrf v1 tos 47 r1 tping 0 5 2.2.2.2 vrf v1 tos 48 r3 tping 0 5 1.1.1.1 vrf v1 tos 48 r1 tping 0 5 4321::2 vrf v1 tos 48 r3 tping 0 5 1234::1 vrf v1 tos 48 freeRtr-24.11.16/cfg/qos-match06.tst000066400000000000000000000022611471627602100167230ustar00rootroot00000000000000description qos egress dscp matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match dscp 12 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 tos 47 r3 tping 100 5 1.1.1.1 vrf v1 tos 47 r1 tping 100 5 4321::2 vrf v1 tos 47 r3 tping 100 5 1234::1 vrf v1 tos 47 r1 tping 0 5 2.2.2.2 vrf v1 tos 48 r3 tping 0 5 1.1.1.1 vrf v1 tos 48 r1 tping 0 5 4321::2 vrf v1 tos 48 r3 tping 0 5 1234::1 vrf v1 tos 48 freeRtr-24.11.16/cfg/qos-match07.tst000066400000000000000000000022571471627602100167310ustar00rootroot00000000000000description qos ingress prec matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match prec 2 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 tos 63 r3 tping 100 5 1.1.1.1 vrf v1 tos 63 r1 tping 100 5 4321::2 vrf v1 tos 63 r3 tping 100 5 1234::1 vrf v1 tos 63 r1 tping 0 5 2.2.2.2 vrf v1 tos 64 r3 tping 0 5 1.1.1.1 vrf v1 tos 64 r1 tping 0 5 4321::2 vrf v1 tos 64 r3 tping 0 5 1234::1 vrf v1 tos 64 freeRtr-24.11.16/cfg/qos-match08.tst000066400000000000000000000022601471627602100167240ustar00rootroot00000000000000description qos egress prec matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match prec 2 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 tos 63 r3 tping 100 5 1.1.1.1 vrf v1 tos 63 r1 tping 100 5 4321::2 vrf v1 tos 63 r3 tping 100 5 1234::1 vrf v1 tos 63 r1 tping 0 5 2.2.2.2 vrf v1 tos 64 r3 tping 0 5 1.1.1.1 vrf v1 tos 64 r1 tping 0 5 4321::2 vrf v1 tos 64 r3 tping 0 5 1234::1 vrf v1 tos 64 freeRtr-24.11.16/cfg/qos-match09.tst000066400000000000000000000027711471627602100167340ustar00rootroot00000000000000description qos ingress acl matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access a1 permit all 1.1.1.1 255.255.255.255 all 2.2.2.2 255.255.255.255 all permit all 2.2.2.2 255.255.255.255 all 1.1.1.1 255.255.255.255 all permit all 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act drop match access a1 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r2 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 4321::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r3 tping 0 5 1.1.1.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r3 tping 0 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/qos-match10.tst000066400000000000000000000027721471627602100167250ustar00rootroot00000000000000description qos egress acl matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access a1 permit all 1.1.1.1 255.255.255.255 all 2.2.2.2 255.255.255.255 all permit all 2.2.2.2 255.255.255.255 all 1.1.1.1 255.255.255.255 all permit all 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all permit all 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit policy-map p1 seq 10 act drop match access a1 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r2 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 4321::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r3 tping 0 5 1.1.1.1 vrf v1 r1 tping 0 5 4321::2 vrf v1 r3 tping 0 5 1234::1 vrf v1 freeRtr-24.11.16/cfg/qos-match11.tst000066400000000000000000000013111471627602100167120ustar00rootroot00000000000000description qos ingress ethertype matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match ethtyp 34525 seq 20 act drop exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: service-policy-in p1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 3333::1 vrf v1 r2 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3333::2 vrf v1 r2 tping 0 5 3.3.3.1 vrf v1 r2 tping 100 5 3333::1 vrf v1 r1 tping 0 5 3.3.3.2 vrf v1 r1 tping 100 5 3333::2 vrf v1 freeRtr-24.11.16/cfg/qos-match12.tst000066400000000000000000000013111471627602100167130ustar00rootroot00000000000000description qos egress ethertype matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match ethtyp 34525 seq 20 act drop exit int eth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: service-policy-out p1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r1 tping 100 5 3.3.3.1 vrf v1 r1 tping 100 5 3333::1 vrf v1 r2 tping 100 5 3.3.3.2 vrf v1 r2 tping 100 5 3333::2 vrf v1 r2 tping 0 5 3.3.3.1 vrf v1 r2 tping 100 5 3333::1 vrf v1 r1 tping 0 5 3.3.3.2 vrf v1 r1 tping 100 5 3333::2 vrf v1 freeRtr-24.11.16/cfg/qos-match13.tst000066400000000000000000000033301471627602100167170ustar00rootroot00000000000000description qos ingress matcher on bridged traffic addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit policy-map p1 seq 10 act drop match length 300-500 seq 20 act trans exit int eth1 bridge-gr 1 service-policy-in p1 exit int eth2 bridge-gr 1 service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 1234::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 1.1.1.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 1234::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 r2 tping 100 5 1.1.1.2 vrf v1 siz 200 r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::2 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r2 tping 0 5 1.1.1.2 vrf v1 siz 400 r2 tping 0 5 1.1.1.1 vrf v1 siz 400 r2 tping 0 5 1234::2 vrf v1 siz 400 r2 tping 0 5 1234::1 vrf v1 siz 400 r2 tping 100 5 1.1.1.2 vrf v1 siz 600 r2 tping 100 5 1.1.1.1 vrf v1 siz 600 r2 tping 100 5 1234::2 vrf v1 siz 600 r2 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-match14.tst000066400000000000000000000033311471627602100167210ustar00rootroot00000000000000description qos egress matcher on bridged traffic addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: exit policy-map p1 seq 10 act drop match length 300-500 seq 20 act trans exit int eth1 bridge-gr 1 service-policy-out p1 exit int eth2 bridge-gr 1 service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 1234::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 1.1.1.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 1234::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 1.1.1.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 1234::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 r2 tping 100 5 1.1.1.2 vrf v1 siz 200 r2 tping 100 5 1.1.1.1 vrf v1 siz 200 r2 tping 100 5 1234::2 vrf v1 siz 200 r2 tping 100 5 1234::1 vrf v1 siz 200 r2 tping 0 5 1.1.1.2 vrf v1 siz 400 r2 tping 0 5 1.1.1.1 vrf v1 siz 400 r2 tping 0 5 1234::2 vrf v1 siz 400 r2 tping 0 5 1234::1 vrf v1 siz 400 r2 tping 100 5 1.1.1.2 vrf v1 siz 600 r2 tping 100 5 1.1.1.1 vrf v1 siz 600 r2 tping 100 5 1234::2 vrf v1 siz 600 r2 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-match15.tst000066400000000000000000000025241471627602100167250ustar00rootroot00000000000000description qos ingress ttl matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match ttl 110-120 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 ttl 100 r3 tping 100 5 1.1.1.1 vrf v1 ttl 100 r1 tping 100 5 4321::2 vrf v1 ttl 100 r3 tping 100 5 1234::1 vrf v1 ttl 100 r1 tping 0 5 2.2.2.2 vrf v1 ttl 115 r3 tping 0 5 1.1.1.1 vrf v1 ttl 115 r1 tping 0 5 4321::2 vrf v1 ttl 115 r3 tping 0 5 1234::1 vrf v1 ttl 115 r1 tping 100 5 2.2.2.2 vrf v1 ttl 125 r3 tping 100 5 1.1.1.1 vrf v1 ttl 125 r1 tping 100 5 4321::2 vrf v1 ttl 125 r3 tping 100 5 1234::1 vrf v1 ttl 125 freeRtr-24.11.16/cfg/qos-match16.tst000066400000000000000000000025251471627602100167270ustar00rootroot00000000000000description qos egress ttl matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match ttl 110-120 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 ttl 100 r3 tping 100 5 1.1.1.1 vrf v1 ttl 100 r1 tping 100 5 4321::2 vrf v1 ttl 100 r3 tping 100 5 1234::1 vrf v1 ttl 100 r1 tping 0 5 2.2.2.2 vrf v1 ttl 115 r3 tping 0 5 1.1.1.1 vrf v1 ttl 115 r1 tping 0 5 4321::2 vrf v1 ttl 115 r3 tping 0 5 1234::1 vrf v1 ttl 115 r1 tping 100 5 2.2.2.2 vrf v1 ttl 125 r3 tping 100 5 1.1.1.1 vrf v1 ttl 125 r1 tping 100 5 4321::2 vrf v1 ttl 125 r3 tping 100 5 1234::1 vrf v1 ttl 125 freeRtr-24.11.16/cfg/qos-match17.tst000066400000000000000000000023011471627602100167200ustar00rootroot00000000000000description qos ingress flow matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match flow 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 flow 124 r3 tping 100 5 1.1.1.1 vrf v1 flow 124 r1 tping 100 5 4321::2 vrf v1 flow 124 r3 tping 100 5 1234::1 vrf v1 flow 124 r1 tping 0 5 2.2.2.2 vrf v1 flow 123 r3 tping 0 5 1.1.1.1 vrf v1 flow 123 r1 tping 0 5 4321::2 vrf v1 flow 123 r3 tping 0 5 1234::1 vrf v1 flow 123 freeRtr-24.11.16/cfg/qos-match18.tst000066400000000000000000000023021471627602100167220ustar00rootroot00000000000000description qos egress flow matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match flow 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 flow 124 r3 tping 100 5 1.1.1.1 vrf v1 flow 124 r1 tping 100 5 4321::2 vrf v1 flow 124 r3 tping 100 5 1234::1 vrf v1 flow 124 r1 tping 0 5 2.2.2.2 vrf v1 flow 123 r3 tping 0 5 1.1.1.1 vrf v1 flow 123 r1 tping 0 5 4321::2 vrf v1 flow 123 r3 tping 0 5 1234::1 vrf v1 flow 123 freeRtr-24.11.16/cfg/qos-match19.tst000066400000000000000000000022041471627602100167240ustar00rootroot00000000000000description qos ingress sgt matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: sgt ena exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: sgt ass 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r2 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 4321::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.1 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 4321::1 vrf v1 r1 tping 0 5 4321::2 vrf v1 freeRtr-24.11.16/cfg/qos-match20.tst000066400000000000000000000022041471627602100167140ustar00rootroot00000000000000description qos egress sgt matcher addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: sgt ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 sgt ena exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: sgt ass 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r2 tping 100 5 2.2.2.2 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 4321::2 vrf v1 r2 tping 100 5 1234::1 vrf v1 r1 tping 100 5 2.2.2.1 vrf v1 r1 tping 0 5 2.2.2.2 vrf v1 r1 tping 100 5 4321::1 vrf v1 r1 tping 0 5 4321::2 vrf v1 freeRtr-24.11.16/cfg/qos-set01.tst000066400000000000000000000027401471627602100164170ustar00rootroot00000000000000description qos ingress qosgroup set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set qos 12345 seq 20 act trans exit policy-map p2 seq 10 act drop match qos 12345 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 service-policy-out p2 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 service-policy-out p2 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set02.tst000066400000000000000000000030521471627602100164150ustar00rootroot00000000000000description qos ingress tos set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match tos 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set tos 123 seq 20 act trans set tos 122 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match tos 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set03.tst000066400000000000000000000030531471627602100164170ustar00rootroot00000000000000description qos egress tos set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match tos 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set tos 123 seq 20 act trans set tos 122 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match tos 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set04.tst000066400000000000000000000030531471627602100164200ustar00rootroot00000000000000description qos ingress dscp set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match dscp 12 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set dscp 12 seq 20 act trans set dscp 11 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match dscp 12 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set05.tst000066400000000000000000000030541471627602100164220ustar00rootroot00000000000000description qos egress dscp set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match dscp 12 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set dscp 12 seq 20 act trans set dscp 11 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match dscp 12 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set06.tst000066400000000000000000000030471471627602100164250ustar00rootroot00000000000000description qos ingress prec set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match prec 4 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set prec 4 seq 20 act trans set prec 5 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match prec 4 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set07.tst000066400000000000000000000030501471627602100164200ustar00rootroot00000000000000description qos egress prec set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match prec 4 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set prec 4 seq 20 act trans set prec 5 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match prec 4 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set08.tst000066400000000000000000000031441471627602100164250ustar00rootroot00000000000000description qos cos set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match cos 4 seq 20 act trans exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int eth1 service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set cos 4 seq 20 act trans set cos 5 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth1 service-policy-out p1 exit int eth2.11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit int eth2 service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match cos 4 seq 20 act trans exit int eth1.11 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit int eth1 service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set09.tst000066400000000000000000000046231471627602100164310ustar00rootroot00000000000000description qos ingress exp set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit policy-map p1 seq 10 act drop match exp 4 seq 20 act trans exit int lo0 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-in p1 exit ipv4 route v1 3.3.3.2 255.255.255.255 1.1.1.2 ipv6 route v1 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit policy-map p1 seq 10 act trans match length 300-500 set exp 4 seq 20 act trans set exp 5 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-in p1 exit ipv4 route v1 3.3.3.1 255.255.255.255 1.1.1.1 ipv6 route v1 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 route v1 3.3.3.2 255.255.255.255 2.2.2.2 ipv6 route v1 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit policy-map p1 seq 10 act drop match exp 4 seq 20 act trans exit int lo0 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-in p1 exit ipv4 route v1 3.3.3.1 255.255.255.255 2.2.2.1 ipv6 route v1 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::1 ! r1 tping 100 5 3.3.3.2 vrf v1 sou lo0 siz 200 r3 tping 100 5 3.3.3.1 vrf v1 sou lo0 siz 200 r1 tping 100 5 3333::2 vrf v1 sou lo0 siz 200 r3 tping 100 5 3333::1 vrf v1 sou lo0 siz 200 r1 tping 0 15 3.3.3.2 vrf v1 sou lo0 siz 400 r3 tping 0 15 3.3.3.1 vrf v1 sou lo0 siz 400 r1 tping 0 15 3333::2 vrf v1 sou lo0 siz 400 r3 tping 0 15 3333::1 vrf v1 sou lo0 siz 400 r1 tping 100 5 3.3.3.2 vrf v1 sou lo0 siz 600 r3 tping 100 5 3.3.3.1 vrf v1 sou lo0 siz 600 r1 tping 100 5 3333::2 vrf v1 sou lo0 siz 600 r3 tping 100 5 3333::1 vrf v1 sou lo0 siz 600 freeRtr-24.11.16/cfg/qos-set10.tst000066400000000000000000000046241471627602100164220ustar00rootroot00000000000000description qos egress exp set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit policy-map p1 seq 10 act drop match exp 4 seq 20 act trans exit int lo0 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-in p1 exit ipv4 route v1 3.3.3.2 255.255.255.255 1.1.1.2 ipv6 route v1 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit policy-map p1 seq 10 act trans match length 300-500 set exp 4 seq 20 act trans set exp 5 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-out p1 exit ipv4 route v1 3.3.3.1 255.255.255.255 1.1.1.1 ipv6 route v1 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::1 ipv4 route v1 3.3.3.2 255.255.255.255 2.2.2.2 ipv6 route v1 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit policy-map p1 seq 10 act drop match exp 4 seq 20 act trans exit int lo0 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: mpls enable mpls ldp4 mpls ldp6 service-policy-in p1 exit ipv4 route v1 3.3.3.1 255.255.255.255 2.2.2.1 ipv6 route v1 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::1 ! r1 tping 100 5 3.3.3.2 vrf v1 sou lo0 siz 200 r3 tping 100 5 3.3.3.1 vrf v1 sou lo0 siz 200 r1 tping 100 5 3333::2 vrf v1 sou lo0 siz 200 r3 tping 100 5 3333::1 vrf v1 sou lo0 siz 200 r1 tping 0 15 3.3.3.2 vrf v1 sou lo0 siz 400 r3 tping 0 15 3.3.3.1 vrf v1 sou lo0 siz 400 r1 tping 0 15 3333::2 vrf v1 sou lo0 siz 400 r3 tping 0 15 3333::1 vrf v1 sou lo0 siz 400 r1 tping 100 5 3.3.3.2 vrf v1 sou lo0 siz 600 r3 tping 100 5 3.3.3.1 vrf v1 sou lo0 siz 600 r1 tping 100 5 3333::2 vrf v1 sou lo0 siz 600 r3 tping 100 5 3333::1 vrf v1 sou lo0 siz 600 freeRtr-24.11.16/cfg/qos-set11.tst000066400000000000000000000030611471627602100164150ustar00rootroot00000000000000description qos ingress ttl set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match ttl 100-150 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set ttl 123 seq 20 act trans set ttl 12 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match ttl 100-150 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set12.tst000066400000000000000000000030621471627602100164170ustar00rootroot00000000000000description qos egress ttl set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match ttl 100-150 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set ttl 123 seq 20 act trans set ttl 12 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match ttl 100-150 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set13.tst000066400000000000000000000030571471627602100164240ustar00rootroot00000000000000description qos ingress flow set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match flow 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set flow 123 seq 20 act trans set flow 122 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match flow 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set14.tst000066400000000000000000000030601471627602100164170ustar00rootroot00000000000000description qos egress flow set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match flow 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set flow 123 seq 20 act trans set flow 122 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match flow 123 seq 20 act trans exit int eth1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set15.tst000066400000000000000000000031161471627602100164220ustar00rootroot00000000000000description qos ingress sgt set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-in p1 exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-in p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/qos-set16.tst000066400000000000000000000031171471627602100164240ustar00rootroot00000000000000description qos egress sgt set addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act trans match length 300-500 set sgt 123 seq 20 act trans set sgt 122 exit int eth1 sgt ena vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: service-policy-out p1 exit int eth2 sgt ena vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: service-policy-out p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit policy-map p1 seq 10 act drop match sgt 123 seq 20 act trans exit int eth1 sgt ena vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: service-policy-in p1 exit ipv4 route v1 0.0.0.0 0.0.0.0 2.2.2.1 ipv6 route v1 :: :: 4321::1 ! r1 tping 100 5 2.2.2.2 vrf v1 siz 200 r3 tping 100 5 1.1.1.1 vrf v1 siz 200 r1 tping 100 5 4321::2 vrf v1 siz 200 r3 tping 100 5 1234::1 vrf v1 siz 200 r1 tping 0 5 2.2.2.2 vrf v1 siz 400 r3 tping 0 5 1.1.1.1 vrf v1 siz 400 r1 tping 0 5 4321::2 vrf v1 siz 400 r3 tping 0 5 1234::1 vrf v1 siz 400 r1 tping 100 5 2.2.2.2 vrf v1 siz 600 r3 tping 100 5 1.1.1.1 vrf v1 siz 600 r1 tping 100 5 4321::2 vrf v1 siz 600 r3 tping 100 5 1234::1 vrf v1 siz 600 freeRtr-24.11.16/cfg/rout-babel01.tst000066400000000000000000000060231471627602100170560ustar00rootroot00000000000000description babel on one subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0003 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0004 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0004 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 2.2.2.4 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 4321::4 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 2.2.2.4 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r2 tping 100 130 4321::4 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 2.2.2.4 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r3 tping 100 130 4321::4 vrf v1 r4 tping 100 130 2.2.2.1 vrf v1 r4 tping 100 130 2.2.2.2 vrf v1 r4 tping 100 130 2.2.2.3 vrf v1 r4 tping 100 130 4321::1 vrf v1 r4 tping 100 130 4321::2 vrf v1 r4 tping 100 130 4321::3 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel02.tst000066400000000000000000000071361471627602100170650ustar00rootroot00000000000000description babel in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0003 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0004 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0004 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 2.2.2.4 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 4321::4 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 2.2.2.4 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r2 tping 100 130 4321::4 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 2.2.2.4 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r3 tping 100 130 4321::4 vrf v1 r4 tping 100 130 2.2.2.1 vrf v1 r4 tping 100 130 2.2.2.2 vrf v1 r4 tping 100 130 2.2.2.3 vrf v1 r4 tping 100 130 4321::1 vrf v1 r4 tping 100 130 4321::2 vrf v1 r4 tping 100 130 4321::3 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-babel.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-babel03.tst000066400000000000000000000044101471627602100170560ustar00rootroot00000000000000description babel ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 prefix-list-in p4 router babel6 1 prefix-list-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel04.tst000066400000000000000000000044111471627602100170600ustar00rootroot00000000000000description babel egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 prefix-list-out p4 router babel6 1 prefix-list-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel05.tst000066400000000000000000000045121471627602100170630ustar00rootroot00000000000000description babel ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-in p4 router babel6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel06.tst000066400000000000000000000045131471627602100170650ustar00rootroot00000000000000description babel egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-out p4 router babel6 1 route-map-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel07.tst000066400000000000000000000043611471627602100170670ustar00rootroot00000000000000description babel ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-policy-in p4 router babel6 1 route-policy-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel08.tst000066400000000000000000000043621471627602100170710ustar00rootroot00000000000000description babel egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-policy-out p4 router babel6 1 route-policy-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel09.tst000066400000000000000000000047131471627602100170720ustar00rootroot00000000000000description babel max metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 set metric +40000 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-in rm1 router babel6 1 route-map-in rm1 router babel4 1 route-map-out rm1 router babel6 1 route-map-out rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-in rm1 router babel6 1 route-map-in rm1 router babel4 1 route-map-out rm1 router babel6 1 route-map-out rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0003 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 0 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 4321::3 vrf v1 r3 tping 0 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 0 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel10.tst000066400000000000000000000042571471627602100170650ustar00rootroot00000000000000description babel address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena router babel4 1 suppress-prefix router babel6 1 suppress-prefix exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel11.tst000066400000000000000000000040631471627602100170610ustar00rootroot00000000000000description babel default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 default-originate router babel6 1 default-originate exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel12.tst000066400000000000000000000062231471627602100170620ustar00rootroot00000000000000description babel incoming interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 metric-in 40000 router babel6 1 metric-in 40000 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 exit router babel6 1 vrf v1 router 1111-2222-3333-0003 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel13.tst000066400000000000000000000062251471627602100170650ustar00rootroot00000000000000description babel outgoing interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 exit router babel6 1 vrf v1 router 1111-2222-3333-0003 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 metric-out 40000 router babel6 1 metric-out 40000 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel14.tst000066400000000000000000000063001471627602100170600ustar00rootroot00000000000000description babel incoming metric with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 set metric +40000 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-in rm1 router babel6 1 route-map-in rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 exit router babel6 1 vrf v1 router 1111-2222-3333-0003 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel15.tst000066400000000000000000000063021471627602100170630ustar00rootroot00000000000000description babel outgoing metric with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 exit router babel6 1 vrf v1 router 1111-2222-3333-0003 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit route-map rm1 set metric +40000 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-out rm1 router babel6 1 route-map-out rm1 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel16.tst000066400000000000000000000063221471627602100170660ustar00rootroot00000000000000description babel incoming metric with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy rm1 set metric +40000 pass exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-policy-in rm1 router babel6 1 route-policy-in rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 exit router babel6 1 vrf v1 router 1111-2222-3333-0003 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel17.tst000066400000000000000000000063241471627602100170710ustar00rootroot00000000000000description babel outgoing metric with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 exit router babel6 1 vrf v1 router 1111-2222-3333-0003 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit route-policy rm1 set metric +40000 pass exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-policy-out rm1 router babel6 1 route-policy-out rm1 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel18.tst000066400000000000000000000046301471627602100170700ustar00rootroot00000000000000description babel with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router babel4 1 ena router babel4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router babel6 1 ena router babel6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router babel4 1 ena router babel4 1 bfd router babel4 1 dista 140 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router babel6 1 ena router babel6 1 bfd router babel6 1 dista 140 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router babel4 1 ena router babel4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router babel6 1 ena router babel6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router babel4 1 ena router babel4 1 bfd router babel4 1 dista 140 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router babel6 1 ena router babel6 1 bfd router babel6 1 dista 140 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel19.tst000066400000000000000000000027501471627602100170720ustar00rootroot00000000000000description babel peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: temp temp1 exit int temp1 router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel20.tst000066400000000000000000000034171471627602100170630ustar00rootroot00000000000000description babel prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 exit router babel6 1 vrf v1 router 1111-2222-3333-0002 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r1 send conf t r1 send int lo0 r1 send no router babel4 1 ena r1 send no router babel6 1 ena r1 send end r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r1 send conf t r1 send int lo0 r1 send router babel4 1 ena r1 send router babel6 1 ena r1 send end r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel21.tst000066400000000000000000000045371471627602100170700ustar00rootroot00000000000000description babel aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-in p4 router babel6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 aggregate 2.2.2.0/24 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 aggregate 4321::/32 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel22.tst000066400000000000000000000042031471627602100170570ustar00rootroot00000000000000description babel auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn automesh all exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router babel4 1 ena router babel6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn automesh all exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router babel4 1 ena router babel6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 130 9.9.9.2 vrf v1 r1 tping 100 130 9999::2 vrf v1 r2 tping 100 130 9.9.9.1 vrf v1 r2 tping 100 130 9999::1 vrf v1 r1 tping 0 130 2.2.2.2 vrf v1 r1 tping 0 130 4321::2 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel23.tst000066400000000000000000000057001471627602100170630ustar00rootroot00000000000000description babel triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 metric-in 40000 router babel6 1 metric-in 40000 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0003 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 metric-in 40000 router babel6 1 metric-in 40000 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel24.tst000066400000000000000000000051341471627602100170650ustar00rootroot00000000000000description babel autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router babel4 1 ena router babel6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute babel4 1 2.2.2.2 9.9.8.2 ipv6 autoroute babel6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router babel4 1 ena router babel6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute babel4 1 2.2.2.1 9.9.8.1 ipv6 autoroute babel6 1 4321::1 9998::1 exit ! r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r1 tping 0 130 9.9.9.2 vrf v1 r1 tping 0 130 9999::2 vrf v1 r2 tping 0 130 9.9.9.1 vrf v1 r2 tping 0 130 9999::1 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel25.tst000066400000000000000000000023101471627602100170570ustar00rootroot00000000000000description babel over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 exit router babel6 1 vrf v1 router 1111-2222-3333-0002 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-babel26.tst000066400000000000000000000067271471627602100171000ustar00rootroot00000000000000description babel ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn ecmp exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn ecmp exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0003 red conn ecmp exit router babel6 1 vrf v1 router 1111-2222-3333-0003 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel27.tst000066400000000000000000000042011471627602100170620ustar00rootroot00000000000000description babel default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 suppress exit router babel6 1 vrf v1 router 1111-2222-3333-0001 suppress exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 0 130 2.2.2.21 vrf v1 r2 tping 0 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel28.tst000066400000000000000000000042671471627602100170770ustar00rootroot00000000000000description babel address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 suppress exit router babel6 1 vrf v1 router 1111-2222-3333-0001 suppress exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena router babel4 1 unsuppress router babel6 1 unsuppress exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router babel4 1 ena router babel6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 0 130 2.2.2.21 vrf v1 r2 tping 0 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-babel29.tst000066400000000000000000000057261471627602100171010ustar00rootroot00000000000000description babel auto summarization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena router babel4 1 route-map-in p4 router babel6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 autosumm red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 autosumm red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router babel4 1 ena router babel6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 babel 1 sum r2 output show ipv6 babel 1 sum r2 output show ipv4 babel 1 dat r2 output show ipv6 babel 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-bgp001.tst000066400000000000000000000075701471627602100166510ustar00rootroot00000000000000description ebgp in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r2 output show ipv4 bgp 1 sum r2 output show ipv6 bgp 1 sum r2 output show ipv4 bgp 1 uni dat r2 output show ipv6 bgp 1 uni dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-bgp.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-bgp002.tst000066400000000000000000000070051471627602100166430ustar00rootroot00000000000000description confed bgp in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:2::2 remote-as 3 neigh 1234:2::2 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 confed neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 confed neigh 1234:3::2 remote-as 4 neigh 1234:3::2 confed red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 confed red conn exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp003.tst000066400000000000000000000061721471627602100166500ustar00rootroot00000000000000description ibgp in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.10 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:3::2 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:3::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp004.tst000066400000000000000000000064071471627602100166520ustar00rootroot00000000000000description ebgp in subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.4 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::3 remote-as 3 neigh 1234:1::4 remote-as 4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp005.tst000066400000000000000000000067711471627602100166570ustar00rootroot00000000000000description confed bgp in subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed neigh 1234:1::3 remote-as 3 neigh 1234:1::3 confed neigh 1234:1::4 remote-as 4 neigh 1234:1::4 confed red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp006.tst000066400000000000000000000061271471627602100166530ustar00rootroot00000000000000description ibgp in subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp007.tst000066400000000000000000000067101471627602100166520ustar00rootroot00000000000000description ibgp fullmesh in subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp008.tst000066400000000000000000000103561471627602100166540ustar00rootroot00000000000000description ibgp rr in subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 group r1 output show ipv6 bgp 1 group r1 output show ipv4 bgp 1 group 0 uni r1 output show ipv6 bgp 1 group 0 uni r1 output show ipv4 bgp 1 best r1 output show ipv6 bgp 1 best r1 output show ipv4 route v1 r1 output show ipv6 route v1 output ../binTmp/rout-bgp-grp.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 group:
show:2
here is the ipv6 group:
show:3
here is the ipv4 database:
show:4
here is the ipv6 database:
show:5
here are the ipv4 statistics:
show:6
here are the ipv6 statistics:
show:7
here are the ipv4 routes:
show:8
here are the ipv6 routes:
show:9
! freeRtr-24.11.16/cfg/rout-bgp009.tst000066400000000000000000000074571471627602100166650ustar00rootroot00000000000000description ebgp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.3 remote-as 3 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::3 remote-as 3 neigh 4321::3 update lo0 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::13 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::13 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::12 vrf v1 freeRtr-24.11.16/cfg/rout-bgp010.tst000066400000000000000000000075201471627602100166440ustar00rootroot00000000000000description ibgp over loopback addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 route-reflect red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::13 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::13 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::12 vrf v1 freeRtr-24.11.16/cfg/rout-bgp011.tst000066400000000000000000000064571471627602100166550ustar00rootroot00000000000000description ibgp with mpls addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 4321::13 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 2.2.2.13 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 0 60 4321::13 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 4321::11 vrf v1 freeRtr-24.11.16/cfg/rout-bgp012.tst000066400000000000000000000024431471627602100166450ustar00rootroot00000000000000description ebgp with long as number addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 123456789 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 987654321 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 123456789 router-id 6.6.6.1 neigh 1234:1::2 remote-as 987654321 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 987654321 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 123456789 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 987654321 router-id 6.6.6.2 neigh 1234:1::1 remote-as 123456789 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp013.tst000066400000000000000000000023531471627602100166460ustar00rootroot00000000000000description ibgp with long as number addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 123456789 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 123456789 red conn exit router bgp6 1 vrf v1 address uni local-as 123456789 router-id 6.6.6.1 neigh 1234:1::2 remote-as 123456789 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 123456789 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 123456789 red conn exit router bgp6 1 vrf v1 address uni local-as 123456789 router-id 6.6.6.2 neigh 1234:1::1 remote-as 123456789 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp014.tst000066400000000000000000000023701471627602100166460ustar00rootroot00000000000000description bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 default exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp015.tst000066400000000000000000000043121471627602100166450ustar00rootroot00000000000000description bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp016.tst000066400000000000000000000043131471627602100166470ustar00rootroot00000000000000description bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp017.tst000066400000000000000000000044141471627602100166520ustar00rootroot00000000000000description bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp018.tst000066400000000000000000000044151471627602100166540ustar00rootroot00000000000000description bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp019.tst000066400000000000000000000046551471627602100166630ustar00rootroot00000000000000description bgp routemap filtering with locpref addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp020.tst000066400000000000000000000046441471627602100166510ustar00rootroot00000000000000description bgp routemap filtering with origin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set origin 1 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match origin 1 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp021.tst000066400000000000000000000046521471627602100166510ustar00rootroot00000000000000description bgp routemap filtering with metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match metric 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp022.tst000066400000000000000000000052721471627602100166510ustar00rootroot00000000000000description bgp routemap filtering with standard community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set stdcomm 1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp023.tst000066400000000000000000000046521471627602100166530ustar00rootroot00000000000000description bgp routemap filtering with aspath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp024.tst000066400000000000000000000064531471627602100166550ustar00rootroot00000000000000description bgp locpref addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set locpref 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp025.tst000066400000000000000000000064621471627602100166560ustar00rootroot00000000000000description bgp aspath addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set aspath 1234 1234 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp026.tst000066400000000000000000000064421471627602100166550ustar00rootroot00000000000000description bgp origin addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set origin 1 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set origin 2 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp027.tst000066400000000000000000000064501471627602100166550ustar00rootroot00000000000000description bgp metric addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set metric 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp028.tst000066400000000000000000000065411471627602100166570ustar00rootroot00000000000000description bgp locpref vs aspath addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set locpref 4321 set aspath 1234 1234 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set locpref 1234 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp029.tst000066400000000000000000000065301471627602100166560ustar00rootroot00000000000000description bgp aspath vs origin addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aspath 1234 set origin 1 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set aspath 1234 1234 1234 set origin 2 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp030.tst000066400000000000000000000065161471627602100166520ustar00rootroot00000000000000description bgp origin vs metric addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set origin 1 set metric 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set origin 2 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp031.tst000066400000000000000000000052761471627602100166550ustar00rootroot00000000000000description bgp routemap filtering with extended community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set extcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match extcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp032.tst000066400000000000000000000062641471627602100166540ustar00rootroot00000000000000description ebgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp033.tst000066400000000000000000000077361471627602100166620ustar00rootroot00000000000000description ibgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.11 vrf v1 sou lo0 r2 tping 0 60 2.2.2.13 vrf v1 sou lo0 r2 tping 0 60 4321::11 vrf v1 sou lo0 r2 tping 0 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp034.tst000066400000000000000000000047661471627602100166630ustar00rootroot00000000000000description ebgp with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit route-map rm1 set aspath 3 3 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 bfd-trigger neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.6 remote-as 2 neigh 1.1.1.6 bfd-trigger red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 bfd-trigger neigh 1234:1::2 route-map-in rm1 neigh 1234:1::2 route-map-out rm1 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 bfd-trigger red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 bfd-trigger neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 bfd-trigger red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 bfd-trigger neigh 1234:2::1 remote-as 1 neigh 1234:2::1 bfd-trigger red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp035.tst000066400000000000000000000111621471627602100166500ustar00rootroot00000000000000description vpns over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 vpnuni dat r1 output show ipv6 bgp 1 vpnuni dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show ipv4 route v2 r1 output show ipv6 route v2 r1 output show ipv4 route v3 r1 output show ipv6 route v3 r1 output show ipv4 route v4 r1 output show ipv6 route v4 output ../binTmp/rout-bgp-vpn.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here are the ipv4 vpn routes:
show:6
here are the ipv6 vpn routes:
show:7
here are the ipv4 vpn routes:
show:8
here are the ipv6 vpn routes:
show:9
here are the ipv4 vpn routes:
show:10
here are the ipv6 vpn routes:
show:11
! freeRtr-24.11.16/cfg/rout-bgp036.tst000066400000000000000000000113461471627602100166550ustar00rootroot00000000000000description vpns over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp037.tst000066400000000000000000000044031471627602100166520ustar00rootroot00000000000000description bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp038.tst000066400000000000000000000045631471627602100166620ustar00rootroot00000000000000description bgp enforce first as addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 enforce-first red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 enforce-first red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 enforce-first red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 enforce-first red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp039.tst000066400000000000000000000044211471627602100166540ustar00rootroot00000000000000description bgp aspath check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65535 neigh 1.1.1.6 remote-as 65535 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65535 neigh 1234:2::2 remote-as 65535 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp040.tst000066400000000000000000000046101471627602100166440ustar00rootroot00000000000000description bgp allow as in addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 allow-as-in red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 allow-as-in red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65535 neigh 1.1.1.6 remote-as 65535 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65535 neigh 1234:2::2 remote-as 65535 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 allow-as-in red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 allow-as-in red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp041.tst000066400000000000000000000046721471627602100166550ustar00rootroot00000000000000description bgp remove private as out addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65534 neigh 1.1.1.1 remove-private-as-out neigh 1.1.1.6 remote-as 65534 neigh 1.1.1.6 remove-private-as-out red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65534 neigh 1234:1::1 remove-private-as-out neigh 1234:2::2 remote-as 65534 neigh 1234:2::2 remove-private-as-out red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp042.tst000066400000000000000000000046601471627602100166530ustar00rootroot00000000000000description bgp override as out addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65535 neigh 1.1.1.1 override-peer-as-out neigh 1.1.1.6 remote-as 65535 neigh 1.1.1.6 override-peer-as-out red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65535 neigh 1234:1::1 override-peer-as-out neigh 1234:2::2 remote-as 65535 neigh 1234:2::2 override-peer-as-out red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp043.tst000066400000000000000000000045701471627602100166540ustar00rootroot00000000000000description bgp nexthop self addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflector-client neigh 1.1.1.1 next-hop-self neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 route-reflector-client neigh 1.1.1.6 next-hop-self red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflector-client neigh 1234:1::1 next-hop-self neigh 1234:2::2 remote-as 1 neigh 1234:2::2 route-reflector-client neigh 1234:2::2 next-hop-self red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp044.tst000066400000000000000000000045701471627602100166550ustar00rootroot00000000000000description bgp nexthop peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 next-hop-peer red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 next-hop-peer red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflector-client neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 route-reflector-client red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflector-client neigh 1234:2::2 remote-as 1 neigh 1234:2::2 route-reflector-client red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 next-hop-peer red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 next-hop-peer red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp045.tst000066400000000000000000000102511471627602100166470ustar00rootroot00000000000000description vpls/ldp over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 vpls dat r1 output show ipv6 bgp 1 vpls dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show bridge 1 r1 output show bridge 2 r1 output show bridge 3 r1 output show bridge 4 output ../binTmp/rout-bgp-vpls1.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here is the bridge:
show:6
here is the bridge:
show:7
here is the bridge:
show:8
here is the bridge:
show:9
! freeRtr-24.11.16/cfg/rout-bgp046.tst000066400000000000000000000053331471627602100166550ustar00rootroot00000000000000description vpls/ldp over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp047.tst000066400000000000000000000024301471627602100166510ustar00rootroot00000000000000description bgp peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 temp p remote-as 2 neigh 1.1.1.2 temp p red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 temp p remote-as 2 neigh 1234:1::2 temp p red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 temp p remote-as 1 neigh 1.1.1.1 temp p red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 temp p remote-as 1 neigh 1234:1::1 temp p red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp048.tst000066400000000000000000000065141471627602100166610ustar00rootroot00000000000000description bgp listen addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit access-list a1 deny all any all any all exit access-list a2 permit all any all any all exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 temp p remote-as 2 temp p override-peer-as-out listen a1 p listen a2 p red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 temp p remote-as 2 temp p override-peer-as-out listen a1 p listen a2 p red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.4 neigh 1234:3::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp049.tst000066400000000000000000000025211471627602100166540ustar00rootroot00000000000000description ebgp password addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 password test red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 password test red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 password test red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 password test red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp050.tst000066400000000000000000000051141471627602100166450ustar00rootroot00000000000000description bgp routemap filtering with aigp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 aigp neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 aigp neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 aigp red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aigp 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aigp red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aigp red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aigp 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 aigp red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp051.tst000066400000000000000000000051731471627602100166530ustar00rootroot00000000000000description bgp routemap filtering with bandwidth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 traffeng neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 traffeng neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 traffeng red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set bandwidth 8888 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 traffeng red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 traffeng red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match bandwidth 8888 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 traffeng red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp052.tst000066400000000000000000000101451471627602100166470ustar00rootroot00000000000000description bgp rpki addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router rpki4 1 vrf v1 exit router rpki6 1 vrf v1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.1 rpki rpki4 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 rpki-in acc red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 rpki rpki6 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 rpki-in acc red conn exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit route-map rm1 set locpref 1234 exit server rpki r vrf v1 prefix 2.2.2.111/24 32 3 prefix 4321::111/56 128 3 exit router rpki4 1 vrf v1 neigh 2.2.2.2 port 323 wakeup bgp4 1 exit router rpki6 1 vrf v1 neigh 4321::2 port 323 wakeup bgp6 1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.2 rpki rpki4 1 neigh 1.1.1.1 remote-as 3 neigh 1.1.1.1 rpki-in rew neigh 1.1.1.1 send-comm both neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 2 neigh 1.1.1.6 rpki-in rew neigh 1.1.1.6 send-comm both neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.2 rpki rpki6 1 neigh 1234:1::1 remote-as 3 neigh 1234:1::1 rpki-in rew neigh 1234:1::1 send-comm both neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 rpki-in rew neigh 1234:2::2 send-comm both neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router rpki4 1 vrf v1 exit router rpki6 1 vrf v1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.3 rpki rpki4 1 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 rpki-in acc red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.3 rpki rpki6 1 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 rpki-in acc red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp053.tst000066400000000000000000000077101471627602100166540ustar00rootroot00000000000000description bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-tx uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-tx uni red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx uni neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 additional-path-rx uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx uni neigh 1234:2::2 remote-as 3 neigh 1234:2::2 additional-path-rx uni red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 additional-path-rx uni neigh 1.1.1.5 additional-path-tx uni neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 additional-path-rx uni neigh 1.1.1.10 additional-path-tx uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 additional-path-rx uni neigh 1234:2::1 additional-path-tx uni neigh 1234:3::2 remote-as 4 neigh 1234:3::2 additional-path-rx uni neigh 1234:3::2 additional-path-tx uni red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 additional-path-rx uni neigh 1.1.1.9 additional-path-tx uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 additional-path-rx uni neigh 1234:3::1 additional-path-tx uni red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp054.tst000066400000000000000000000071111471627602100166500ustar00rootroot00000000000000description bgp additional path with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx lab neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 additional-path-rx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx lab neigh 1234:2::2 remote-as 3 neigh 1234:2::2 additional-path-rx lab red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 additional-path-rx lab neigh 1.1.1.5 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 additional-path-tx lab neigh 1234:2::1 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp055.tst000066400000000000000000000075331471627602100166610ustar00rootroot00000000000000description vpns over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpnuni neigh 2.2.2.2 additional-path-tx vpnuni afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpnuni neigh 4321::2 additional-path-tx vpnuni afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpnuni neigh 2.2.2.1 additional-path-tx vpnuni afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpnuni neigh 4321::1 additional-path-tx vpnuni afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp056.tst000066400000000000000000000071461471627602100166620ustar00rootroot00000000000000description vpls/ldp over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpls neigh 2.2.2.2 additional-path-tx vpls afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpls neigh 4321::2 additional-path-tx vpls afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpls neigh 2.2.2.1 additional-path-tx vpls afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpls neigh 4321::1 additional-path-tx vpls afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp057.tst000066400000000000000000000043561471627602100166630ustar00rootroot00000000000000description bgp nexthop unchanged addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.1 remote-as 2 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 next-hop-unch red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::1 remote-as 2 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 next-hop-unch red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp058.tst000066400000000000000000000046651471627602100166670ustar00rootroot00000000000000description bgp remove private as in addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65534 neigh 1.1.1.1 remove-private-as-in neigh 1.1.1.6 remote-as 65534 neigh 1.1.1.6 remove-private-as-in red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65534 neigh 1234:1::1 remove-private-as-in neigh 1234:2::2 remote-as 65534 neigh 1234:2::2 remove-private-as-in red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp059.tst000066400000000000000000000046531471627602100166650ustar00rootroot00000000000000description bgp override as in addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65535 neigh 1.1.1.1 override-peer-as-in neigh 1.1.1.6 remote-as 65535 neigh 1.1.1.6 override-peer-as-in red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65535 neigh 1234:1::1 override-peer-as-in neigh 1234:2::2 remote-as 65535 neigh 1234:2::2 override-peer-as-in red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65535 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp060.tst000066400000000000000000000057451471627602100166600ustar00rootroot00000000000000description ebgp with nexthop tracking routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-map rm1 match distance 0 exit route-map rm2 set aspath 3 3 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 nexthop route-map rm1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm2 neigh 1.1.1.2 route-map-out rm2 neigh 1.1.1.6 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 nexthop route-map rm1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in rm2 neigh 1234:1::2 route-map-out rm2 neigh 1234:2::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 match distance 0 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 nexthop route-map rm1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 nexthop route-map rm1 neigh 1234:1::1 remote-as 1 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 sleep 3000 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 next r1 output show ipv6 bgp 1 next r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 output ../binTmp/rout-bgp-nxt.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here are the ipv4 nexthops:
show:2
here are the ipv6 nexthops:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-bgp061.tst000066400000000000000000000044661471627602100166600ustar00rootroot00000000000000description ibgp with nexthop tracking routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-map rm1 match distance 0 exit route-map rm2 set aspath 3 3 3 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 nexthop route-map rm1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-map-in rm2 neigh 1.1.1.2 route-map-out rm2 neigh 1.1.1.6 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 nexthop route-map rm1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-map-in rm2 neigh 1234:1::2 route-map-out rm2 neigh 1234:2::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 match distance 0 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 nexthop route-map rm1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 nexthop route-map rm1 neigh 1234:1::1 remote-as 1 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp062.tst000066400000000000000000000110461471627602100166510ustar00rootroot00000000000000description vpns over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp063.tst000066400000000000000000000104751471627602100166570ustar00rootroot00000000000000description vpls/ldp over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp064.tst000066400000000000000000000065451471627602100166630ustar00rootroot00000000000000description bgp clustlist addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 next-hop-self neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 route-reflect neigh 1.1.1.6 next-hop-self red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 next-hop-self neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 route-reflect neigh 1234:2::2 next-hop-self red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp065.tst000066400000000000000000000067611471627602100166640ustar00rootroot00000000000000description bgp metric vs clustlist addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set metric 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 next-hop-self neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 route-reflect neigh 1.1.1.6 next-hop-self red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 next-hop-self neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 route-reflect neigh 1234:2::2 next-hop-self red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp066.tst000066400000000000000000000064341471627602100166620ustar00rootroot00000000000000description bgp distance addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 distance 123 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 distance 234 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 distance 123 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 distance 234 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp067.tst000066400000000000000000000066531471627602100166660ustar00rootroot00000000000000description bgp distance vs locpref addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 distance 123 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 distance 234 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 distance 123 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 distance 234 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set locpref 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp068.tst000066400000000000000000000107661471627602100166670ustar00rootroot00000000000000description ebgp in chain with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 4 neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r2 output show ipv4 bgp 1 sum r2 output show ipv6 bgp 1 sum r2 output show ipv4 bgp 1 nei 1.1.1.1 uni learn r2 output show ipv6 bgp 1 nei 1234:1::1 uni learn r2 output show ipv4 bgp 1 nei 1.1.1.1 uni accept r2 output show ipv6 bgp 1 nei 1234:1::1 uni accept r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-bgp-sft.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 stored database:
show:2
here is the ipv6 stored database:
show:3
here is the ipv4 used database:
show:4
here is the ipv6 used database:
show:5
here are the ipv4 routes:
show:6
here are the ipv6 routes:
show:7
! freeRtr-24.11.16/cfg/rout-bgp069.tst000066400000000000000000000076011471627602100166620ustar00rootroot00000000000000description confed bgp in chain with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 confed red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 confed neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 confed neigh 1234:2::2 remote-as 3 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 soft-reconfig neigh 1.1.1.5 confed neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 soft-reconfig neigh 1.1.1.10 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 soft-reconfig neigh 1234:2::1 confed neigh 1234:3::2 remote-as 4 neigh 1234:3::2 soft-reconfig neigh 1234:3::2 confed red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 soft-reconfig neigh 1.1.1.9 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 soft-reconfig neigh 1234:3::1 confed red conn exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp070.tst000066400000000000000000000067661471627602100166650ustar00rootroot00000000000000description ibgp in chain with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 1 neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 1 neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:3::1 remote-as 1 neigh 1234:3::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp071.tst000066400000000000000000000072411471627602100166530ustar00rootroot00000000000000description ibgp rr in subnet with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp072.tst000066400000000000000000000045251471627602100166560ustar00rootroot00000000000000description bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp073.tst000066400000000000000000000045261471627602100166600ustar00rootroot00000000000000description bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp074.tst000066400000000000000000000046271471627602100166630ustar00rootroot00000000000000description bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp075.tst000066400000000000000000000046301471627602100166560ustar00rootroot00000000000000description bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp076.tst000066400000000000000000000052601471627602100166570ustar00rootroot00000000000000description bgp routemap filtering with locpref with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp077.tst000066400000000000000000000052471471627602100166650ustar00rootroot00000000000000description bgp routemap filtering with origin with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set origin 1 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match origin 1 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp078.tst000066400000000000000000000052551471627602100166650ustar00rootroot00000000000000description bgp routemap filtering with metric with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match metric 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp079.tst000066400000000000000000000056751471627602100166740ustar00rootroot00000000000000description bgp routemap filtering with standard community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set stdcomm 1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp080.tst000066400000000000000000000052551471627602100166560ustar00rootroot00000000000000description bgp routemap filtering with aspath with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp081.tst000066400000000000000000000070561471627602100166600ustar00rootroot00000000000000description bgp locpref with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set locpref 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp082.tst000066400000000000000000000070651471627602100166610ustar00rootroot00000000000000description bgp aspath with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set aspath 1234 1234 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp083.tst000066400000000000000000000070451471627602100166600ustar00rootroot00000000000000description bgp origin with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set origin 1 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set origin 2 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp084.tst000066400000000000000000000070531471627602100166600ustar00rootroot00000000000000description bgp metric with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set metric 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp085.tst000066400000000000000000000071441471627602100166620ustar00rootroot00000000000000description bgp locpref vs aspath with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set locpref 4321 set aspath 1234 1234 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set locpref 1234 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp086.tst000066400000000000000000000071331471627602100166610ustar00rootroot00000000000000description bgp aspath vs origin with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aspath 1234 set origin 1 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set aspath 1234 1234 1234 set origin 2 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp087.tst000066400000000000000000000071211471627602100166570ustar00rootroot00000000000000description bgp origin vs metric with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set origin 1 set metric 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set origin 2 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp088.tst000066400000000000000000000057011471627602100166620ustar00rootroot00000000000000description bgp routemap filtering with extended community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set extcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match extcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp089.tst000066400000000000000000000071501471627602100166630ustar00rootroot00000000000000description bgp clustlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 next-hop-self neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 route-reflect neigh 1.1.1.6 next-hop-self red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 next-hop-self neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 route-reflect neigh 1234:2::2 next-hop-self red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp090.tst000066400000000000000000000073641471627602100166620ustar00rootroot00000000000000description bgp metric vs clustlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set metric 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 next-hop-self neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 route-reflect neigh 1.1.1.6 next-hop-self red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 next-hop-self neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 route-reflect neigh 1234:2::2 next-hop-self red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set metric 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp091.tst000066400000000000000000000070371471627602100166600ustar00rootroot00000000000000description bgp distance with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 distance 123 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 distance 234 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 distance 123 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 distance 234 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp092.tst000066400000000000000000000072561471627602100166640ustar00rootroot00000000000000description bgp distance vs locpref with soft-reconfig addrouter r1 int eth1 eth 0000.0000.2222 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.1111 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 prefix-list-in p4 neigh 1.1.1.1 distance 123 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 soft-reconfig neigh 1.1.1.6 prefix-list-in p4 neigh 1.1.1.6 distance 234 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 prefix-list-in p6 neigh 1234:1::1 distance 123 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 soft-reconfig neigh 1234:2::2 prefix-list-in p6 neigh 1234:2::2 distance 234 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-map rm1 set locpref 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 soft-reconfig red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.111 vrf v1 r2 tping 100 60 4321::111 vrf v1 r2 tping 0 60 2.2.2.222 vrf v1 r2 tping 0 60 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 60 2.2.2.222 vrf v1 freeRtr-24.11.16/cfg/rout-bgp093.tst000066400000000000000000000055171471627602100166630ustar00rootroot00000000000000description bgp routemap filtering with aigp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 aigp neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 aigp neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 aigp red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aigp 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 aigp red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 aigp red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aigp 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 aigp red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp094.tst000066400000000000000000000055761471627602100166710ustar00rootroot00000000000000description bgp routemap filtering with bandwidth with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 traffeng neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 traffeng neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 traffeng red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set bandwidth 8888 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 traffeng red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 traffeng red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match bandwidth 8888 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 traffeng red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp095.tst000066400000000000000000000204261471627602100166610ustar00rootroot00000000000000description bgp with a lot prefix addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ int eth5 eth 0000.0000.1111 $5a$ $5b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int eth5 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::6 remote-as 1 neigh 1234:1::6 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.255 ipv6 addr 4444::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit route-map all action permit exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234:1::5 ffff:ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit route-map all action permit exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.0 ipv6 addr 1234:1::6 ffff:ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2222::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2222::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2222::4 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2222::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2222::4 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2222::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 r5 tping 100 60 1.1.1.1 vrf v1 r5 send pack bgpgen v1 eth1 1.1.1.1 1 3.0.0.0/8 all 10000 r5 read sent r6 tping 100 60 1234:1::1 vrf v1 r6 send pack bgpgen v1 eth1 1234:1::1 1 3333::/16 all 10000 r6 read sent r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2222::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2222::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2222::4 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2222::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2222::4 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2222::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 r5 send end r5 read finish r6 send end r6 read finish r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2222::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2222::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2222::4 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2222::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2222::4 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2222::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp096.tst000066400000000000000000000117151471627602100166630ustar00rootroot00000000000000description ebgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.4 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::3 remote-as 3 neigh 1234:1::4 remote-as 4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp097.tst000066400000000000000000000123471471627602100166660ustar00rootroot00000000000000description confed bgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed neigh 1234:1::3 remote-as 3 neigh 1234:1::3 confed neigh 1234:1::4 remote-as 4 neigh 1234:1::4 confed red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp098.tst000066400000000000000000000113651471627602100166660ustar00rootroot00000000000000description ibgp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send no red conn r2 send exit r2 send router bgp6 1 r2 send no red conn r2 send end r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send red conn r2 send exit r2 send router bgp6 1 r2 send red conn r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp099.tst000066400000000000000000000122161471627602100166630ustar00rootroot00000000000000description ibgp fullmesh prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send no red conn r2 send exit r2 send router bgp6 1 r2 send no red conn r2 send end r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send red conn r2 send exit r2 send router bgp6 1 r2 send red conn r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp100.tst000066400000000000000000000117541471627602100166500ustar00rootroot00000000000000description ibgp rr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp101.tst000066400000000000000000000125101471627602100166400ustar00rootroot00000000000000description ebgp prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 4 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp102.tst000066400000000000000000000131421471627602100166430ustar00rootroot00000000000000description confed bgp prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 confed neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 3 neigh 1234:1::3 confed neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 4 neigh 1234:1::4 confed neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp103.tst000066400000000000000000000121601471627602100166430ustar00rootroot00000000000000description ibgp prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send no red conn r2 send exit r2 send router bgp6 1 r2 send no red conn r2 send end r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send red conn r2 send exit r2 send router bgp6 1 r2 send red conn r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp104.tst000066400000000000000000000135611471627602100166520ustar00rootroot00000000000000description ibgp fullmesh prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send no red conn r2 send exit r2 send router bgp6 1 r2 send no red conn r2 send end r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send red conn r2 send exit r2 send router bgp6 1 r2 send red conn r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp105.tst000066400000000000000000000125471471627602100166560ustar00rootroot00000000000000description ibgp rr prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp106.tst000066400000000000000000000071421471627602100166520ustar00rootroot00000000000000description vpns over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp107.tst000066400000000000000000000065751471627602100166640ustar00rootroot00000000000000description vpls/ldp over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp108.tst000066400000000000000000000113131471627602100166470ustar00rootroot00000000000000description vpns over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp109.tst000066400000000000000000000107431471627602100166560ustar00rootroot00000000000000description vpls/ldp over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp110.tst000066400000000000000000000047761471627602100166570ustar00rootroot00000000000000description bgp route server with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 soft-reconfig neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 soft-reconfig neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 neigh 1234::2 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp111.tst000066400000000000000000000063551471627602100166530ustar00rootroot00000000000000description bgp route server prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp112.tst000066400000000000000000000067501471627602100166530ustar00rootroot00000000000000description bgp route server prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 soft-reconfig neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 soft-reconfig neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 neigh 1234::2 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp113.tst000066400000000000000000000176061471627602100166560ustar00rootroot00000000000000description multisite vpns over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r2 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r2 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r2 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9993::2 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r2 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9994::2 vrf v4 freeRtr-24.11.16/cfg/rout-bgp114.tst000066400000000000000000000165471471627602100166620ustar00rootroot00000000000000description multisite vpls/ldp over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::3 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::3 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp115.tst000066400000000000000000000143771471627602100166620ustar00rootroot00000000000000description bgp change in locpref addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match locpref 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set locpref 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match locpref 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set locpref 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set locpref 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set locpref 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp116.tst000066400000000000000000000144041471627602100166520ustar00rootroot00000000000000description bgp change in aspath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aspath .*5000.* sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath .*1000.* exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aspath .*3000.* sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aspath 3000 4321 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aspath 1234 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aspath 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp117.tst000066400000000000000000000143351471627602100166560ustar00rootroot00000000000000description bgp change in origin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match origin 1 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set origin 0 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match origin 2 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set origin 2 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set origin 1 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set origin 0 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp118.tst000066400000000000000000000143701471627602100166560ustar00rootroot00000000000000description bgp change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp119.tst000066400000000000000000000147461471627602100166660ustar00rootroot00000000000000description bgp change in aigp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 aigp neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 aigp neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 aigp neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 aigp neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 aigp neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 aigp neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aigp 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aigp neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aigp neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aigp 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aigp red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aigp red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aigp 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aigp neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aigp neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aigp 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aigp 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aigp 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp120.tst000066400000000000000000000150711471627602100166460ustar00rootroot00000000000000description bgp change in bandwidth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 traffeng neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 traffeng neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 traffeng neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 traffeng neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 traffeng neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 traffeng neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match bandwidth 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 traffeng neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 traffeng neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set bandwidth 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 traffeng red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 traffeng red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match bandwidth 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 traffeng neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 traffeng neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set bandwidth 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set bandwidth 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set bandwidth 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp121.tst000066400000000000000000000152221471627602100166450ustar00rootroot00000000000000description bgp change in standard community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 send-comm both neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 send-comm both neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match stdcomm 1234:5000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set stdcomm 1234:1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match stdcomm 1234:3000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set stdcomm 1234:3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set stdcomm 1234:5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set stdcomm 1234:1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp122.tst000066400000000000000000000152361471627602100166530ustar00rootroot00000000000000description bgp change in extended community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 send-comm both neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 send-comm both neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match extcomm 1:1234:5000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set extcomm 1:1234:1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match extcomm 1:1234:3000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set extcomm 1:1234:3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set extcomm 1:1234:5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set extcomm 1:1234:1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp123.tst000066400000000000000000000151721471627602100166530ustar00rootroot00000000000000description bgp change in locpref with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match locpref 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set locpref 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match locpref 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set locpref 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set locpref 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set locpref 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp124.tst000066400000000000000000000151771471627602100166610ustar00rootroot00000000000000description bgp change in aspath with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aspath .*5000.* sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath .*1000.* exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aspath .*3000.* sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aspath 3000 4321 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aspath 1234 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aspath 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp125.tst000066400000000000000000000151301471627602100166470ustar00rootroot00000000000000description bgp change in origin with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match origin 1 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set origin 0 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match origin 2 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set origin 2 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set origin 1 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set origin 0 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp126.tst000066400000000000000000000151631471627602100166560ustar00rootroot00000000000000description bgp change in metric with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp127.tst000066400000000000000000000155411471627602100166570ustar00rootroot00000000000000description bgp change in aigp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 aigp neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 aigp neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 aigp neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 aigp neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 aigp neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 aigp neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aigp 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 aigp neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 aigp neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aigp 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 aigp red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 aigp red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aigp 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 aigp neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 aigp neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aigp 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aigp 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aigp 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp128.tst000066400000000000000000000156641471627602100166660ustar00rootroot00000000000000description bgp change in bandwidth with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 traffeng neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 traffeng neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 traffeng neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 traffeng neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 traffeng neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 traffeng neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match bandwidth 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 traffeng neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 traffeng neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set bandwidth 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 traffeng red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 traffeng red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match bandwidth 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 traffeng neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 traffeng neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set bandwidth 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set bandwidth 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set bandwidth 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp129.tst000066400000000000000000000160151471627602100166560ustar00rootroot00000000000000description bgp change in standard community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 send-comm both neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 send-comm both neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 send-comm both neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match stdcomm 1234:5000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set stdcomm 1234:1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match stdcomm 1234:3000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set stdcomm 1234:3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set stdcomm 1234:5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set stdcomm 1234:1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp130.tst000066400000000000000000000160311471627602100166440ustar00rootroot00000000000000description bgp change in extended community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 send-comm both neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 send-comm both neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 send-comm both neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match extcomm 1:1234:5000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set extcomm 1:1234:1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match extcomm 1:1234:3000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set extcomm 1:1234:3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set extcomm 1:1234:5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set extcomm 1:1234:1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp131.tst000066400000000000000000000044411471627602100166470ustar00rootroot00000000000000description bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp132.tst000066400000000000000000000111241471627602100166440ustar00rootroot00000000000000description bgp maximum prefix in addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 maximum-prefix-in 3 50 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 maximum-prefix-in 3 50 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.32 255.255.255.255 ipv6 addr 4321::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v1 ipv4 addr 2.2.2.42 255.255.255.255 ipv6 addr 4321::42 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v1 ipv4 addr 2.2.2.52 255.255.255.255 ipv6 addr 4321::52 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo6 vrf for v1 ipv4 addr 2.2.2.62 255.255.255.255 ipv6 addr 4321::62 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo7 vrf for v1 ipv4 addr 2.2.2.72 255.255.255.255 ipv6 addr 4321::72 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo8 vrf for v1 ipv4 addr 2.2.2.82 255.255.255.255 ipv6 addr 4321::82 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 summary red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 summary red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send no aggregate 2.2.2.0/24 summary r2 send exit r2 send router bgp6 1 r2 send no aggregate 4321::/32 summary r2 send end r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 0 60 2.2.2.22 vrf v1 r1 tping 0 60 4321::22 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 0 60 2.2.2.21 vrf v1 r2 tping 0 60 4321::21 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send aggregate 2.2.2.0/24 summary r2 send exit r2 send router bgp6 1 r2 send aggregate 4321::/32 summary r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp133.tst000066400000000000000000000103711471627602100166500ustar00rootroot00000000000000description evpn/pbb over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 evpn dat r1 output show ipv6 bgp 1 evpn dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show bridge 1 r1 output show bridge 2 r1 output show bridge 3 r1 output show bridge 4 output ../binTmp/rout-bgp-evpn1.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here is the bridge:
show:6
here is the bridge:
show:7
here is the bridge:
show:8
here is the bridge:
show:9
! freeRtr-24.11.16/cfg/rout-bgp134.tst000066400000000000000000000054531471627602100166560ustar00rootroot00000000000000description evpn/pbb over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp135.tst000066400000000000000000000072661471627602100166630ustar00rootroot00000000000000description evpn/pbb over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn neigh 2.2.2.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn neigh 4321::2 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn neigh 2.2.2.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn neigh 4321::1 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp136.tst000066400000000000000000000107411471627602100166540ustar00rootroot00000000000000description evpn/pbb over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp137.tst000066400000000000000000000067151471627602100166630ustar00rootroot00000000000000description evpn/pbb over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp138.tst000066400000000000000000000112071471627602100166540ustar00rootroot00000000000000description evpn/pbb over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp139.tst000066400000000000000000000171351471627602100166630ustar00rootroot00000000000000description multisite evpn/pbb over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::3 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::3 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 pmsi neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 pmsi neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp140.tst000066400000000000000000000111471471627602100166500ustar00rootroot00000000000000description ethersite vpls/ldp over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:1 rt-both 1:1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv6 addr 3333::4 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.0 ipv6 addr 4444::4 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.4 vrf v1 r2 tping 100 60 3333::4 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.4 vrf v1 r3 tping 100 60 3333::4 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 3333::1 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 3.3.3.2 vrf v1 r4 tping 100 60 3333::2 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 3.3.3.3 vrf v1 r4 tping 100 60 3333::3 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp141.tst000066400000000000000000000112671471627602100166540ustar00rootroot00000000000000description ethersite evpn/pbb over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:2 rt-both 1:2 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:2 rt-both 1:2 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv6 addr 3333::4 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.0 ipv6 addr 4444::4 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.4 vrf v1 r2 tping 100 60 3333::4 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.4 vrf v1 r3 tping 100 60 3333::4 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 3333::1 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 3.3.3.2 vrf v1 r4 tping 100 60 3333::2 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 3.3.3.3 vrf v1 r4 tping 100 60 3333::3 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp142.tst000066400000000000000000000216741471627602100166600ustar00rootroot00000000000000description ethersite vpns over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth2.12 vrf for v2 ipv4 addr 9.8.2.1 255.255.255.0 ipv6 addr 9982::1 ffff:ffff:ffff:ffff:: exit int eth2.13 vrf for v3 ipv4 addr 9.8.3.1 255.255.255.0 ipv6 addr 9983::1 ffff:ffff:ffff:ffff:: exit int eth2.14 vrf for v4 ipv4 addr 9.8.4.1 255.255.255.0 ipv6 addr 9984::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth2.12 vrf for v2 ipv4 addr 9.7.2.1 255.255.255.0 ipv6 addr 9972::1 ffff:ffff:ffff:ffff:: exit int eth2.13 vrf for v3 ipv4 addr 9.7.3.1 255.255.255.0 ipv6 addr 9973::1 ffff:ffff:ffff:ffff:: exit int eth2.14 vrf for v4 ipv4 addr 9.7.4.1 255.255.255.0 ipv6 addr 9974::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int eth1.12 vrf for v2 ipv4 addr 9.8.2.2 255.255.255.0 ipv6 addr 9982::2 ffff:ffff:ffff:ffff:: exit int eth1.13 vrf for v3 ipv4 addr 9.8.3.2 255.255.255.0 ipv6 addr 9983::2 ffff:ffff:ffff:ffff:: exit int eth1.14 vrf for v4 ipv4 addr 9.8.4.2 255.255.255.0 ipv6 addr 9984::2 ffff:ffff:ffff:ffff:: exit ipv4 route v2 0.0.0.0 0.0.0.0 9.8.2.1 ipv4 route v3 0.0.0.0 0.0.0.0 9.8.3.1 ipv4 route v4 0.0.0.0 0.0.0.0 9.8.4.1 ipv6 route v2 :: :: 9982::1 ipv6 route v3 :: :: 9983::1 ipv6 route v4 :: :: 9984::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int eth1.12 vrf for v2 ipv4 addr 9.7.2.2 255.255.255.0 ipv6 addr 9972::2 ffff:ffff:ffff:ffff:: exit int eth1.13 vrf for v3 ipv4 addr 9.7.3.2 255.255.255.0 ipv6 addr 9973::2 ffff:ffff:ffff:ffff:: exit int eth1.14 vrf for v4 ipv4 addr 9.7.4.2 255.255.255.0 ipv6 addr 9974::2 ffff:ffff:ffff:ffff:: exit ipv4 route v2 0.0.0.0 0.0.0.0 9.7.2.1 ipv4 route v3 0.0.0.0 0.0.0.0 9.7.3.1 ipv4 route v4 0.0.0.0 0.0.0.0 9.7.4.1 ipv6 route v2 :: :: 9972::1 ipv6 route v3 :: :: 9973::1 ipv6 route v4 :: :: 9974::1 ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r1 tping 100 60 9.8.2.2 vrf v2 r1 tping 100 60 9.7.2.2 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9.8.2.2 vrf v2 r3 tping 100 60 9.7.2.2 vrf v2 r1 tping 100 60 9992::3 vrf v2 r1 tping 100 60 9982::2 vrf v2 r1 tping 100 60 9972::2 vrf v2 r3 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9982::2 vrf v2 r3 tping 100 60 9972::2 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r1 tping 100 60 9.8.3.2 vrf v3 r1 tping 100 60 9.7.3.2 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9.8.3.2 vrf v3 r3 tping 100 60 9.7.3.2 vrf v3 r1 tping 100 60 9993::3 vrf v3 r1 tping 100 60 9983::2 vrf v3 r1 tping 100 60 9973::2 vrf v3 r3 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9983::2 vrf v3 r3 tping 100 60 9973::2 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9.8.4.2 vrf v4 r1 tping 100 60 9.7.4.2 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9.8.4.2 vrf v4 r3 tping 100 60 9.7.4.2 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9984::2 vrf v4 r1 tping 100 60 9974::2 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9984::2 vrf v4 r3 tping 100 60 9974::2 vrf v4 r4 tping 100 60 9.9.2.1 vrf v2 r4 tping 100 60 9.9.2.3 vrf v2 r4 tping 100 60 9.8.2.2 vrf v2 r4 tping 100 60 9.7.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r5 tping 100 60 9.9.2.3 vrf v2 r5 tping 100 60 9.8.2.2 vrf v2 r5 tping 100 60 9.7.2.2 vrf v2 r4 tping 100 60 9992::1 vrf v2 r4 tping 100 60 9992::3 vrf v2 r4 tping 100 60 9982::2 vrf v2 r4 tping 100 60 9972::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r5 tping 100 60 9992::3 vrf v2 r5 tping 100 60 9982::2 vrf v2 r5 tping 100 60 9972::2 vrf v2 r4 tping 100 60 9.9.3.1 vrf v3 r4 tping 100 60 9.9.3.3 vrf v3 r4 tping 100 60 9.8.3.2 vrf v3 r4 tping 100 60 9.7.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r5 tping 100 60 9.9.3.3 vrf v3 r5 tping 100 60 9.8.3.2 vrf v3 r5 tping 100 60 9.7.3.2 vrf v3 r4 tping 100 60 9993::1 vrf v3 r4 tping 100 60 9993::3 vrf v3 r4 tping 100 60 9983::2 vrf v3 r4 tping 100 60 9973::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r5 tping 100 60 9993::3 vrf v3 r5 tping 100 60 9983::2 vrf v3 r5 tping 100 60 9973::2 vrf v3 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9.8.4.2 vrf v4 r4 tping 100 60 9.7.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r5 tping 100 60 9.9.4.3 vrf v4 r5 tping 100 60 9.8.4.2 vrf v4 r5 tping 100 60 9.7.4.2 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9984::2 vrf v4 r4 tping 100 60 9974::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r5 tping 100 60 9994::3 vrf v4 r5 tping 100 60 9984::2 vrf v4 r5 tping 100 60 9974::2 vrf v4 freeRtr-24.11.16/cfg/rout-bgp143.tst000066400000000000000000000072121471627602100166510ustar00rootroot00000000000000description vpns over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp144.tst000066400000000000000000000066451471627602100166630ustar00rootroot00000000000000description vpls/ldp over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp145.tst000066400000000000000000000067651471627602100166670ustar00rootroot00000000000000description evpn/pbb over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp146.tst000066400000000000000000000077211471627602100166610ustar00rootroot00000000000000description unicast+vpns over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp147.tst000066400000000000000000000073541471627602100166640ustar00rootroot00000000000000description unicast+vpls/ldp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp148.tst000066400000000000000000000074741471627602100166700ustar00rootroot00000000000000description unicast+evpn/pbb over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp149.tst000066400000000000000000000101301471627602100166500ustar00rootroot00000000000000description unicast+vpns over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp150.tst000066400000000000000000000075631471627602100166600ustar00rootroot00000000000000description unicast+vpls/ldp over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp151.tst000066400000000000000000000077031471627602100166550ustar00rootroot00000000000000description unicast+evpn/pbb over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp152.tst000066400000000000000000000105111471627602100166450ustar00rootroot00000000000000description unicast+vpns over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpnuni uni neigh 2.2.2.2 additional-path-tx vpnuni uni red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpnuni uni neigh 4321::2 additional-path-tx vpnuni uni red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpnuni uni neigh 2.2.2.1 additional-path-tx vpnuni uni red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpnuni uni neigh 4321::1 additional-path-tx vpnuni uni red conn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp153.tst000066400000000000000000000101241471627602100166460ustar00rootroot00000000000000description unicast+vpls/ldp over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpls uni neigh 2.2.2.2 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpls uni neigh 4321::2 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpls uni neigh 2.2.2.1 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpls uni neigh 4321::1 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp154.tst000066400000000000000000000102441471627602100166520ustar00rootroot00000000000000description unicast+evpn/pbb over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn uni neigh 2.2.2.2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn uni neigh 4321::2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn uni neigh 2.2.2.1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn uni neigh 4321::1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp155.tst000066400000000000000000000052151471627602100166550ustar00rootroot00000000000000description bgp auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 9.9.9.2 remote-as 2 red conn automesh all exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 9999::2 remote-as 2 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 9.9.9.1 remote-as 1 red conn automesh all exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 9999::1 remote-as 1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 60 9.9.9.2 vrf v1 r1 tping 100 60 9999::2 vrf v1 r2 tping 100 60 9.9.9.1 vrf v1 r2 tping 100 60 9999::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 rsvp v1 sum r1 output show ipv6 rsvp v1 sum r1 output show ipv4 route v1 r1 output show ipv6 route v1 output ../binTmp/rout-bgp-te.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-bgp156.tst000066400000000000000000000074641471627602100166660ustar00rootroot00000000000000description vpns over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp157.tst000066400000000000000000000071171471627602100166620ustar00rootroot00000000000000description vpls/ldp over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp158.tst000066400000000000000000000072371471627602100166660ustar00rootroot00000000000000description evpn/pbb over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp159.tst000066400000000000000000000105611471627602100166610ustar00rootroot00000000000000description vpls/bgp over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 vpls dat r1 output show ipv6 bgp 1 vpls dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show bridge 1 r1 output show bridge 2 r1 output show bridge 3 r1 output show bridge 4 output ../binTmp/rout-bgp-vpls2.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here is the bridge:
show:6
here is the bridge:
show:7
here is the bridge:
show:8
here is the bridge:
show:9
! freeRtr-24.11.16/cfg/rout-bgp160.tst000066400000000000000000000054771471627602100166630ustar00rootroot00000000000000description vpls/bgp over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp161.tst000066400000000000000000000074561471627602100166630ustar00rootroot00000000000000description vpls/bgp over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpls neigh 2.2.2.2 additional-path-tx vpls afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpls neigh 4321::2 additional-path-tx vpls afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpls neigh 2.2.2.1 additional-path-tx vpls afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpls neigh 4321::1 additional-path-tx vpls afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp162.tst000066400000000000000000000110051471627602100166450ustar00rootroot00000000000000description vpls/bgp over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp163.tst000066400000000000000000000071051471627602100166540ustar00rootroot00000000000000description vpls/bgp over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp164.tst000066400000000000000000000112531471627602100166540ustar00rootroot00000000000000description vpls/bgp over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp165.tst000066400000000000000000000172231471627602100166600ustar00rootroot00000000000000description multisite vpls/bgp over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::3 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::3 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 3 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 3 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 3 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 3 10 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp166.tst000066400000000000000000000113131471627602100166530ustar00rootroot00000000000000description ethersite vpls/bgp over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:2 rt-both 1:2 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:2 rt-both 1:2 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv6 addr 3333::4 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.0 ipv6 addr 4444::4 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.4 vrf v1 r2 tping 100 60 3333::4 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.4 vrf v1 r3 tping 100 60 3333::4 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 3333::1 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 3.3.3.2 vrf v1 r4 tping 100 60 3333::2 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 3.3.3.3 vrf v1 r4 tping 100 60 3333::3 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp167.tst000066400000000000000000000071551471627602100166650ustar00rootroot00000000000000description vpls/bgp over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp168.tst000066400000000000000000000076641471627602100166730ustar00rootroot00000000000000description unicast+vpls/bgp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp169.tst000066400000000000000000000100731471627602100166600ustar00rootroot00000000000000description unicast+vpls/bgp over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp170.tst000066400000000000000000000104341471627602100166510ustar00rootroot00000000000000description unicast+vpls/bgp over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpls uni neigh 2.2.2.2 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpls uni neigh 4321::2 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpls uni neigh 2.2.2.1 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpls uni neigh 4321::1 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp171.tst000066400000000000000000000074271471627602100166620ustar00rootroot00000000000000description vpls/bgp over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 1 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit router bgp6 1 vrf v1 no safe-ebgp address vpls automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 afi-vpls 1:2 ve-id 2 10 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp172.tst000066400000000000000000000066131471627602100166570ustar00rootroot00000000000000description vpls/ldp+vpls/bgp over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 1 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:1 ve-id 2 10 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp173.tst000066400000000000000000000065001471627602100166530ustar00rootroot00000000000000description ibgp conquer rr in subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 conquer neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 conquer neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp174.tst000066400000000000000000000072731471627602100166640ustar00rootroot00000000000000description ibgp conquer rr in subnet with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 conquer neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 conquer neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp175.tst000066400000000000000000000120061471627602100166530ustar00rootroot00000000000000description ibgp conquer rr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 conquer neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 conquer neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp176.tst000066400000000000000000000126011471627602100166550ustar00rootroot00000000000000description ibgp conquer rr prefix withdraw with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 conquer neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 conquer neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp177.tst000066400000000000000000000026361471627602100166650ustar00rootroot00000000000000description unicast+vpnmul over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp178.tst000066400000000000000000000026171471627602100166650ustar00rootroot00000000000000description unicast+mdt over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mdt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mdt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mdt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mdt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp179.tst000066400000000000000000000037741471627602100166730ustar00rootroot00000000000000description unicast+flowspec over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router uni2flow4 1 vrf v1 dist 10 justadvert lo1 exit router uni2flow6 1 vrf v1 dist 10 justadvert lo1 exit router bgp4 1 vrf v1 no safe-ebgp address uni flowspec local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn red uni2flow4 1 exit router bgp6 1 vrf v1 no safe-ebgp address uni flowspec local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn red uni2flow6 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni flowspec local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn flowspec-install exit router bgp6 1 vrf v1 no safe-ebgp address uni flowspec local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn flowspec-install exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.101 vrf v1 sou lo0 r2 tping 0 60 4321::101 vrf v1 sou lo0 r2 tping 100 60 2.2.2.201 vrf v1 sou lo0 r2 tping 100 60 4321::201 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp180.tst000066400000000000000000000026431471627602100166550ustar00rootroot00000000000000description unicast+flowspecvpn over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp181.tst000066400000000000000000000030511471627602100166500ustar00rootroot00000000000000description unicast+vpnmul over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp182.tst000066400000000000000000000030321471627602100166500ustar00rootroot00000000000000description unicast+mdt over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mdt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mdt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mdt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mdt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp183.tst000066400000000000000000000042071471627602100166560ustar00rootroot00000000000000description unicast+flowspec over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router uni2flow4 1 vrf v1 dist 10 justadvert lo1 exit router uni2flow6 1 vrf v1 dist 10 justadvert lo1 exit router bgp4 1 vrf v1 no safe-ebgp address uni flowspec local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn red uni2flow4 1 exit router bgp6 1 vrf v1 no safe-ebgp address uni flowspec local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn red uni2flow6 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni flowspec local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn flowspec-install exit router bgp6 1 vrf v1 no safe-ebgp address uni flowspec local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn flowspec-install exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.101 vrf v1 sou lo0 r2 tping 0 60 4321::101 vrf v1 sou lo0 r2 tping 100 60 2.2.2.201 vrf v1 sou lo0 r2 tping 100 60 4321::201 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp184.tst000066400000000000000000000030561471627602100166600ustar00rootroot00000000000000description unicast+flowspecvpn over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp185.tst000066400000000000000000000034431471627602100166610ustar00rootroot00000000000000description unicast+vpnmul over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni vpnmlt neigh 1.1.1.2 additional-path-tx uni vpnmlt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni vpnmlt neigh 1234:1::2 additional-path-tx uni vpnmlt red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni vpnmlt neigh 1.1.1.1 additional-path-tx uni vpnmlt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnmlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni vpnmlt neigh 1234:1::1 additional-path-tx uni vpnmlt red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp186.tst000066400000000000000000000033741471627602100166650ustar00rootroot00000000000000description unicast+mdt over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mdt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni mdt neigh 1.1.1.2 additional-path-tx uni mdt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mdt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni mdt neigh 1234:1::2 additional-path-tx uni mdt red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mdt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni mdt neigh 1.1.1.1 additional-path-tx uni mdt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mdt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni mdt neigh 1234:1::1 additional-path-tx uni mdt red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp187.tst000066400000000000000000000046211471627602100166620ustar00rootroot00000000000000description unicast+flowspec over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router uni2flow4 1 vrf v1 dist 10 justadvert lo1 exit router uni2flow6 1 vrf v1 dist 10 justadvert lo1 exit router bgp4 1 vrf v1 no safe-ebgp address uni flowspec local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni flowspec neigh 1.1.1.2 additional-path-tx uni flowspec red conn red uni2flow4 1 exit router bgp6 1 vrf v1 no safe-ebgp address uni flowspec local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni flowspec neigh 1234:1::2 additional-path-tx uni flowspec red conn red uni2flow6 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni flowspec local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni flowspec neigh 1.1.1.1 additional-path-tx uni flowspec red conn flowspec-install exit router bgp6 1 vrf v1 no safe-ebgp address uni flowspec local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni flowspec neigh 1234:1::1 additional-path-tx uni flowspec red conn flowspec-install exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.101 vrf v1 sou lo0 r2 tping 0 60 4321::101 vrf v1 sou lo0 r2 tping 100 60 2.2.2.201 vrf v1 sou lo0 r2 tping 100 60 4321::201 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp188.tst000066400000000000000000000034501471627602100166620ustar00rootroot00000000000000description unicast+flowspecvpn over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni vpnflw neigh 1.1.1.2 additional-path-tx uni vpnflw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni vpnflw neigh 1234:1::2 additional-path-tx uni vpnflw red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni vpnflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni vpnflw neigh 1.1.1.1 additional-path-tx uni vpnflw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni vpnflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni vpnflw neigh 1234:1::1 additional-path-tx uni vpnflw red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp189.tst000066400000000000000000000072131471627602100166640ustar00rootroot00000000000000description evpn/vxlan over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 evpn dat r1 output show ipv6 bgp 1 evpn dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show bridge 1 r1 output show bridge 2 output ../binTmp/rout-bgp-evpn2.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here is the bridge:
show:6
here is the bridge:
show:7
! freeRtr-24.11.16/cfg/rout-bgp190.tst000066400000000000000000000055171471627602100166610ustar00rootroot00000000000000description evpn/vxlan over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp191.tst000066400000000000000000000063161471627602100166600ustar00rootroot00000000000000description evpn/vxlan over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn neigh 2.2.2.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn neigh 4321::2 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn neigh 2.2.2.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn neigh 4321::1 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp192.tst000066400000000000000000000077711471627602100166670ustar00rootroot00000000000000description evpn/vxlan over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp193.tst000066400000000000000000000057451471627602100166670ustar00rootroot00000000000000description evpn/vxlan over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp194.tst000066400000000000000000000102371471627602100166600ustar00rootroot00000000000000description evpn/vxlan over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp195.tst000066400000000000000000000156001471627602100166600ustar00rootroot00000000000000description multisite evpn/vxlan over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 pmsi neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 pmsi neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp196.tst000066400000000000000000000113331471627602100166600ustar00rootroot00000000000000description ethersite evpn/vxlan over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:2 rt-both 1:2 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn exit bridge 2 rd 1:2 rt-both 1:2 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2.11 bridge-group 1 exit int eth2.12 bridge-group 2 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv6 addr 3333::4 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.0 ipv6 addr 4444::4 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.4 vrf v1 r2 tping 100 60 3333::4 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.4 vrf v1 r3 tping 100 60 3333::4 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 3333::1 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 3.3.3.2 vrf v1 r4 tping 100 60 3333::2 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 3.3.3.3 vrf v1 r4 tping 100 60 3333::3 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp197.tst000066400000000000000000000060151471627602100166620ustar00rootroot00000000000000description evpn/vxlan over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp198.tst000066400000000000000000000065241471627602100166700ustar00rootroot00000000000000description unicast+evpn/vxlan over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp199.tst000066400000000000000000000067331471627602100166730ustar00rootroot00000000000000description unicast+evpn/vxlan over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp200.tst000066400000000000000000000072741471627602100166530ustar00rootroot00000000000000description unicast+evpn/vxlan over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn uni neigh 2.2.2.2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn uni neigh 4321::2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn uni neigh 2.2.2.1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn uni neigh 4321::1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp201.tst000066400000000000000000000063751471627602100166550ustar00rootroot00000000000000description evpn/vxlan over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp202.tst000066400000000000000000000067421471627602100166540ustar00rootroot00000000000000description evpn/pbb+vpls/vxlan over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vxlan afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp203.tst000066400000000000000000000107021471627602100166440ustar00rootroot00000000000000description evpn/cmac over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 evpn dat r1 output show ipv6 bgp 1 evpn dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show bridge 1 r1 output show bridge 2 r1 output show bridge 3 r1 output show bridge 4 output ../binTmp/rout-bgp-evpn3.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here is the bridge:
show:6
here is the bridge:
show:7
here is the bridge:
show:8
here is the bridge:
show:9
! freeRtr-24.11.16/cfg/rout-bgp204.tst000066400000000000000000000056201471627602100166500ustar00rootroot00000000000000description evpn/cmac over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp205.tst000066400000000000000000000075771471627602100166660ustar00rootroot00000000000000description evpn/cmac over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn neigh 2.2.2.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn neigh 4321::2 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn neigh 2.2.2.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn neigh 4321::1 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp206.tst000066400000000000000000000112521471627602100166500ustar00rootroot00000000000000description evpn/cmac over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp207.tst000066400000000000000000000072261471627602100166570ustar00rootroot00000000000000description evpn/cmac over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp208.tst000066400000000000000000000115201471627602100166500ustar00rootroot00000000000000description evpn/cmac over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp209.tst000066400000000000000000000176121471627602100166610ustar00rootroot00000000000000description multisite evpn/cmac over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 exit int bvi2 vrf for v1 ipv6 addr 4444::3 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::3 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both neigh 1234:1::4 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 pmsi neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 pmsi neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp210.tst000066400000000000000000000121701471627602100166430ustar00rootroot00000000000000description ethersite evpn/cmac over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn exit bridge 4 rd 1:4 rt-both 1:4 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 3 exit int eth2.12 bridge-group 4 exit int bvi1 bridge-group 3 exit int bvi2 bridge-group 4 exit int bvi3 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn exit bridge 4 rd 1:4 rt-both 1:4 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 3 exit int eth2.12 bridge-group 4 exit int bvi1 bridge-group 3 exit int bvi2 bridge-group 4 exit int bvi3 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv6 addr 3333::4 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.0 ipv6 addr 4444::4 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.4 vrf v1 r2 tping 100 60 3333::4 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.4 vrf v1 r3 tping 100 60 3333::4 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 3333::1 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 3.3.3.2 vrf v1 r4 tping 100 60 3333::2 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 3.3.3.3 vrf v1 r4 tping 100 60 3333::3 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp211.tst000066400000000000000000000072761471627602100166570ustar00rootroot00000000000000description evpn/cmac over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp212.tst000066400000000000000000000100051471627602100166400ustar00rootroot00000000000000description unicast+evpn/cmac over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp213.tst000066400000000000000000000102141471627602100166430ustar00rootroot00000000000000description unicast+evpn/cmac over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp214.tst000066400000000000000000000105551471627602100166540ustar00rootroot00000000000000description unicast+evpn/cmac over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn uni neigh 2.2.2.2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn uni neigh 4321::2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn uni neigh 2.2.2.1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn uni neigh 4321::1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp215.tst000066400000000000000000000075501471627602100166560ustar00rootroot00000000000000description evpn/cmac over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap cmac exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp216.tst000066400000000000000000000067351471627602100166630ustar00rootroot00000000000000description evpn/pbb+vpls/cmac over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 3 afi-evpn 102 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap cmac afi-evpn 102 bridge 4 afi-evpn 102 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp217.tst000066400000000000000000000033351471627602100166550ustar00rootroot00000000000000description ibgp with ttl-security addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 permit 6 any all any all ttl 110-120 deny 6 any all any all permit all any all any all exit access-list test6 permit 6 any all any all ttl 110-120 deny 6 any all any all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv4 access-group-out test4 ipv6 access-group-out test6 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 ttl-sec 115 neigh 1.1.1.2 connection pass red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 ttl-sec 115 neigh 1234::2 connection pass red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 ttl-sec 115 neigh 1.1.1.1 connection act red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 ttl-sec 115 neigh 1234::1 connection act red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp218.tst000066400000000000000000000034251471627602100166560ustar00rootroot00000000000000description ebgp with ttl-security addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit access-list test4 permit 6 any all any all ttl 110-120 deny 6 any all any all permit all any all any all exit access-list test6 permit 6 any all any all ttl 110-120 deny 6 any all any all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 ipv4 access-group-out test4 ipv6 access-group-out test6 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 ttl-sec 115 neigh 1.1.1.2 connection pass red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 ttl-sec 115 neigh 1234::2 connection pass red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 ttl-sec 115 neigh 1.1.1.1 connection act red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 ttl-sec 115 neigh 1234::1 connection act red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp219.tst000066400000000000000000000052631471627602100166610ustar00rootroot00000000000000description bgp routemap filtering with large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm all neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set lrgcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match lrgcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp220.tst000066400000000000000000000056661471627602100166600ustar00rootroot00000000000000description bgp routemap filtering with large community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm all neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set lrgcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match lrgcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp221.tst000066400000000000000000000152171471627602100166520ustar00rootroot00000000000000description bgp change in large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 send-comm all neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 send-comm all neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 send-comm all neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 send-comm all neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match lrgcomm 1:1234:5000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set lrgcomm 1:1234:1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match lrgcomm 1:1234:3000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set lrgcomm 1:1234:3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set lrgcomm 1:1234:5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set lrgcomm 1:1234:1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp222.tst000066400000000000000000000160121471627602100166450ustar00rootroot00000000000000description bgp change in large community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 send-comm all neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 send-comm all neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 send-comm all neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 send-comm all neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match lrgcomm 1:1234:5000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set lrgcomm 1:1234:1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match lrgcomm 1:1234:3000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set lrgcomm 1:1234:3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set lrgcomm 1:1234:5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set lrgcomm 1:1234:1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp223.tst000066400000000000000000000057611471627602100166570ustar00rootroot00000000000000description bgp triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 distance 123 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 distance 123 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 1 neigh 1.1.1.10 distance 123 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 1 neigh 1234:3::2 distance 123 red conn exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 freeRtr-24.11.16/cfg/rout-bgp224.tst000066400000000000000000000047131471627602100166540ustar00rootroot00000000000000description bgp routemap filtering with aspath length addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 1234 1234 1234 1234 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match pathlen 3-10 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp225.tst000066400000000000000000000047161471627602100166600ustar00rootroot00000000000000description bgp routepolicy filtering with aspath length addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 1234 1234 1234 1234 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if pathlen 3-10 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp226.tst000066400000000000000000000053161471627602100166560ustar00rootroot00000000000000description bgp routemap filtering with aspath length with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 1234 1234 1234 1234 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match pathlen 3-10 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp227.tst000066400000000000000000000053211471627602100166530ustar00rootroot00000000000000description bgp routepolicy filtering with aspath length with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 1234 1234 1234 1234 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if pathlen 3-10 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp228.tst000066400000000000000000000042631471627602100166600ustar00rootroot00000000000000description bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp229.tst000066400000000000000000000042641471627602100166620ustar00rootroot00000000000000description bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp230.tst000066400000000000000000000046601471627602100166520ustar00rootroot00000000000000description bgp routepolicy filtering with locpref addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set locpref 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if locpref 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp231.tst000066400000000000000000000046471471627602100166600ustar00rootroot00000000000000description bgp routepolicy filtering with origin addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set origin 1 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if origin 1 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp232.tst000066400000000000000000000046551471627602100166600ustar00rootroot00000000000000description bgp routepolicy filtering with metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set metric 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if metric 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp233.tst000066400000000000000000000046561471627602100166620ustar00rootroot00000000000000description bgp routepolicy filtering with aspath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if aspath 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp234.tst000066400000000000000000000053011471627602100166470ustar00rootroot00000000000000description bgp routepolicy filtering with extended community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set extcomm 1:1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if extcomm 1:1234:4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp235.tst000066400000000000000000000051171471627602100166550ustar00rootroot00000000000000description bgp routepolicy filtering with aigp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 aigp neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 aigp neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 aigp red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aigp 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aigp red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aigp red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if aigp 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 aigp red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp236.tst000066400000000000000000000051761471627602100166630ustar00rootroot00000000000000description bgp routepolicy filtering with bandwidth addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 traffeng neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 traffeng neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 traffeng red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set bandwidth 8888 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 traffeng red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 traffeng red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if bandwidth 8888 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 traffeng red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp237.tst000066400000000000000000000044761471627602100166660ustar00rootroot00000000000000description bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp238.tst000066400000000000000000000044771471627602100166700ustar00rootroot00000000000000description bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp239.tst000066400000000000000000000052631471627602100166630ustar00rootroot00000000000000description bgp routepolicy filtering with locpref with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set locpref 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if locpref 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp240.tst000066400000000000000000000052521471627602100166510ustar00rootroot00000000000000description bgp routepolicy filtering with origin with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set origin 1 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if origin 1 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp241.tst000066400000000000000000000052601471627602100166510ustar00rootroot00000000000000description bgp routepolicy filtering with metric with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set metric 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if metric 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp242.tst000066400000000000000000000057001471627602100166510ustar00rootroot00000000000000description bgp routepolicy filtering with standard community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set stdcomm 1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if stdcomm 1234:4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp243.tst000066400000000000000000000052601471627602100166530ustar00rootroot00000000000000description bgp routepolicy filtering with aspath with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if aspath 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp244.tst000066400000000000000000000057041471627602100166570ustar00rootroot00000000000000description bgp routepolicy filtering with extended community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set extcomm 1:1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if extcomm 1:1234:4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp245.tst000066400000000000000000000055221471627602100166560ustar00rootroot00000000000000description bgp routepolicy filtering with aigp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 aigp neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 aigp neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 aigp red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aigp 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 aigp red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 aigp red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if aigp 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 aigp red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 aigp red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp246.tst000066400000000000000000000056011471627602100166550ustar00rootroot00000000000000description bgp routepolicy filtering with bandwidth with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 traffeng neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 traffeng neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 traffeng red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set bandwidth 8888 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 traffeng red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 traffeng red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if bandwidth 8888 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 traffeng red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 traffeng red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp247.tst000066400000000000000000000052661471627602100166650ustar00rootroot00000000000000description bgp routepolicy filtering with large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm all neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set lrgcomm 1:1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if lrgcomm 1:1234:4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp248.tst000066400000000000000000000056711471627602100166660ustar00rootroot00000000000000description bgp routepolicy filtering with large community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm all neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set lrgcomm 1:1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if lrgcomm 1:1234:4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp249.tst000066400000000000000000000046401471627602100166620ustar00rootroot00000000000000description ebgp with nexthop tracking routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-policy rm1 if distance 0 pass enif exit route-policy rm2 set aspath 3 3 3 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 nexthop route-policy rm1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in rm2 neigh 1.1.1.2 route-policy-out rm2 neigh 1.1.1.6 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 nexthop route-policy rm1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-in rm2 neigh 1234:1::2 route-policy-out rm2 neigh 1234:2::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-policy rm1 if distance 0 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 nexthop route-policy rm1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 nexthop route-policy rm1 neigh 1234:1::1 remote-as 1 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp250.tst000066400000000000000000000045641471627602100166570ustar00rootroot00000000000000description ibgp with nexthop tracking routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-policy rm1 if distance 0 pass enif exit route-policy rm2 set aspath 3 3 3 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 nexthop route-policy rm1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-policy-in rm2 neigh 1.1.1.2 route-policy-out rm2 neigh 1.1.1.6 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 nexthop route-policy rm1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-policy-in rm2 neigh 1234:1::2 route-policy-out rm2 neigh 1234:2::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-policy rm1 if distance 0 pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 nexthop route-policy rm1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 nexthop route-policy rm1 neigh 1234:1::1 remote-as 1 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp251.tst000066400000000000000000000112321471627602100166460ustar00rootroot00000000000000description othervpns over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 ovpnuni dat r1 output show ipv6 bgp 1 ovpnuni dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show ipv4 route v2 r1 output show ipv6 route v2 r1 output show ipv4 route v3 r1 output show ipv6 route v3 r1 output show ipv4 route v4 r1 output show ipv6 route v4 output ../binTmp/rout-bgp-othervpn.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here are the ipv4 vpn routes:
show:6
here are the ipv6 vpn routes:
show:7
here are the ipv4 vpn routes:
show:8
here are the ipv6 vpn routes:
show:9
here are the ipv4 vpn routes:
show:10
here are the ipv6 vpn routes:
show:11
! freeRtr-24.11.16/cfg/rout-bgp252.tst000066400000000000000000000114071471627602100166530ustar00rootroot00000000000000description othervpns over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp253.tst000066400000000000000000000076041471627602100166600ustar00rootroot00000000000000description othervpns over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx ovpnuni neigh 2.2.2.2 additional-path-tx ovpnuni afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx ovpnuni neigh 4321::2 additional-path-tx ovpnuni afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx ovpnuni neigh 2.2.2.1 additional-path-tx ovpnuni afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx ovpnuni neigh 4321::1 additional-path-tx ovpnuni afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp254.tst000066400000000000000000000111111471627602100166450ustar00rootroot00000000000000description othervpns over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp255.tst000066400000000000000000000072031471627602100166550ustar00rootroot00000000000000description othervpns over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp256.tst000066400000000000000000000113561471627602100166620ustar00rootroot00000000000000description othervpns over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp257.tst000066400000000000000000000176671471627602100166760ustar00rootroot00000000000000description multisite othervpns over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 update lo0 neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::4 remote-as 1 neigh 1234:1::4 update lo0 neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $1b$ $1a$ int eth2 eth 0000.0000.4444 $2b$ $2a$ int eth3 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 send-comm both neigh 4321::3 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r2 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9.9.2.2 vrf v2 r1 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r2 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9992::2 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r2 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9.9.3.2 vrf v3 r1 tping 100 60 9993::2 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r2 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9993::2 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9994::2 vrf v4 freeRtr-24.11.16/cfg/rout-bgp258.tst000066400000000000000000000217351471627602100166660ustar00rootroot00000000000000description ethersite othervpns over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth2.12 vrf for v2 ipv4 addr 9.8.2.1 255.255.255.0 ipv6 addr 9982::1 ffff:ffff:ffff:ffff:: exit int eth2.13 vrf for v3 ipv4 addr 9.8.3.1 255.255.255.0 ipv6 addr 9983::1 ffff:ffff:ffff:ffff:: exit int eth2.14 vrf for v4 ipv4 addr 9.8.4.1 255.255.255.0 ipv6 addr 9984::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth2.12 vrf for v2 ipv4 addr 9.7.2.1 255.255.255.0 ipv6 addr 9972::1 ffff:ffff:ffff:ffff:: exit int eth2.13 vrf for v3 ipv4 addr 9.7.3.1 255.255.255.0 ipv6 addr 9973::1 ffff:ffff:ffff:ffff:: exit int eth2.14 vrf for v4 ipv4 addr 9.7.4.1 255.255.255.0 ipv6 addr 9974::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int eth1.12 vrf for v2 ipv4 addr 9.8.2.2 255.255.255.0 ipv6 addr 9982::2 ffff:ffff:ffff:ffff:: exit int eth1.13 vrf for v3 ipv4 addr 9.8.3.2 255.255.255.0 ipv6 addr 9983::2 ffff:ffff:ffff:ffff:: exit int eth1.14 vrf for v4 ipv4 addr 9.8.4.2 255.255.255.0 ipv6 addr 9984::2 ffff:ffff:ffff:ffff:: exit ipv4 route v2 0.0.0.0 0.0.0.0 9.8.2.1 ipv4 route v3 0.0.0.0 0.0.0.0 9.8.3.1 ipv4 route v4 0.0.0.0 0.0.0.0 9.8.4.1 ipv6 route v2 :: :: 9982::1 ipv6 route v3 :: :: 9983::1 ipv6 route v4 :: :: 9984::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int eth1.12 vrf for v2 ipv4 addr 9.7.2.2 255.255.255.0 ipv6 addr 9972::2 ffff:ffff:ffff:ffff:: exit int eth1.13 vrf for v3 ipv4 addr 9.7.3.2 255.255.255.0 ipv6 addr 9973::2 ffff:ffff:ffff:ffff:: exit int eth1.14 vrf for v4 ipv4 addr 9.7.4.2 255.255.255.0 ipv6 addr 9974::2 ffff:ffff:ffff:ffff:: exit ipv4 route v2 0.0.0.0 0.0.0.0 9.7.2.1 ipv4 route v3 0.0.0.0 0.0.0.0 9.7.3.1 ipv4 route v4 0.0.0.0 0.0.0.0 9.7.4.1 ipv6 route v2 :: :: 9972::1 ipv6 route v3 :: :: 9973::1 ipv6 route v4 :: :: 9974::1 ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r1 tping 100 60 9.8.2.2 vrf v2 r1 tping 100 60 9.7.2.2 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r3 tping 100 60 9.8.2.2 vrf v2 r3 tping 100 60 9.7.2.2 vrf v2 r1 tping 100 60 9992::3 vrf v2 r1 tping 100 60 9982::2 vrf v2 r1 tping 100 60 9972::2 vrf v2 r3 tping 100 60 9992::1 vrf v2 r3 tping 100 60 9982::2 vrf v2 r3 tping 100 60 9972::2 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r1 tping 100 60 9.8.3.2 vrf v3 r1 tping 100 60 9.7.3.2 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r3 tping 100 60 9.8.3.2 vrf v3 r3 tping 100 60 9.7.3.2 vrf v3 r1 tping 100 60 9993::3 vrf v3 r1 tping 100 60 9983::2 vrf v3 r1 tping 100 60 9973::2 vrf v3 r3 tping 100 60 9993::1 vrf v3 r3 tping 100 60 9983::2 vrf v3 r3 tping 100 60 9973::2 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9.8.4.2 vrf v4 r1 tping 100 60 9.7.4.2 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9.8.4.2 vrf v4 r3 tping 100 60 9.7.4.2 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9984::2 vrf v4 r1 tping 100 60 9974::2 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9984::2 vrf v4 r3 tping 100 60 9974::2 vrf v4 r4 tping 100 60 9.9.2.1 vrf v2 r4 tping 100 60 9.9.2.3 vrf v2 r4 tping 100 60 9.8.2.2 vrf v2 r4 tping 100 60 9.7.2.2 vrf v2 r5 tping 100 60 9.9.2.1 vrf v2 r5 tping 100 60 9.9.2.3 vrf v2 r5 tping 100 60 9.8.2.2 vrf v2 r5 tping 100 60 9.7.2.2 vrf v2 r4 tping 100 60 9992::1 vrf v2 r4 tping 100 60 9992::3 vrf v2 r4 tping 100 60 9982::2 vrf v2 r4 tping 100 60 9972::2 vrf v2 r5 tping 100 60 9992::1 vrf v2 r5 tping 100 60 9992::3 vrf v2 r5 tping 100 60 9982::2 vrf v2 r5 tping 100 60 9972::2 vrf v2 r4 tping 100 60 9.9.3.1 vrf v3 r4 tping 100 60 9.9.3.3 vrf v3 r4 tping 100 60 9.8.3.2 vrf v3 r4 tping 100 60 9.7.3.2 vrf v3 r5 tping 100 60 9.9.3.1 vrf v3 r5 tping 100 60 9.9.3.3 vrf v3 r5 tping 100 60 9.8.3.2 vrf v3 r5 tping 100 60 9.7.3.2 vrf v3 r4 tping 100 60 9993::1 vrf v3 r4 tping 100 60 9993::3 vrf v3 r4 tping 100 60 9983::2 vrf v3 r4 tping 100 60 9973::2 vrf v3 r5 tping 100 60 9993::1 vrf v3 r5 tping 100 60 9993::3 vrf v3 r5 tping 100 60 9983::2 vrf v3 r5 tping 100 60 9973::2 vrf v3 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9.8.4.2 vrf v4 r4 tping 100 60 9.7.4.2 vrf v4 r5 tping 100 60 9.9.4.1 vrf v4 r5 tping 100 60 9.9.4.3 vrf v4 r5 tping 100 60 9.8.4.2 vrf v4 r5 tping 100 60 9.7.4.2 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9984::2 vrf v4 r4 tping 100 60 9974::2 vrf v4 r5 tping 100 60 9994::1 vrf v4 r5 tping 100 60 9994::3 vrf v4 r5 tping 100 60 9984::2 vrf v4 r5 tping 100 60 9974::2 vrf v4 freeRtr-24.11.16/cfg/rout-bgp259.tst000066400000000000000000000072531471627602100166660ustar00rootroot00000000000000description othervpns over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp260.tst000066400000000000000000000077621471627602100166630ustar00rootroot00000000000000description unicast+othervpns over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp261.tst000066400000000000000000000101711471627602100166500ustar00rootroot00000000000000description unicast+othervpns over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp262.tst000066400000000000000000000105621471627602100166550ustar00rootroot00000000000000description unicast+othervpns over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx ovpnuni uni neigh 2.2.2.2 additional-path-tx ovpnuni uni red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx ovpnuni uni neigh 4321::2 additional-path-tx ovpnuni uni red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx ovpnuni uni neigh 2.2.2.1 additional-path-tx ovpnuni uni red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx ovpnuni uni neigh 4321::1 additional-path-tx ovpnuni uni red conn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp263.tst000066400000000000000000000075251471627602100166630ustar00rootroot00000000000000description othervpns over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp264.tst000066400000000000000000000026241471627602100166570ustar00rootroot00000000000000description unicast+mvpn over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mvpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mvpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mvpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mvpn local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp265.tst000066400000000000000000000030371471627602100166570ustar00rootroot00000000000000description unicast+mvpn over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mvpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mvpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mvpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mvpn local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp266.tst000066400000000000000000000034111471627602100166540ustar00rootroot00000000000000description unicast+mvpn over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mvpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni mvpn neigh 1.1.1.2 additional-path-tx uni mvpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mvpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni mvpn neigh 1234:1::2 additional-path-tx uni mvpn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mvpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni mvpn neigh 1.1.1.1 additional-path-tx uni mvpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mvpn local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni mvpn neigh 1234:1::1 additional-path-tx uni mvpn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp267.tst000066400000000000000000000026351471627602100166640ustar00rootroot00000000000000description unicast+othermvpn over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omvpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omvpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omvpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omvpn local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp268.tst000066400000000000000000000030501471627602100166550ustar00rootroot00000000000000description unicast+othermvpn over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omvpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omvpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omvpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omvpn local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp269.tst000066400000000000000000000034321471627602100166620ustar00rootroot00000000000000description unicast+othermvpn over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omvpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni omvpn neigh 1.1.1.2 additional-path-tx uni omvpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omvpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni omvpn neigh 1234:1::2 additional-path-tx uni omvpn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omvpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni omvpn neigh 1.1.1.1 additional-path-tx uni omvpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omvpn local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni omvpn neigh 1234:1::1 additional-path-tx uni omvpn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp270.tst000066400000000000000000000026541471627602100166570ustar00rootroot00000000000000description unicast+otherflowspecvpn over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp271.tst000066400000000000000000000030671471627602100166570ustar00rootroot00000000000000description unicast+otherflowspecvpn over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp272.tst000066400000000000000000000034711471627602100166570ustar00rootroot00000000000000description unicast+otherflowspecvpn over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni ovpnflw neigh 1.1.1.2 additional-path-tx uni ovpnflw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni ovpnflw neigh 1234:1::2 additional-path-tx uni ovpnflw red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni ovpnflw neigh 1.1.1.1 additional-path-tx uni ovpnflw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni ovpnflw neigh 1234:1::1 additional-path-tx uni ovpnflw red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp273.tst000066400000000000000000000026471471627602100166640ustar00rootroot00000000000000description unicast+othervpnmul over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp274.tst000066400000000000000000000030621471627602100166550ustar00rootroot00000000000000description unicast+othervpnmul over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp275.tst000066400000000000000000000034641471627602100166640ustar00rootroot00000000000000description unicast+othervpnmul over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni ovpnmlt neigh 1.1.1.2 additional-path-tx uni ovpnmlt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni ovpnmlt neigh 1234:1::2 additional-path-tx uni ovpnmlt red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni ovpnmlt neigh 1.1.1.1 additional-path-tx uni ovpnmlt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ovpnmlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni ovpnmlt neigh 1234:1::1 additional-path-tx uni ovpnmlt red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp276.tst000066400000000000000000000026351471627602100166640ustar00rootroot00000000000000description unicast+multicast over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni multi local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni multi local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni multi local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni multi local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp277.tst000066400000000000000000000030501471627602100166550ustar00rootroot00000000000000description unicast+multicast over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni multi local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni multi local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni multi local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni multi local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp278.tst000066400000000000000000000034321471627602100166620ustar00rootroot00000000000000description unicast+multicast over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni multi local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni multi neigh 1.1.1.2 additional-path-tx uni multi red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni multi local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni multi neigh 1234:1::2 additional-path-tx uni multi red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni multi local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni multi neigh 1.1.1.1 additional-path-tx uni multi red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni multi local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni multi neigh 1234:1::1 additional-path-tx uni multi red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp279.tst000066400000000000000000000202451471627602100166640ustar00rootroot00000000000000description bgp csc vpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 4 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.1 neigh 4321::4 remote-as 4 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.2 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::2 router bgp4 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.1 neigh 3.3.3.102 remote-as 2 neigh 3.3.3.102 update lo0 neigh 3.3.3.102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.1 neigh 3333::102 remote-as 2 neigh 3333::102 update lo0 neigh 3333::102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::1 ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.6 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.102 255.255.255.255 ipv6 addr 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.5 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::5 router bgp4 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.6 remote-as 3 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:2::2 remote-as 3 red conn red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 3.3.3.101 remote-as 2 neigh 3.3.3.101 update lo0 neigh 3.3.3.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 3333::101 remote-as 2 neigh 3333::101 update lo0 neigh 3333::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 4 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.2 neigh 4321::1 remote-as 4 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r2 tping 100 60 3.3.3.102 vrf v1 sou lo0 r2 tping 100 60 3333::102 vrf v1 sou lo0 r4 tping 100 60 3.3.3.101 vrf v1 sou lo0 r4 tping 100 60 3333::101 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v2 sou lo1 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 2.2.2.4 vrf v2 sou lo1 r2 tping 100 60 4321::1 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r2 tping 100 60 4321::4 vrf v2 sou lo1 r4 tping 100 60 2.2.2.1 vrf v2 sou lo1 r4 tping 100 60 2.2.2.2 vrf v2 sou lo1 r4 tping 100 60 2.2.2.4 vrf v2 sou lo1 r4 tping 100 60 4321::1 vrf v2 sou lo1 r4 tping 100 60 4321::2 vrf v2 sou lo1 r4 tping 100 60 4321::4 vrf v2 sou lo1 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.2 vrf v1 sou lo0 r5 tping 100 60 2.2.2.3 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 4321::2 vrf v1 sou lo0 r5 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4.4.4.4 vrf v3 sou lo1 r1 tping 100 60 4444::4 vrf v3 sou lo1 r5 tping 100 60 4.4.4.1 vrf v3 sou lo1 r5 tping 100 60 4444::1 vrf v3 sou lo1 freeRtr-24.11.16/cfg/rout-bgp280.tst000066400000000000000000000036321471627602100166550ustar00rootroot00000000000000description unicast+olab over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp281.tst000066400000000000000000000040441471627602100166540ustar00rootroot00000000000000description unicast+olab over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp282.tst000066400000000000000000000044161471627602100166600ustar00rootroot00000000000000description unicast+olab over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-rx uni olab neigh 1.1.1.2 additional-path-tx uni olab afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-rx uni olab neigh 1234:1::2 additional-path-Tx uni olab afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx uni olab neigh 1.1.1.1 additional-path-tx uni olab afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx uni olab neigh 1234:1::1 additional-path-tx uni olab afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp283.tst000066400000000000000000000202441471627602100166560ustar00rootroot00000000000000description ebgp prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.4 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::3 remote-as 3 neigh 1234:1::4 remote-as 4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp284.tst000066400000000000000000000206761471627602100166700ustar00rootroot00000000000000description confed bgp prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed neigh 1234:1::3 remote-as 3 neigh 1234:1::3 confed neigh 1234:1::4 remote-as 4 neigh 1234:1::4 confed red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp285.tst000066400000000000000000000203031471627602100166540ustar00rootroot00000000000000description ibgp rr prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp286.tst000066400000000000000000000204661471627602100166670ustar00rootroot00000000000000description bgp route server prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::4 remote-as 4 neigh 1234:1::4 route-server red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp287.tst000066400000000000000000000203351471627602100166630ustar00rootroot00000000000000description ibgp conquer rr prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 conquer neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 conquer neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp288.tst000066400000000000000000000205451471627602100166670ustar00rootroot00000000000000description ibgp fullmesh prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.4 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::4 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp289.tst000066400000000000000000000210371471627602100166650ustar00rootroot00000000000000description ebgp prefix movement with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 4 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp290.tst000066400000000000000000000214711471627602100166570ustar00rootroot00000000000000description confed bgp prefix movement with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 resend-packet ipv6 resend-packet exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 confed neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 3 neigh 1234:1::3 confed neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 4 neigh 1234:1::4 confed neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 soft-reconfig advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 soft-reconfig advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 soft-reconfig advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 soft-reconfig advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp291.tst000066400000000000000000000210761471627602100166610ustar00rootroot00000000000000description ibgp rr prefix movement with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp292.tst000066400000000000000000000212611471627602100166560ustar00rootroot00000000000000description bgp route server prefix movement with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 route-server neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 4 neigh 1234:1::4 route-server neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp293.tst000066400000000000000000000211301471627602100166520ustar00rootroot00000000000000description ibgp conquer rr prefix movement with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 conquer neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 conquer neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp294.tst000066400000000000000000000221101471627602100166520ustar00rootroot00000000000000description ibgp fullmesh prefix movement with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp295.tst000066400000000000000000000203201471627602100166540ustar00rootroot00000000000000description bgp csc othervpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 4 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.1 neigh 4321::4 remote-as 4 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.2 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::2 router bgp4 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn red bgp4 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.1 neigh 3.3.3.102 remote-as 2 neigh 3.3.3.102 update lo0 neigh 3.3.3.102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red bgp6 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.1 neigh 3333::102 remote-as 2 neigh 3333::102 update lo0 neigh 3333::102 send-comm both exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::1 ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.6 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.102 255.255.255.255 ipv6 addr 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.5 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::5 router bgp4 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.6 remote-as 3 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:2::2 remote-as 3 red conn red bgp4 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.2 neigh 3.3.3.101 remote-as 2 neigh 3.3.3.101 update lo0 neigh 3.3.3.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red bgp6 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.2 neigh 3333::101 remote-as 2 neigh 3333::101 update lo0 neigh 3333::101 send-comm both exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 4 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.2 neigh 4321::1 remote-as 4 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r2 tping 100 60 3.3.3.102 vrf v1 sou lo0 r2 tping 100 60 3333::102 vrf v1 sou lo0 r4 tping 100 60 3.3.3.101 vrf v1 sou lo0 r4 tping 100 60 3333::101 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v2 sou lo1 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 2.2.2.4 vrf v2 sou lo1 r2 tping 100 60 4321::1 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r2 tping 100 60 4321::4 vrf v2 sou lo1 r4 tping 100 60 2.2.2.1 vrf v2 sou lo1 r4 tping 100 60 2.2.2.2 vrf v2 sou lo1 r4 tping 100 60 2.2.2.4 vrf v2 sou lo1 r4 tping 100 60 4321::1 vrf v2 sou lo1 r4 tping 100 60 4321::2 vrf v2 sou lo1 r4 tping 100 60 4321::4 vrf v2 sou lo1 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.2 vrf v1 sou lo0 r5 tping 100 60 2.2.2.3 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 4321::2 vrf v1 sou lo0 r5 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4.4.4.4 vrf v3 sou lo1 r1 tping 100 60 4444::4 vrf v3 sou lo1 r5 tping 100 60 4.4.4.1 vrf v3 sou lo1 r5 tping 100 60 4444::1 vrf v3 sou lo1 freeRtr-24.11.16/cfg/rout-bgp296.tst000066400000000000000000000204301471627602100166570ustar00rootroot00000000000000description bgp prefix hammering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ int eth5 eth 0000.0000.1111 $5a$ $5b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int eth4 bridge-gr 1 exit int eth5 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::6 remote-as 1 neigh 1234:1::6 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.255 ipv6 addr 4444::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit route-map all action permit exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.0 ipv6 addr 1234:1::5 ffff:ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit route-map all action permit exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.0 ipv6 addr 1234:1::6 ffff:ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2222::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2222::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2222::4 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2222::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2222::4 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2222::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 r5 tping 100 60 1.1.1.1 vrf v1 r5 send pack bgpgen v1 eth1 1.1.1.1 1 3.3.3.0/24 all 100000 r5 read sent r6 tping 100 60 1234:1::1 vrf v1 r6 send pack bgpgen v1 eth1 1234:1::1 1 3333::/120 all 100000 r6 read sent r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2222::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2222::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2222::4 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2222::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2222::4 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2222::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 r5 send end r5 read finish r6 send end r6 read finish r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2222::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2222::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2222::4 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2222::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2222::4 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2222::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp297.tst000066400000000000000000000202361471627602100166640ustar00rootroot00000000000000description bgp csc vpn with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 4 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.1 neigh 4321::4 remote-as 4 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.2 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::2 ipv4 route v2 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v2 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.1 neigh 3.3.3.102 remote-as 2 neigh 3.3.3.102 update lo0 neigh 3.3.3.102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.1 neigh 3333::102 remote-as 2 neigh 3333::102 update lo0 neigh 3333::102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::1 ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.6 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.102 255.255.255.255 ipv6 addr 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.5 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::5 ipv4 route v2 2.2.2.4 255.255.255.255 1.1.1.6 ipv6 route v2 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 3.3.3.101 remote-as 2 neigh 3.3.3.101 update lo0 neigh 3.3.3.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 3333::101 remote-as 2 neigh 3333::101 update lo0 neigh 3333::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 4 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.2 neigh 4321::1 remote-as 4 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r2 tping 100 60 3.3.3.102 vrf v1 sou lo0 r2 tping 100 60 3333::102 vrf v1 sou lo0 r4 tping 100 60 3.3.3.101 vrf v1 sou lo0 r4 tping 100 60 3333::101 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v2 sou lo1 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 2.2.2.4 vrf v2 sou lo1 r2 tping 100 60 4321::1 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r2 tping 100 60 4321::4 vrf v2 sou lo1 r4 tping 100 60 2.2.2.1 vrf v2 sou lo1 r4 tping 100 60 2.2.2.2 vrf v2 sou lo1 r4 tping 100 60 2.2.2.4 vrf v2 sou lo1 r4 tping 100 60 4321::1 vrf v2 sou lo1 r4 tping 100 60 4321::2 vrf v2 sou lo1 r4 tping 100 60 4321::4 vrf v2 sou lo1 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.2 vrf v1 sou lo0 r5 tping 100 60 2.2.2.3 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 4321::2 vrf v1 sou lo0 r5 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4.4.4.4 vrf v3 sou lo1 r1 tping 100 60 4444::4 vrf v3 sou lo1 r5 tping 100 60 4.4.4.1 vrf v3 sou lo1 r5 tping 100 60 4444::1 vrf v3 sou lo1 freeRtr-24.11.16/cfg/rout-bgp298.tst000066400000000000000000000203111471627602100166570ustar00rootroot00000000000000description bgp csc othervpn with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 4 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.1 neigh 4321::4 remote-as 4 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.2 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::2 ipv4 route v2 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v2 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.1 neigh 3.3.3.102 remote-as 2 neigh 3.3.3.102 update lo0 neigh 3.3.3.102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red stat exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.1 neigh 3333::102 remote-as 2 neigh 3333::102 update lo0 neigh 3333::102 send-comm both exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::1 ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.6 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.102 255.255.255.255 ipv6 addr 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.5 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::5 ipv4 route v2 2.2.2.4 255.255.255.255 1.1.1.6 ipv6 route v2 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.2 neigh 3.3.3.101 remote-as 2 neigh 3.3.3.101 update lo0 neigh 3.3.3.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red stat afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red stat exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.2 neigh 3333::101 remote-as 2 neigh 3333::101 update lo0 neigh 3333::101 send-comm both exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 4 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.2 neigh 4321::1 remote-as 4 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r2 tping 100 60 3.3.3.102 vrf v1 sou lo0 r2 tping 100 60 3333::102 vrf v1 sou lo0 r4 tping 100 60 3.3.3.101 vrf v1 sou lo0 r4 tping 100 60 3333::101 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v2 sou lo1 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 2.2.2.4 vrf v2 sou lo1 r2 tping 100 60 4321::1 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r2 tping 100 60 4321::4 vrf v2 sou lo1 r4 tping 100 60 2.2.2.1 vrf v2 sou lo1 r4 tping 100 60 2.2.2.2 vrf v2 sou lo1 r4 tping 100 60 2.2.2.4 vrf v2 sou lo1 r4 tping 100 60 4321::1 vrf v2 sou lo1 r4 tping 100 60 4321::2 vrf v2 sou lo1 r4 tping 100 60 4321::4 vrf v2 sou lo1 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.2 vrf v1 sou lo0 r5 tping 100 60 2.2.2.3 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 4321::2 vrf v1 sou lo0 r5 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4.4.4.4 vrf v3 sou lo1 r1 tping 100 60 4444::4 vrf v3 sou lo1 r5 tping 100 60 4.4.4.1 vrf v3 sou lo1 r5 tping 100 60 4444::1 vrf v3 sou lo1 freeRtr-24.11.16/cfg/rout-bgp299.tst000066400000000000000000000026241471627602100166670ustar00rootroot00000000000000description unicast+mspw over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mspw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mspw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mspw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mspw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp300.tst000066400000000000000000000030371471627602100166450ustar00rootroot00000000000000description unicast+mspw over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mspw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mspw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mspw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mspw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp301.tst000066400000000000000000000034111471627602100166420ustar00rootroot00000000000000description unicast+mspw over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mspw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni mspw neigh 1.1.1.2 additional-path-tx uni mspw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mspw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni mspw neigh 1234:1::2 additional-path-tx uni mspw red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mspw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni mspw neigh 1.1.1.1 additional-path-tx uni mspw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mspw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni mspw neigh 1234:1::1 additional-path-tx uni mspw red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp302.tst000066400000000000000000000107221471627602100166460ustar00rootroot00000000000000description bgp with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp local-as 1 segrout 10 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 1 segrout 10 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 segrout red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp local-as 2 segrout 10 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrout neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 2 segrout 10 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 segrout neigh 1234:2::2 remote-as 3 neigh 1234:2::2 segrout red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp local-as 3 segrout 10 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 segrout neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 3 segrout 10 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 segrout neigh 1234:3::2 remote-as 4 neigh 1234:3::2 segrout red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp local-as 4 segrout 10 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 4 segrout 10 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 segrout red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp303.tst000066400000000000000000000125571471627602100166570ustar00rootroot00000000000000description ebgp vpn client addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 internal-vpn neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 attribset red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 internal-vpn neigh 1234:2::2 remote-as 3 neigh 1234:2::2 attribset red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 attribset neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 attribset red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 attribset neigh 1234:3::2 remote-as 4 neigh 1234:3::2 attribset red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 attribset neigh 1.1.1.14 remote-as 5 neigh 1.1.1.14 internal-vpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 attribset neigh 1234:4::2 remote-as 5 neigh 1234:4::2 internal-vpn red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 5 router-id 4.4.4.5 neigh 1.1.1.13 remote-as 4 neigh 1.1.1.13 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 5 router-id 6.6.6.5 neigh 1234:4::1 remote-as 4 neigh 1234:4::1 route-map-in rm1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 0 60 2.2.2.5 vrf v1 sou lo0 r2 tping 0 60 4321::5 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.5 vrf v1 sou lo0 r3 tping 0 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 0 60 2.2.2.1 vrf v1 sou lo0 r4 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.5 vrf v1 sou lo0 r1 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 0 60 2.2.2.4 vrf v1 sou lo0 r1 tping 0 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 0 60 2.2.2.2 vrf v1 sou lo0 r5 tping 0 60 4321::2 vrf v1 sou lo0 r5 tping 0 60 2.2.2.3 vrf v1 sou lo0 r5 tping 0 60 4321::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp304.tst000066400000000000000000000125571471627602100166600ustar00rootroot00000000000000description ibgp vpn client addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 2 neigh 1.1.1.1 internal-vpn neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 attribset red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 2 neigh 1234:1::1 internal-vpn neigh 1234:2::2 remote-as 3 neigh 1234:2::2 attribset red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 attribset neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 attribset red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 attribset neigh 1234:3::2 remote-as 4 neigh 1234:3::2 attribset red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 attribset neigh 1.1.1.14 remote-as 4 neigh 1.1.1.14 internal-vpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 attribset neigh 1234:4::2 remote-as 4 neigh 1234:4::2 internal-vpn red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.5 neigh 1.1.1.13 remote-as 4 neigh 1.1.1.13 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.5 neigh 1234:4::1 remote-as 4 neigh 1234:4::1 route-map-in rm1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 0 60 2.2.2.5 vrf v1 sou lo0 r2 tping 0 60 4321::5 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.5 vrf v1 sou lo0 r3 tping 0 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 0 60 2.2.2.1 vrf v1 sou lo0 r4 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.5 vrf v1 sou lo0 r1 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 0 60 2.2.2.4 vrf v1 sou lo0 r1 tping 0 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 0 60 2.2.2.2 vrf v1 sou lo0 r5 tping 0 60 4321::2 vrf v1 sou lo0 r5 tping 0 60 2.2.2.3 vrf v1 sou lo0 r5 tping 0 60 4321::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp305.tst000066400000000000000000000135451471627602100166570ustar00rootroot00000000000000description ebgp vpn client with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 internal-vpn neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 attribset neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 internal-vpn neigh 1234:2::2 remote-as 3 neigh 1234:2::2 attribset neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 attribset neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 attribset neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 attribset neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 4 neigh 1234:3::2 attribset neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 attribset neigh 1.1.1.9 soft-reconfig neigh 1.1.1.14 remote-as 5 neigh 1.1.1.14 soft-reconfig neigh 1.1.1.14 internal-vpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 attribset neigh 1234:3::1 soft-reconfig neigh 1234:4::2 remote-as 5 neigh 1234:4::2 soft-reconfig neigh 1234:4::2 internal-vpn red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 5 router-id 4.4.4.5 neigh 1.1.1.13 remote-as 4 neigh 1.1.1.13 soft-reconfig neigh 1.1.1.13 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 5 router-id 6.6.6.5 neigh 1234:4::1 remote-as 4 neigh 1234:4::1 soft-reconfig neigh 1234:4::1 route-map-in rm1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 0 60 2.2.2.5 vrf v1 sou lo0 r2 tping 0 60 4321::5 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.5 vrf v1 sou lo0 r3 tping 0 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 0 60 2.2.2.1 vrf v1 sou lo0 r4 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.5 vrf v1 sou lo0 r1 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 0 60 2.2.2.4 vrf v1 sou lo0 r1 tping 0 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 0 60 2.2.2.2 vrf v1 sou lo0 r5 tping 0 60 4321::2 vrf v1 sou lo0 r5 tping 0 60 2.2.2.3 vrf v1 sou lo0 r5 tping 0 60 4321::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp306.tst000066400000000000000000000135451471627602100166600ustar00rootroot00000000000000description ibgp vpn client with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 2 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 internal-vpn neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 attribset neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 2 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 internal-vpn neigh 1234:2::2 remote-as 3 neigh 1234:2::2 attribset neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 attribset neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 attribset neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 attribset neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 4 neigh 1234:3::2 attribset neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 attribset neigh 1.1.1.9 soft-reconfig neigh 1.1.1.14 remote-as 4 neigh 1.1.1.14 soft-reconfig neigh 1.1.1.14 internal-vpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 attribset neigh 1234:3::1 soft-reconfig neigh 1234:4::2 remote-as 4 neigh 1234:4::2 soft-reconfig neigh 1234:4::2 internal-vpn red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath .*3.* sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.5 neigh 1.1.1.13 remote-as 4 neigh 1.1.1.13 soft-reconfig neigh 1.1.1.13 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.5 neigh 1234:4::1 remote-as 4 neigh 1234:4::1 soft-reconfig neigh 1234:4::1 route-map-in rm1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 0 60 2.2.2.5 vrf v1 sou lo0 r2 tping 0 60 4321::5 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.5 vrf v1 sou lo0 r3 tping 0 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 0 60 2.2.2.1 vrf v1 sou lo0 r4 tping 0 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.5 vrf v1 sou lo0 r1 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r1 tping 0 60 2.2.2.4 vrf v1 sou lo0 r1 tping 0 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 0 60 2.2.2.2 vrf v1 sou lo0 r5 tping 0 60 4321::2 vrf v1 sou lo0 r5 tping 0 60 2.2.2.3 vrf v1 sou lo0 r5 tping 0 60 4321::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp307.tst000066400000000000000000000025341471627602100166550ustar00rootroot00000000000000description bgp symmetric compression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 compress both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 compress both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 compress both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 compress both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp308.tst000066400000000000000000000025331471627602100166550ustar00rootroot00000000000000description bgp asymmetric compression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 compress tran red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 compress tran red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 compress rec red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 compress rec red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp309.tst000066400000000000000000000025231471627602100166550ustar00rootroot00000000000000description bgp none compression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 compress rec red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 compress rec red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 compress rec red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 compress rec red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp310.tst000066400000000000000000000135351471627602100166520ustar00rootroot00000000000000description bgp prefix packing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 2222::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 2222::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo6 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 2222::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo7 vrf for v1 ipv4 addr 2.2.2.7 255.255.255.255 ipv6 addr 2222::7 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo8 vrf for v1 ipv4 addr 2.2.2.8 255.255.255.255 ipv6 addr 2222::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.0.0.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo6 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo7 vrf for v1 ipv4 addr 3.3.3.7 255.255.255.255 ipv6 addr 3333::7 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo8 vrf for v1 ipv4 addr 3.3.3.8 255.255.255.255 ipv6 addr 3333::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.0.0.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3333::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 3.3.3.5 vrf v1 r1 tping 100 60 3333::5 vrf v1 r1 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3333::6 vrf v1 r1 tping 100 60 3.3.3.7 vrf v1 r1 tping 100 60 3333::7 vrf v1 r1 tping 100 60 3.3.3.8 vrf v1 r1 tping 100 60 3333::8 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 2.2.2.5 vrf v1 r2 tping 100 60 2222::5 vrf v1 r2 tping 100 60 2.2.2.6 vrf v1 r2 tping 100 60 2222::6 vrf v1 r2 tping 100 60 2.2.2.7 vrf v1 r2 tping 100 60 2222::7 vrf v1 r2 tping 100 60 2.2.2.8 vrf v1 r2 tping 100 60 2222::8 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3333::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 3.3.3.5 vrf v1 r1 tping 100 60 3333::5 vrf v1 r1 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3333::6 vrf v1 r1 tping 100 60 3.3.3.7 vrf v1 r1 tping 100 60 3333::7 vrf v1 r1 tping 100 60 3.3.3.8 vrf v1 r1 tping 100 60 3333::8 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 2222::1 vrf v1 r2 tping 0 60 2.2.2.2 vrf v1 r2 tping 0 60 2222::2 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 2222::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 2222::4 vrf v1 r2 tping 0 60 2.2.2.5 vrf v1 r2 tping 0 60 2222::5 vrf v1 r2 tping 0 60 2.2.2.6 vrf v1 r2 tping 0 60 2222::6 vrf v1 r2 tping 0 60 2.2.2.7 vrf v1 r2 tping 0 60 2222::7 vrf v1 r2 tping 0 60 2.2.2.8 vrf v1 r2 tping 0 60 2222::8 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3333::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 3.3.3.5 vrf v1 r1 tping 100 60 3333::5 vrf v1 r1 tping 100 60 3.3.3.6 vrf v1 r1 tping 100 60 3333::6 vrf v1 r1 tping 100 60 3.3.3.7 vrf v1 r1 tping 100 60 3333::7 vrf v1 r1 tping 100 60 3.3.3.8 vrf v1 r1 tping 100 60 3333::8 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2222::1 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::4 vrf v1 r2 tping 100 60 2.2.2.5 vrf v1 r2 tping 100 60 2222::5 vrf v1 r2 tping 100 60 2.2.2.6 vrf v1 r2 tping 100 60 2222::6 vrf v1 r2 tping 100 60 2.2.2.7 vrf v1 r2 tping 100 60 2222::7 vrf v1 r2 tping 100 60 2.2.2.8 vrf v1 r2 tping 100 60 2222::8 vrf v1 freeRtr-24.11.16/cfg/rout-bgp311.tst000066400000000000000000000047141471627602100166520ustar00rootroot00000000000000description ebgp with nexthop tracking interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-policy rm1 pass exit route-policy rm2 set aspath 3 3 3 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 nexthop route-policy rm1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in rm2 neigh 1.1.1.2 route-policy-out rm2 neigh 1.1.1.6 remote-as 2 neigh 1.1.1.6 fall-over red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 nexthop route-policy rm1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-in rm2 neigh 1234:1::2 route-policy-out rm2 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 fall-over red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-policy rm1 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 nexthop route-policy rm1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 fall-over red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 nexthop route-policy rm1 neigh 1234:1::1 remote-as 1 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 fall-over red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp312.tst000066400000000000000000000046241471627602100166530ustar00rootroot00000000000000description ibgp with nexthop tracking interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-policy rm1 pass exit route-policy rm2 set aspath 3 3 3 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 nexthop route-policy rm1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-policy-in rm2 neigh 1.1.1.2 route-policy-out rm2 neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 fall-over red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 nexthop route-policy rm1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-policy-in rm2 neigh 1234:1::2 route-policy-out rm2 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 fall-over red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit route-policy rm1 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 nexthop route-policy rm1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 fall-over red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 nexthop route-policy rm1 neigh 1234:1::1 remote-as 1 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 fall-over red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp313.tst000066400000000000000000000106721471627602100166540ustar00rootroot00000000000000description bgp with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp local-as 1 bier 256 10 1 3 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 bier red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 1 bier 256 10 1 3 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 bier red conn exit int tun1 tun sou lo0 tun dest 9.9.9.9 tun doma 2.2.2.4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo0 tun dest 9999::9 tun doma 4321::4 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp local-as 2 bier 256 10 2 3 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 bier neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 bier red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 2 bier 256 10 2 3 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 bier neigh 1234:2::2 remote-as 3 neigh 1234:2::2 bier red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp local-as 3 bier 256 10 3 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 bier neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 bier red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 3 bier 256 10 3 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 bier neigh 1234:3::2 remote-as 4 neigh 1234:3::2 bier red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp local-as 4 bier 256 10 4 3 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 bier red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 4 bier 256 10 4 3 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 bier red conn exit int tun1 tun sou lo0 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo0 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.4 vrf v1 sou lo0 r4 tping 0 20 2.2.2.1 vrf v1 sou lo0 r1 tping 0 20 4321::4 vrf v1 sou lo0 r4 tping 0 20 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 4321::1112 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 4321::1111 vrf v1 freeRtr-24.11.16/cfg/rout-bgp314.tst000066400000000000000000000116201471627602100166470ustar00rootroot00000000000000description bgp routemap filtering with rd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-map rm1 sequence 10 act deny sequence 10 match rd 1:3 sequence 20 act perm exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp315.tst000066400000000000000000000115731471627602100166570ustar00rootroot00000000000000description bgp routepolicy filtering with rd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-policy rm1 if rd 1:3 drop else pass enif exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 vpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 vpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp316.tst000066400000000000000000000120271471627602100166530ustar00rootroot00000000000000description bgp routemap filtering with rd with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-map rm1 sequence 10 act deny sequence 10 match rd 1:3 sequence 20 act perm exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 soft-reconfig neigh 2.2.2.3 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 soft-reconfig neigh 4321::3 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp317.tst000066400000000000000000000120021471627602100166450ustar00rootroot00000000000000description bgp routepolicy filtering with rd with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-policy rm1 if rd 1:3 drop else pass enif exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 soft-reconfig neigh 2.2.2.3 vpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 soft-reconfig neigh 4321::3 vpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp318.tst000066400000000000000000000151241471627602100166560ustar00rootroot00000000000000description bgp routemap filtering with afi addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit route-map rm1 sequence 10 act deny sequence 10 match safi 128 sequence 10 match rd 1:3 sequence 20 act deny sequence 20 match safi 65 sequence 20 match rd 1:2 sequence 30 act perm exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 vpn-route-map-in rm1 neigh 2.2.2.3 evpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 vpn-route-map-in rm1 neigh 4321::3 evpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 0 60 3333::2 vrf v1 r1 tping 0 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 0 60 3333::1 vrf v1 r3 tping 0 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp319.tst000066400000000000000000000150741471627602100166630ustar00rootroot00000000000000description bgp routepolicy filtering with afi addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit route-policy rm1 if safi 128 if rd 1:3 drop else pass enif elsif safi 65 if rd 1:2 drop else pass enif else pass enif exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 vpn-route-policy-in rm1 neigh 2.2.2.3 evpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 vpn-route-policy-in rm1 neigh 4321::3 evpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 0 60 3333::2 vrf v1 r1 tping 0 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 0 60 3333::1 vrf v1 r3 tping 0 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp320.tst000066400000000000000000000153331471627602100166510ustar00rootroot00000000000000description bgp routemap filtering with afi with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit route-map rm1 sequence 10 act deny sequence 10 match safi 128 sequence 10 match rd 1:3 sequence 20 act deny sequence 20 match safi 65 sequence 20 match rd 1:2 sequence 30 act perm exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 soft-reconfig neigh 2.2.2.3 vpn-route-map-in rm1 neigh 2.2.2.3 evpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 soft-reconfig neigh 4321::3 vpn-route-map-in rm1 neigh 4321::3 evpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 0 60 3333::2 vrf v1 r1 tping 0 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 0 60 3333::1 vrf v1 r3 tping 0 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp321.tst000066400000000000000000000153031471627602100166470ustar00rootroot00000000000000description bgp routepolicy filtering with afi with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit route-policy rm1 if safi 128 if rd 1:3 drop else pass enif elsif safi 65 if rd 1:2 drop else pass enif else pass enif exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 soft-reconfig neigh 2.2.2.3 vpn-route-policy-in rm1 neigh 2.2.2.3 evpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 soft-reconfig neigh 4321::3 vpn-route-policy-in rm1 neigh 4321::3 evpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:1 rt-both 1:1 mac-learn private exit bridge 3 rd 1:2 rt-both 1:2 mac-learn private exit bridge 4 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpnuni vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 0 60 9.9.3.3 vrf v3 r3 tping 0 60 9.9.3.1 vrf v3 r1 tping 0 60 9993::3 vrf v3 r3 tping 0 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 0 60 3333::2 vrf v1 r1 tping 0 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 0 60 3333::1 vrf v1 r3 tping 0 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp322.tst000066400000000000000000000026561471627602100166570ustar00rootroot00000000000000description bgp hard reset addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send clear ipv4 bgp 1 peer 1.1.1.2 hard r1 send clear ipv6 bgp 1 peer 1234:1::2 hard r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp323.tst000066400000000000000000000030711471627602100166500ustar00rootroot00000000000000description bgp hard reset with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send clear ipv4 bgp 1 peer 1.1.1.2 hard r1 send clear ipv6 bgp 1 peer 1234:1::2 hard r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp324.tst000066400000000000000000000026651471627602100166610ustar00rootroot00000000000000description bgp soft in reset addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send clear ipv4 bgp 1 peer 1.1.1.2 in uni r1 send clear ipv6 bgp 1 peer 1234:1::2 in uni r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp325.tst000066400000000000000000000031001471627602100166430ustar00rootroot00000000000000description bgp soft in reset with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send clear ipv4 bgp 1 peer 1.1.1.2 in uni r1 send clear ipv6 bgp 1 peer 1234:1::2 in uni r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp326.tst000066400000000000000000000026701471627602100166570ustar00rootroot00000000000000description bgp soft out reset addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send clear ipv4 bgp 1 peer 1.1.1.2 out uni r1 send clear ipv6 bgp 1 peer 1234:1::2 out uni r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp327.tst000066400000000000000000000031031471627602100166500ustar00rootroot00000000000000description bgp soft out reset with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send clear ipv4 bgp 1 peer 1.1.1.2 out uni r1 send clear ipv6 bgp 1 peer 1234:1::2 out uni r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp328.tst000066400000000000000000000026241471627602100166600ustar00rootroot00000000000000description unicast+srte over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni srte local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni srte local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni srte local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni srte local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp329.tst000066400000000000000000000030371471627602100166600ustar00rootroot00000000000000description unicast+srte over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni srte local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni srte local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni srte local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni srte local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp330.tst000066400000000000000000000034111471627602100166440ustar00rootroot00000000000000description unicast+srte over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni srte local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni srte neigh 1.1.1.2 additional-path-tx uni srte red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni srte local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni srte neigh 1234:1::2 additional-path-tx uni srte red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni srte local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni srte neigh 1.1.1.1 additional-path-tx uni srte red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni srte local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni srte neigh 1234:1::1 additional-path-tx uni srte red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp331.tst000066400000000000000000000302621471627602100166510ustar00rootroot00000000000000description bgp interas vpn with asbr peering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 1234:3::2 remote-as 2 neigh 1234:3::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.3 neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.3 neigh 1234:3::1 remote-as 1 neigh 1234:3::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 2 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3333::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3333::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3333::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3333::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3333::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3333::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3333::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3333::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3333::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3333::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3333::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3333::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3333::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3333::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3333::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3333::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3333::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3333::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3333::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3333::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3333::6 vrf v2 sou lo1 freeRtr-24.11.16/cfg/rout-bgp332.tst000066400000000000000000000335411471627602100166550ustar00rootroot00000000000000description bgp interas vpn with rr peering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.2 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.2 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.6 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.6 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.6 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.1 next-hop-unch neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect neigh 2.2.2.3 next-hop-unch neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::1 next-hop-unch neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflect neigh 4321::3 next-hop-unch neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp4 2 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.10 remote-as 2 red conn red stat exit router bgp6 2 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.3 neigh 1234:3::2 remote-as 2 red conn red stat exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.3 neigh 1.1.1.9 remote-as 1 red conn red stat exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.3 neigh 1234:3::1 remote-as 1 red conn red stat exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.13 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.13 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.13 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 route-reflect neigh 2.2.2.4 next-hop-unch neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 route-reflect neigh 2.2.2.6 next-hop-unch neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 route-reflect neigh 4321::4 next-hop-unch neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 route-reflect neigh 4321::6 next-hop-unch neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.17 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.17 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.17 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3333::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3333::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3333::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3333::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3333::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3333::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3333::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3333::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3333::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3333::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3333::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3333::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3333::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3333::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3333::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3333::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3333::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3333::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3333::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3333::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3333::6 vrf v2 sou lo1 freeRtr-24.11.16/cfg/rout-bgp333.tst000066400000000000000000000305131471627602100166520ustar00rootroot00000000000000description bgp interas othervpn with asbr peering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflect exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 2 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234:3::2 remote-as 2 neigh 1234:3::2 send-comm both exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.3 neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 2 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.3 neigh 1234:3::1 remote-as 1 neigh 1234:3::1 send-comm both exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 route-reflect exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3333::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3333::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3333::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3333::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3333::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3333::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3333::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3333::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3333::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3333::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3333::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3333::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3333::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3333::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3333::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3333::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3333::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3333::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3333::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3333::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3333::6 vrf v2 sou lo1 freeRtr-24.11.16/cfg/rout-bgp334.tst000066400000000000000000000337221471627602100166600ustar00rootroot00000000000000description bgp interas othervpn with rr peering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.2 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.2 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.6 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.6 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.6 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.1 next-hop-unch neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect neigh 2.2.2.3 next-hop-unch neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::1 next-hop-unch neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflect neigh 4321::3 next-hop-unch neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 next-hop-unch exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both exit router bgp4 2 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.10 remote-as 2 red conn red stat exit router bgp6 2 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.3 neigh 1234:3::2 remote-as 2 red conn red stat exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.3 neigh 1.1.1.9 remote-as 1 red conn red stat exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.3 neigh 1234:3::1 remote-as 1 red conn red stat exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.13 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.13 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.13 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 route-reflect neigh 2.2.2.4 next-hop-unch neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 route-reflect neigh 2.2.2.6 next-hop-unch neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 route-reflect neigh 4321::4 next-hop-unch neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 route-reflect neigh 4321::6 next-hop-unch neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 next-hop-unch exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.17 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.17 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.17 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3333::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3333::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3333::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3333::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3333::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3333::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3333::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3333::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3333::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3333::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3333::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3333::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3333::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3333::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3333::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3333::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3333::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3333::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3333::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3333::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3333::6 vrf v2 sou lo1 freeRtr-24.11.16/cfg/rout-bgp335.tst000066400000000000000000000321331471627602100166540ustar00rootroot00000000000000description bgp interas csc vpn with asbr peering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit int pweth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 pseudo v2 lo1 pweompls 3.3.3.6 1234 exit int pweth2 vrf for v1 ipv4 addr 5.5.5.1 255.255.255.0 pseudo v2 lo1 pweompls 3333::6 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 1.1.1.10 255.255.255.255 1.1.1.10 mplsimp ipv6 route v1 1234:3::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 mplsimp router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 1234:3::2 remote-as 2 neigh 1234:3::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 1.1.1.9 255.255.255.255 1.1.1.9 mplsimp ipv6 route v1 1234:3::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 mplsimp router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.3 neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.3 neigh 1234:3::1 remote-as 1 neigh 1234:3::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 2 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit int pweth1 vrf for v1 ipv4 addr 4.4.4.6 255.255.255.0 pseudo v2 lo1 pweompls 3.3.3.1 1234 exit int pweth2 vrf for v1 ipv4 addr 5.5.5.6 255.255.255.0 pseudo v2 lo1 pweompls 3333::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3333::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3333::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3333::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3333::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3333::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3333::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3333::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3333::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3333::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3333::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3333::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3333::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3333::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3333::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3333::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3333::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3333::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3333::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3333::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3333::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3333::6 vrf v2 sou lo1 r1 tping 100 60 4.4.4.6 vrf v1 r6 tping 100 60 4.4.4.1 vrf v1 r1 tping 100 60 5.5.5.6 vrf v1 r6 tping 100 60 5.5.5.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp336.tst000066400000000000000000000347701471627602100166660ustar00rootroot00000000000000description bgp interas csc vpn with rr peering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.2 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.2 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.2 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit int pweth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 pseudo v2 lo1 pweompls 3.3.3.6 1234 exit int pweth2 vrf for v1 ipv4 addr 5.5.5.1 255.255.255.0 pseudo v2 lo1 pweompls 3333::6 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.6 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.6 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.6 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.1 next-hop-unch neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflect neigh 2.2.2.3 next-hop-unch neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::1 next-hop-unch neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflect neigh 4321::3 next-hop-unch neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp4 2 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.10 remote-as 2 red conn red stat exit router bgp6 2 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.3 neigh 1234:3::2 remote-as 2 red conn red stat exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.3 neigh 1.1.1.9 remote-as 1 red conn red stat exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.3 neigh 1234:3::1 remote-as 1 red conn red stat exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.13 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.13 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.13 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 route-reflect neigh 2.2.2.4 next-hop-unch neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 route-reflect neigh 2.2.2.6 next-hop-unch neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 route-reflect neigh 4321::4 next-hop-unch neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 route-reflect neigh 4321::6 next-hop-unch neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 next-hop-unch afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.17 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.17 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.17 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit int pweth1 vrf for v1 ipv4 addr 4.4.4.6 255.255.255.0 pseudo v2 lo1 pweompls 3.3.3.1 1234 exit int pweth2 vrf for v1 ipv4 addr 5.5.5.6 255.255.255.0 pseudo v2 lo1 pweompls 3333::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3333::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3333::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3333::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3333::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3333::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3333::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3333::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3333::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3333::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3333::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3333::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3333::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3333::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3333::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3333::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3333::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3333::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3333::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3333::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3333::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3333::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3333::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3333::6 vrf v2 sou lo1 r1 tping 100 60 4.4.4.6 vrf v1 r6 tping 100 60 4.4.4.1 vrf v1 r1 tping 100 60 5.5.5.6 vrf v1 r6 tping 100 60 5.5.5.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp337.tst000066400000000000000000000114751471627602100166640ustar00rootroot00000000000000description bgp dual core vpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:0 label-mode per-prefix exit vrf def v3 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v2 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp6 2 exit router bgp4 2 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.3 remote-as 2 neigh 2.2.2.3 update lo1 neigh 2.2.2.3 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp4 1 exit router bgp6 2 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::3 remote-as 2 neigh 4321::3 update lo1 neigh 4321::3 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp6 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v2 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:2 rt-both 1:2 exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v2 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo1 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.3 neigh 4321::2 remote-as 2 neigh 4321::2 update lo1 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r3 tping 100 60 2.2.2.2 vrf v2 sou lo1 r3 tping 100 60 4321::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 freeRtr-24.11.16/cfg/rout-bgp338.tst000066400000000000000000000126171471627602100166640ustar00rootroot00000000000000description bgp dual core csc vpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit int pweth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 pseudo v3 lo2 pweompls 3.3.3.3 1234 exit int pweth2 vrf for v1 ipv4 addr 5.5.5.1 255.255.255.0 pseudo v3 lo2 pweompls 3333::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:0 label-mode per-prefix exit vrf def v3 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v2 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp4 2 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp6 2 exit router bgp4 2 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.3 remote-as 2 neigh 2.2.2.3 update lo1 neigh 2.2.2.3 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp4 1 exit router bgp6 2 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::3 remote-as 2 neigh 4321::3 update lo1 neigh 4321::3 send-comm both afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 red bgp6 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v2 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:2 rt-both 1:2 label-mode per-prefix exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v2 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v2 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo1 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v2 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.3 neigh 4321::2 remote-as 2 neigh 4321::2 update lo1 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit int pweth1 vrf for v2 ipv4 addr 4.4.4.3 255.255.255.0 pseudo v3 lo2 pweompls 3.3.3.1 1234 exit int pweth2 vrf for v2 ipv4 addr 5.5.5.3 255.255.255.0 pseudo v3 lo2 pweompls 3333::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r3 tping 100 60 2.2.2.2 vrf v2 sou lo1 r3 tping 100 60 4321::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 4.4.4.3 vrf v1 r3 tping 100 60 4.4.4.1 vrf v2 r1 tping 100 60 5.5.5.3 vrf v1 r3 tping 100 60 5.5.5.1 vrf v2 freeRtr-24.11.16/cfg/rout-bgp339.tst000066400000000000000000000114631471627602100166630ustar00rootroot00000000000000description bgp hub and spoke vpn multiple rt import addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-export 1:1 rt-import 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-export 1:2 rt-import 1:1 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-export 1:3 rt-import 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 0 60 3.3.3.3 vrf v3 sou lo2 r1 tping 0 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 0 60 3.3.3.1 vrf v3 sou lo2 r3 tping 0 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 freeRtr-24.11.16/cfg/rout-bgp340.tst000066400000000000000000000114631471627602100166530ustar00rootroot00000000000000description bgp hub and spoke vpn multiple rt export addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-export 1:2 rt-import 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-export 1:1 1:3 rt-import 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-export 1:2 rt-import 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 0 60 3.3.3.3 vrf v3 sou lo2 r1 tping 0 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 0 60 3.3.3.1 vrf v3 sou lo2 r3 tping 0 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 freeRtr-24.11.16/cfg/rout-bgp341.tst000066400000000000000000000122121471627602100166450ustar00rootroot00000000000000description bgp vpn with export list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list p4 permit 3.3.3.0/24 ge 32 le 32 exit prefix-list p6 permit 3333::/64 ge 128 le 128 exit vrf def v3 rd 1:3 rt-both 1:3 export4list p4 export6list p6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r2 tping 0 60 3.3.3.1 vrf v3 sou lo3 r2 tping 0 60 3333::1 vrf v3 sou lo3 r2 tping 0 60 3.3.3.3 vrf v3 sou lo3 r2 tping 0 60 3333::3 vrf v3 sou lo3 freeRtr-24.11.16/cfg/rout-bgp342.tst000066400000000000000000000122161471627602100166520ustar00rootroot00000000000000description bgp vpn with import list addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list p4 permit 3.3.3.0/24 ge 32 le 32 exit prefix-list p6 permit 3333::/64 ge 128 le 128 exit vrf def v3 rd 1:3 rt-both 1:3 import4list p4 import6list p6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r2 tping 0 60 3.3.3.1 vrf v3 sou lo3 r2 tping 0 60 3333::1 vrf v3 sou lo3 r2 tping 100 60 3.3.3.3 vrf v3 sou lo3 r2 tping 100 60 3333::3 vrf v3 sou lo3 freeRtr-24.11.16/cfg/rout-bgp343.tst000066400000000000000000000122251471627602100166530ustar00rootroot00000000000000description bgp vpn with export map addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit route-map rm4 match network 3.3.3.0/24 ge 32 le 32 exit route-map rm6 match network 3333::/64 ge 128 le 128 exit vrf def v3 rd 1:3 rt-both 1:3 export4map rm4 export6map rm6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r2 tping 0 60 3.3.3.1 vrf v3 sou lo3 r2 tping 0 60 3333::1 vrf v3 sou lo3 r2 tping 0 60 3.3.3.3 vrf v3 sou lo3 r2 tping 0 60 3333::3 vrf v3 sou lo3 freeRtr-24.11.16/cfg/rout-bgp344.tst000066400000000000000000000122311471627602100166510ustar00rootroot00000000000000description bgp vpn with import map addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit route-map rm4 match network 3.3.3.0/24 ge 32 le 32 exit route-map rm6 match network 3333::/64 ge 128 le 128 exit vrf def v3 rd 1:3 rt-both 1:3 import4map rm4 import6map rm6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r2 tping 0 60 3.3.3.1 vrf v3 sou lo3 r2 tping 0 60 3333::1 vrf v3 sou lo3 r2 tping 100 60 3.3.3.3 vrf v3 sou lo3 r2 tping 100 60 3333::3 vrf v3 sou lo3 freeRtr-24.11.16/cfg/rout-bgp345.tst000066400000000000000000000122721471627602100166570ustar00rootroot00000000000000description bgp vpn with export policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit route-policy rp4 if network 3.3.3.0/24 ge 32 le 32 pass enif exit route-policy rp6 if network 3333::/64 ge 128 le 128 pass enif exit vrf def v3 rd 1:3 rt-both 1:3 export4policy rp4 export6policy rp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r2 tping 0 60 3.3.3.1 vrf v3 sou lo3 r2 tping 0 60 3333::1 vrf v3 sou lo3 r2 tping 0 60 3.3.3.3 vrf v3 sou lo3 r2 tping 0 60 3333::3 vrf v3 sou lo3 freeRtr-24.11.16/cfg/rout-bgp346.tst000066400000000000000000000122761471627602100166640ustar00rootroot00000000000000description bgp vpn with import policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit route-policy rp4 if network 3.3.3.0/24 ge 32 le 32 pass enif exit route-policy rp6 if network 3333::/64 ge 128 le 128 pass enif exit vrf def v3 rd 1:3 rt-both 1:3 import4policy rp4 import6policy rp6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflector neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 route-reflector neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 route-reflector afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v3 sou lo2 r1 tping 100 60 3333::2 vrf v3 sou lo2 r1 tping 100 60 3.3.3.3 vrf v3 sou lo2 r1 tping 100 60 3333::3 vrf v3 sou lo2 r2 tping 100 60 3.3.3.1 vrf v3 sou lo2 r2 tping 100 60 3333::1 vrf v3 sou lo2 r2 tping 100 60 3.3.3.3 vrf v3 sou lo2 r2 tping 100 60 3333::3 vrf v3 sou lo2 r3 tping 100 60 3.3.3.1 vrf v3 sou lo2 r3 tping 100 60 3333::1 vrf v3 sou lo2 r3 tping 100 60 3.3.3.2 vrf v3 sou lo2 r3 tping 100 60 3333::2 vrf v3 sou lo2 r2 tping 0 60 3.3.3.1 vrf v3 sou lo3 r2 tping 0 60 3333::1 vrf v3 sou lo3 r2 tping 100 60 3.3.3.3 vrf v3 sou lo3 r2 tping 100 60 3333::3 vrf v3 sou lo3 freeRtr-24.11.16/cfg/rout-bgp347.tst000066400000000000000000000066141471627602100166640ustar00rootroot00000000000000description vpns over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp348.tst000066400000000000000000000050261471627602100166610ustar00rootroot00000000000000description evpn/pbb over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp349.tst000066400000000000000000000051731471627602100166650ustar00rootroot00000000000000description evpn/cmac over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp350.tst000066400000000000000000000025311471627602100166500ustar00rootroot00000000000000description unicast+olab over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni olab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp351.tst000066400000000000000000000041061471627602100166510ustar00rootroot00000000000000description unicast+olab over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni olab local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni olab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni olab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflect neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp352.tst000066400000000000000000000027631471627602100166610ustar00rootroot00000000000000description unicast+olab over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp353.tst000066400000000000000000000042371471627602100166600ustar00rootroot00000000000000description unicast+olab over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni olab local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni olab local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-server neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp354.tst000066400000000000000000000034211471627602100166530ustar00rootroot00000000000000description olab over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp355.tst000066400000000000000000000067041471627602100166630ustar00rootroot00000000000000description vpns over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp356.tst000066400000000000000000000051161471627602100166600ustar00rootroot00000000000000description evpn/pbb over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp357.tst000066400000000000000000000052631471627602100166640ustar00rootroot00000000000000description evpn/cmac over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp358.tst000066400000000000000000000035111471627602100166570ustar00rootroot00000000000000description olab over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp359.tst000066400000000000000000000104111471627602100166550ustar00rootroot00000000000000description vpns over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp360.tst000066400000000000000000000067171471627602100166630ustar00rootroot00000000000000description evpn/pbb over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp361.tst000066400000000000000000000070651471627602100166610ustar00rootroot00000000000000description evpn/cmac over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp362.tst000066400000000000000000000050021471627602100166470ustar00rootroot00000000000000description olab over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address olab local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp363.tst000066400000000000000000000105041471627602100166530ustar00rootroot00000000000000description vpns over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.3 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp364.tst000066400000000000000000000070121471627602100166540ustar00rootroot00000000000000description evpn/pbb over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp365.tst000066400000000000000000000071601471627602100166610ustar00rootroot00000000000000description evpn/cmac over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp366.tst000066400000000000000000000050751471627602100166650ustar00rootroot00000000000000description olab over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp367.tst000066400000000000000000000105421471627602100166610ustar00rootroot00000000000000description vpns over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 segrou afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.3 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 segrou afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp368.tst000066400000000000000000000070501471627602100166620ustar00rootroot00000000000000description evpn/pbb over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp369.tst000066400000000000000000000072161471627602100166670ustar00rootroot00000000000000description evpn/cmac over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp370.tst000066400000000000000000000051331471627602100166530ustar00rootroot00000000000000description olab over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp371.tst000066400000000000000000000070221471627602100166530ustar00rootroot00000000000000description vpns over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp372.tst000066400000000000000000000052341471627602100166570ustar00rootroot00000000000000description evpn/pbb over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp373.tst000066400000000000000000000054011471627602100166540ustar00rootroot00000000000000description evpn/cmac over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp374.tst000066400000000000000000000036271471627602100166650ustar00rootroot00000000000000description olab over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp375.tst000066400000000000000000000074431471627602100166660ustar00rootroot00000000000000description vpns over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx vpnuni ovpnuni neigh 1.1.1.2 additional-path-tx vpnuni ovpnuni afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 segrou neigh 1234::2 additional-path-rx vpnuni ovpnuni neigh 1234::2 additional-path-tx vpnuni ovpnuni afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx vpnuni ovpnuni neigh 1.1.1.1 additional-path-tx vpnuni ovpnuni afi-vrf v3 ena afi-vrf v3 srv6 tun1 afi-vrf v3 red conn afi-ovrf v3 ena afi-ovrf v3 srv6 tun1 afi-ovrf v3 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 segrou neigh 1234::1 additional-path-rx vpnuni ovpnuni neigh 1234::1 additional-path-tx vpnuni ovpnuni afi-vrf v2 ena afi-vrf v2 srv6 tun1 afi-vrf v2 red conn afi-vrf v4 ena afi-vrf v4 srv6 tun1 afi-vrf v4 red conn afi-ovrf v2 ena afi-ovrf v2 srv6 tun1 afi-ovrf v2 red conn afi-ovrf v4 ena afi-ovrf v4 srv6 tun1 afi-ovrf v4 red conn exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 9.9.2.3 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp376.tst000066400000000000000000000055351471627602100166670ustar00rootroot00000000000000description evpn/pbb over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx evpn neigh 1.1.1.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 additional-path-rx evpn neigh 1234::2 additional-path-tx evpn afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx evpn neigh 1.1.1.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 additional-path-rx evpn neigh 1234::1 additional-path-tx evpn afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp377.tst000066400000000000000000000057021471627602100166640ustar00rootroot00000000000000description evpn/cmac over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx evpn neigh 1.1.1.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 additional-path-rx evpn neigh 1234::2 additional-path-tx evpn afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx evpn neigh 1.1.1.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap cmac exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 additional-path-rx evpn neigh 1234::1 additional-path-tx evpn afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap cmac exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp378.tst000066400000000000000000000041301471627602100166570ustar00rootroot00000000000000description olab over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx olab neigh 1.1.1.2 additional-path-tx olab afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 additional-path-rx olab neigh 1234::2 additional-path-tx olab afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx olab neigh 1.1.1.1 additional-path-tx olab afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 additional-path-rx olab neigh 1234::1 additional-path-tx olab afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp379.tst000066400000000000000000000107021471627602100166620ustar00rootroot00000000000000description evpn/vpws over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r1 output show ipv4 bgp 1 sum r1 output show ipv6 bgp 1 sum r1 output show ipv4 bgp 1 evpn dat r1 output show ipv6 bgp 1 evpn dat r1 output show ipv4 route v1 r1 output show ipv6 route v1 r1 output show bridge 1 r1 output show bridge 2 r1 output show bridge 3 r1 output show bridge 4 output ../binTmp/rout-bgp-evpn4.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
here is the bridge:
show:6
here is the bridge:
show:7
here is the bridge:
show:8
here is the bridge:
show:9
! freeRtr-24.11.16/cfg/rout-bgp380.tst000066400000000000000000000056201471627602100166550ustar00rootroot00000000000000description evpn/vpws over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp381.tst000066400000000000000000000075771471627602100166730ustar00rootroot00000000000000description evpn/vpws over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn neigh 2.2.2.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn neigh 4321::2 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn neigh 2.2.2.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn neigh 4321::1 additional-path-tx evpn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp382.tst000066400000000000000000000112521471627602100166550ustar00rootroot00000000000000description evpn/vpws over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp383.tst000066400000000000000000000072261471627602100166640ustar00rootroot00000000000000description evpn/vpws over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp384.tst000066400000000000000000000115201471627602100166550ustar00rootroot00000000000000description evpn/vpws over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both neigh 1234:1::3 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp385.tst000066400000000000000000000121701471627602100166600ustar00rootroot00000000000000description ethersite evpn/vpws over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn exit bridge 4 rd 1:4 rt-both 1:4 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 3 exit int eth2.12 bridge-group 4 exit int bvi1 bridge-group 3 exit int bvi2 bridge-group 4 exit int bvi3 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn exit bridge 4 rd 2:4 rt-both 1:4 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2.11 bridge-group 3 exit int eth2.12 bridge-group 4 exit int bvi1 bridge-group 3 exit int bvi2 bridge-group 4 exit int bvi3 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.0 ipv6 addr 3333::3 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.3 255.255.255.0 ipv6 addr 4444::3 ffff:: exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.0 ipv6 addr 3333::4 ffff:: exit int eth1.12 vrf for v1 ipv4 addr 4.4.4.4 255.255.255.0 ipv6 addr 4444::4 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r1 tping 100 60 4.4.4.3 vrf v1 r1 tping 100 60 4444::3 vrf v1 r1 tping 100 60 3.3.3.4 vrf v1 r1 tping 100 60 3333::4 vrf v1 r1 tping 100 60 4.4.4.4 vrf v1 r1 tping 100 60 4444::4 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 r2 tping 100 60 3.3.3.3 vrf v1 r2 tping 100 60 3333::3 vrf v1 r2 tping 100 60 4.4.4.3 vrf v1 r2 tping 100 60 4444::3 vrf v1 r2 tping 100 60 3.3.3.4 vrf v1 r2 tping 100 60 3333::4 vrf v1 r2 tping 100 60 4.4.4.4 vrf v1 r2 tping 100 60 4444::4 vrf v1 r3 tping 100 60 3.3.3.1 vrf v1 r3 tping 100 60 3333::1 vrf v1 r3 tping 100 60 4.4.4.1 vrf v1 r3 tping 100 60 4444::1 vrf v1 r3 tping 100 60 3.3.3.2 vrf v1 r3 tping 100 60 3333::2 vrf v1 r3 tping 100 60 4.4.4.2 vrf v1 r3 tping 100 60 4444::2 vrf v1 r3 tping 100 60 3.3.3.4 vrf v1 r3 tping 100 60 3333::4 vrf v1 r3 tping 100 60 4.4.4.4 vrf v1 r3 tping 100 60 4444::4 vrf v1 r4 tping 100 60 3.3.3.1 vrf v1 r4 tping 100 60 3333::1 vrf v1 r4 tping 100 60 4.4.4.1 vrf v1 r4 tping 100 60 4444::1 vrf v1 r4 tping 100 60 3.3.3.2 vrf v1 r4 tping 100 60 3333::2 vrf v1 r4 tping 100 60 4.4.4.2 vrf v1 r4 tping 100 60 4444::2 vrf v1 r4 tping 100 60 3.3.3.3 vrf v1 r4 tping 100 60 3333::3 vrf v1 r4 tping 100 60 4.4.4.3 vrf v1 r4 tping 100 60 4444::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp386.tst000066400000000000000000000072761471627602100166740ustar00rootroot00000000000000description evpn/vpws over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp387.tst000066400000000000000000000100051471627602100166550ustar00rootroot00000000000000description unicast+evpn/vpws over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp388.tst000066400000000000000000000102141471627602100166600ustar00rootroot00000000000000description unicast+evpn/vpws over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 soft-reconfig red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 soft-reconfig red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp389.tst000066400000000000000000000105551471627602100166710ustar00rootroot00000000000000description unicast+evpn/vpws over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 additional-path-rx evpn uni neigh 2.2.2.2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 additional-path-rx evpn uni neigh 4321::2 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 additional-path-rx evpn uni neigh 2.2.2.1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 additional-path-rx evpn uni neigh 4321::1 additional-path-tx evpn uni red conn afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp390.tst000066400000000000000000000075501471627602100166620ustar00rootroot00000000000000description evpn/vpws over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit bridge 3 rd 2:3 rt-both 1:3 mac-learn private exit bridge 4 rd 2:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 3 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 101 encap vpws afi-evpn 102 bridge 4 afi-evpn 102 update lo0 afi-evpn 102 encap vpws exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp391.tst000066400000000000000000000051731471627602100166620ustar00rootroot00000000000000description evpn/vpws over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp392.tst000066400000000000000000000052631471627602100166630ustar00rootroot00000000000000description evpn/vpws over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp393.tst000066400000000000000000000070651471627602100166660ustar00rootroot00000000000000description evpn/vpws over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp394.tst000066400000000000000000000071601471627602100166630ustar00rootroot00000000000000description evpn/vpws over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp395.tst000066400000000000000000000072161471627602100166660ustar00rootroot00000000000000description evpn/vpws over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 pmsi neigh 1.1.1.3 segrou afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 send-comm both neigh 1234::3 pmsi neigh 1234::3 segrou afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp396.tst000066400000000000000000000054011471627602100166610ustar00rootroot00000000000000description evpn/vpws over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp397.tst000066400000000000000000000057021471627602100166660ustar00rootroot00000000000000description evpn/vpws over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 pmsi neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx evpn neigh 1.1.1.2 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 send-comm both neigh 1234::2 pmsi neigh 1234::2 segrou neigh 1234::2 additional-path-rx evpn neigh 1234::2 additional-path-tx evpn afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit bridge 1 rd 2:1 rt-both 1:1 mac-learn private exit bridge 2 rd 2:2 rt-both 1:2 mac-learn private exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 pmsi neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx evpn neigh 1.1.1.1 additional-path-tx evpn afi-evpn 101 bridge 1 afi-evpn 101 srv6 tun1 afi-evpn 101 update eth1 afi-evpn 101 encap vpws exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 send-comm both neigh 1234::1 pmsi neigh 1234::1 segrou neigh 1234::1 additional-path-rx evpn neigh 1234::1 additional-path-tx evpn afi-evpn 102 bridge 2 afi-evpn 102 srv6 tun1 afi-evpn 102 update eth1 afi-evpn 102 encap vpws exit ! r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp398.tst000066400000000000000000000172611471627602100166720ustar00rootroot00000000000000description unified mpls with ldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.6 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::6 1234 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 next-hop-self neigh 1.1.1.10 remote-as 1 neigh 1.1.1.10 route-reflect neigh 1.1.1.10 next-hop-self red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 next-hop-self neigh 1234:3::2 remote-as 1 neigh 1234:3::2 route-reflect neigh 1234:3::2 next-hop-self red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.4 neigh 2.2.2.6 remote-as 1 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 next-hop-self neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 route-reflect neigh 1.1.1.9 next-hop-self red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.4 neigh 4321::6 remote-as 1 neigh 4321::6 update lo0 neigh 4321::6 next-hop-self neigh 1234:3::1 remote-as 1 neigh 1234:3::1 route-reflect neigh 1234:3::1 next-hop-self red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.6 neigh 2.2.2.4 remote-as 1 neigh 2.2.2.4 update lo0 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.6 neigh 4321::4 remote-as 1 neigh 4321::4 update lo0 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r6 tping 100 60 2.2.2.1 vrf v1 sou lo0 r6 tping 100 60 4321::1 vrf v1 sou lo0 r6 tping 100 60 2.2.2.3 vrf v1 sou lo0 r6 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r1 tping 100 60 2.2.2.6 vrf v1 sou lo0 r1 tping 100 60 4321::6 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.6 vrf v1 sou lo0 r3 tping 100 60 4321::6 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r6 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3.3.4.2 vrf v1 r6 tping 100 60 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp399.tst000066400000000000000000000163561471627602100166770ustar00rootroot00000000000000description unified mpls with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.6 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::6 1234 exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 next-hop-self neigh 1.1.1.10 remote-as 1 neigh 1.1.1.10 route-reflect neigh 1.1.1.10 next-hop-self red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 next-hop-self neigh 1234:3::2 remote-as 1 neigh 1234:3::2 route-reflect neigh 1234:3::2 next-hop-self red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.4 segrout 10 4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 segrout 10 4 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.4 neigh 2.2.2.6 remote-as 1 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 next-hop-self neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 route-reflect neigh 1.1.1.9 next-hop-self red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.4 neigh 4321::6 remote-as 1 neigh 4321::6 update lo0 neigh 4321::6 next-hop-self neigh 1234:3::1 remote-as 1 neigh 1234:3::1 route-reflect neigh 1234:3::1 next-hop-self red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.5 segrout 10 5 red conn exit router lsrp6 1 vrf v1 router 6.6.6.5 segrout 10 5 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.6 segrout 10 6 red conn exit router lsrp6 1 vrf v1 router 6.6.6.6 segrout 10 6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.6 neigh 2.2.2.4 remote-as 1 neigh 2.2.2.4 update lo0 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.6 neigh 4321::4 remote-as 1 neigh 4321::4 update lo0 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r6 tping 100 60 2.2.2.1 vrf v1 sou lo0 r6 tping 100 60 4321::1 vrf v1 sou lo0 r6 tping 100 60 2.2.2.3 vrf v1 sou lo0 r6 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r1 tping 100 60 2.2.2.6 vrf v1 sou lo0 r1 tping 100 60 4321::6 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.6 vrf v1 sou lo0 r3 tping 100 60 4321::6 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r6 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3.3.4.2 vrf v1 r6 tping 100 60 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp400.tst000066400000000000000000000074711471627602100166540ustar00rootroot00000000000000description ebgp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 label-pop neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 label-pop neigh 1234:2::2 remote-as 3 neigh 1234:2::2 label-pop red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 2.2.2.1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.3 vrf v1 sou lo0 r2 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp401.tst000066400000000000000000000101061471627602100166420ustar00rootroot00000000000000description ibgp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 label-pop red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 label-pop red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.11 vrf v1 sou lo0 r2 tping 0 60 2.2.2.13 vrf v1 sou lo0 r2 tping 0 60 4321::11 vrf v1 sou lo0 r2 tping 0 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp402.tst000066400000000000000000000103161471627602100166460ustar00rootroot00000000000000description bgp additional path with php labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop neigh 1.1.1.2 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop neigh 1234:1::2 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 label-pop neigh 1.1.1.1 additional-path-rx lab neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 label-pop neigh 1.1.1.6 additional-path-rx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 label-pop neigh 1234:1::1 additional-path-rx lab neigh 1234:2::2 remote-as 3 neigh 1234:2::2 label-pop neigh 1234:2::2 additional-path-rx lab red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 label-pop neigh 1.1.1.5 additional-path-rx lab neigh 1.1.1.5 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 label-pop neigh 1234:2::1 additional-path-tx lab neigh 1234:2::1 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 2.2.2.1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.3 vrf v1 sou lo0 r2 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp403.tst000066400000000000000000000072301471627602100166500ustar00rootroot00000000000000description ibgp rr with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.12 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::12 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo0 r1 tping 100 60 4321::12 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.11 vrf v1 sou lo0 r2 tping 100 60 2.2.2.13 vrf v1 sou lo0 r2 tping 100 60 4321::11 vrf v1 sou lo0 r2 tping 100 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r3 tping 100 60 2.2.2.12 vrf v1 sou lo0 r3 tping 100 60 4321::12 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp404.tst000066400000000000000000000057311471627602100166550ustar00rootroot00000000000000description confed bgp with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 confed neigh 1234::3 remote-as 3 neigh 1234::3 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp405.tst000066400000000000000000000056371471627602100166630ustar00rootroot00000000000000description bgp route server with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp406.tst000066400000000000000000000062231471627602100166540ustar00rootroot00000000000000description bgp soft-reconfig with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 soft-reconfig red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp407.tst000066400000000000000000000051351471627602100166560ustar00rootroot00000000000000description bgp remove private as in with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-map rm1 sequence 10 act perm match private clear private exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65534 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.6 remote-as 65534 neigh 1.1.1.6 route-map-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65534 neigh 1234:1::1 route-map-in rm1 neigh 1234:2::2 remote-as 65534 neigh 1234:2::2 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp408.tst000066400000000000000000000050721471627602100166570ustar00rootroot00000000000000description bgp remove private as out with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-map rm1 sequence 10 act perm match private clear private exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65534 neigh 1.1.1.1 route-map-out rm1 neigh 1.1.1.6 remote-as 65534 neigh 1.1.1.6 route-map-out rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65534 neigh 1234:1::1 route-map-out rm1 neigh 1234:2::2 remote-as 65534 neigh 1234:2::2 route-map-out rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp409.tst000066400000000000000000000051421471627602100166560ustar00rootroot00000000000000description bgp remove private as in with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-policy rm1 if private clear private pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65534 neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.6 remote-as 65534 neigh 1.1.1.6 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65534 neigh 1234:1::1 route-policy-in rm1 neigh 1234:2::2 remote-as 65534 neigh 1234:2::2 route-policy-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp410.tst000066400000000000000000000050771471627602100166550ustar00rootroot00000000000000description bgp remove private as out with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit route-policy rm1 if private clear private pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 65534 neigh 1.1.1.1 route-policy-out rm1 neigh 1.1.1.6 remote-as 65534 neigh 1.1.1.6 route-policy-out rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 65534 neigh 1234:1::1 route-policy-out rm1 neigh 1234:2::2 remote-as 65534 neigh 1234:2::2 route-policy-out rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 65534 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit ! r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp411.tst000066400000000000000000000110371471627602100166470ustar00rootroot00000000000000description bgp with srgb sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp local-as 1 segrout 10 1 base 100 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 1 segrout 10 1 base 200 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 segrout red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp local-as 2 segrout 10 2 base 100 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrout neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 2 segrout 10 2 base 200 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 segrout neigh 1234:2::2 remote-as 3 neigh 1234:2::2 segrout red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp local-as 3 segrout 10 3 base 100 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 segrout neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 3 segrout 10 3 base 200 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 segrout neigh 1234:3::2 remote-as 4 neigh 1234:3::2 segrout red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp local-as 4 segrout 10 4 base 100 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 4 segrout 10 4 base 200 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 segrout red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp412.tst000066400000000000000000000024401471627602100166460ustar00rootroot00000000000000description bgp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp413.tst000066400000000000000000000127221471627602100166530ustar00rootroot00000000000000description bgp ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.9 remote-as 3 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.9 remote-as 3 neigh 1.1.1.2 additional-path-tx uni neigh 1.1.1.9 additional-path-tx uni neigh 1.1.2.2 additional-path-tx uni neigh 1.1.2.9 additional-path-tx uni neigh 1.1.1.2 additional-path-rx uni neigh 1.1.1.9 additional-path-rx uni neigh 1.1.2.2 additional-path-rx uni neigh 1.1.2.9 additional-path-rx uni red conn ecmp exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:3::1 remote-as 3 neigh 1234:21::2 remote-as 2 neigh 1234:23::1 remote-as 3 neigh 1234:1::2 additional-path-tx uni neigh 1234:3::1 additional-path-tx uni neigh 1234:21::2 additional-path-tx uni neigh 1234:23::1 additional-path-tx uni neigh 1234:1::2 additional-path-rx uni neigh 1234:3::1 additional-path-rx uni neigh 1234:21::2 additional-path-rx uni neigh 1234:23::1 additional-path-rx uni red conn ecmp exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 neigh 1.1.2.1 remote-as 1 neigh 1.1.2.6 remote-as 3 neigh 1.1.1.1 additional-path-tx uni neigh 1.1.1.6 additional-path-tx uni neigh 1.1.2.1 additional-path-tx uni neigh 1.1.2.6 additional-path-tx uni neigh 1.1.1.1 additional-path-rx uni neigh 1.1.1.6 additional-path-rx uni neigh 1.1.2.1 additional-path-rx uni neigh 1.1.2.6 additional-path-rx uni red conn ecmp exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 neigh 1234:21::1 remote-as 1 neigh 1234:22::2 remote-as 3 neigh 1234:1::1 additional-path-tx uni neigh 1234:2::2 additional-path-tx uni neigh 1234:21::1 additional-path-tx uni neigh 1234:22::2 additional-path-tx uni neigh 1234:1::1 additional-path-rx uni neigh 1234:2::2 additional-path-rx uni neigh 1234:21::1 additional-path-rx uni neigh 1234:22::2 additional-path-rx uni red conn ecmp exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 1 neigh 1.1.2.5 remote-as 2 neigh 1.1.2.10 remote-as 1 neigh 1.1.1.5 additional-path-tx uni neigh 1.1.1.10 additional-path-tx uni neigh 1.1.2.5 additional-path-tx uni neigh 1.1.2.10 additional-path-tx uni neigh 1.1.1.5 additional-path-rx uni neigh 1.1.1.10 additional-path-rx uni neigh 1.1.2.5 additional-path-rx uni neigh 1.1.2.10 additional-path-rx uni red conn ecmp exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 1 neigh 1234:22::1 remote-as 2 neigh 1234:23::2 remote-as 1 neigh 1234:2::1 additional-path-tx uni neigh 1234:3::2 additional-path-tx uni neigh 1234:22::1 additional-path-tx uni neigh 1234:23::2 additional-path-tx uni neigh 1234:2::1 additional-path-rx uni neigh 1234:3::2 additional-path-rx uni neigh 1234:22::1 additional-path-rx uni neigh 1234:23::2 additional-path-rx uni red conn ecmp exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 freeRtr-24.11.16/cfg/rout-bgp414.tst000066400000000000000000000051331471627602100166520ustar00rootroot00000000000000description bgp routemap filtering with peer asn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match peerasn 3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 route-map-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 route-map-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 route-map-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp415.tst000066400000000000000000000051251471627602100166540ustar00rootroot00000000000000description bgp routepolicy filtering with peer asn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if peerasn 3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 route-policy-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 route-policy-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 route-policy-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp416.tst000066400000000000000000000055361471627602100166630ustar00rootroot00000000000000description bgp routemap filtering with peer asn with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match peerasn 3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-server neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-server neigh 1.1.1.3 route-map-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-server neigh 1234:1::2 route-map-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-server neigh 1234:1::3 route-map-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp417.tst000066400000000000000000000055301471627602100166560ustar00rootroot00000000000000description bgp routepolicy filtering with peer asn with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if peerasn 3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-server neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-server neigh 1.1.1.3 route-policy-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-server neigh 1234:1::2 route-policy-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-server neigh 1234:1::3 route-policy-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp418.tst000066400000000000000000000056511471627602100166630ustar00rootroot00000000000000description bgp routemap filtering with peer standard community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match peerstd 1:3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-map-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 send-comm both neigh 1234:1::2 route-map-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 send-comm both neigh 1234:1::3 route-map-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set stdcomm 1:2 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp419.tst000066400000000000000000000056621471627602100166660ustar00rootroot00000000000000description bgp routepolicy filtering with peer standard community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if peerstd 1:3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-policy-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 send-comm both neigh 1234:1::2 route-policy-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 send-comm both neigh 1234:1::3 route-policy-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 set stdcomm 1:2 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-policy rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-policy rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp420.tst000066400000000000000000000062541471627602100166540ustar00rootroot00000000000000description bgp routemap filtering with peer standard community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match peerstd 1:3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-server neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-server neigh 1.1.1.3 route-map-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-server neigh 1234:1::2 send-comm both neigh 1234:1::2 route-map-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-server neigh 1234:1::3 send-comm both neigh 1234:1::3 route-map-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set stdcomm 1:2 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp421.tst000066400000000000000000000062651471627602100166570ustar00rootroot00000000000000description bgp routepolicy filtering with peer standard community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if peerstd 1:3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-server neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-server neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-policy-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-server neigh 1234:1::2 send-comm both neigh 1234:1::2 route-policy-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-server neigh 1234:1::3 send-comm both neigh 1234:1::3 route-policy-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 set stdcomm 1:2 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both red conn route-policy rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both red conn route-policy rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp422.tst000066400000000000000000000056421471627602100166560ustar00rootroot00000000000000description bgp routemap filtering with peer large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match peerlrg 1:2:3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-map-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 send-comm all neigh 1234:1::2 route-map-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 send-comm all neigh 1234:1::3 route-map-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set lrgcomm 1:2:2 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp423.tst000066400000000000000000000056531471627602100166610ustar00rootroot00000000000000description bgp routepolicy filtering with peer large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if peerlrg 1:2:3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-policy-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 send-comm all neigh 1234:1::2 route-policy-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 send-comm all neigh 1234:1::3 route-policy-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 set lrgcomm 1:2:2 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-policy rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-policy rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp424.tst000066400000000000000000000062451471627602100166600ustar00rootroot00000000000000description bgp routemap filtering with peer large community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match peerlrg 1:2:3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-server neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-server neigh 1.1.1.3 route-map-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-server neigh 1234:1::2 send-comm all neigh 1234:1::2 route-map-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-server neigh 1234:1::3 send-comm all neigh 1234:1::3 route-map-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set lrgcomm 1:2:2 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp425.tst000066400000000000000000000062561471627602100166630ustar00rootroot00000000000000description bgp routepolicy filtering with peer large community with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if peerlrg 1:2:3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-server neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.2 ungroup neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-server neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-policy-out rm1 neigh 1.1.1.3 ungroup red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-server neigh 1234:1::2 send-comm all neigh 1234:1::2 route-policy-out rm1 neigh 1234:1::2 ungroup neigh 1234:1::3 remote-as 3 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-server neigh 1234:1::3 send-comm all neigh 1234:1::3 route-policy-out rm1 neigh 1234:1::3 ungroup red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 set lrgcomm 1:2:2 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm all red conn route-policy rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm all red conn route-policy rm1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp426.tst000066400000000000000000000034671471627602100166650ustar00rootroot00000000000000description unicast+linkstate over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 linkstate red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 linkstate red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.101 vrf v1 sou lo0 r2 tping 100 60 4321::101 vrf v1 sou lo0 r2 tping 100 60 2.2.2.201 vrf v1 sou lo0 r2 tping 100 60 4321::201 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp427.tst000066400000000000000000000037021471627602100166560ustar00rootroot00000000000000description unicast+linkstate over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 linkstate neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 linkstate neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.101 vrf v1 sou lo0 r2 tping 100 60 4321::101 vrf v1 sou lo0 r2 tping 100 60 2.2.2.201 vrf v1 sou lo0 r2 tping 100 60 4321::201 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp428.tst000066400000000000000000000043241471627602100166600ustar00rootroot00000000000000description unicast+linkstate over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate neigh 1.1.1.2 additional-path-rx uni linkstate neigh 1.1.1.2 additional-path-tx uni linkstate red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 linkstate neigh 1234:1::2 additional-path-rx uni linkstate neigh 1234:1::2 additional-path-tx uni linkstate red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate neigh 1.1.1.1 additional-path-rx uni linkstate neigh 1.1.1.1 additional-path-tx uni linkstate red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 linkstate neigh 1234:1::1 additional-path-rx uni linkstate neigh 1234:1::1 additional-path-tx uni linkstate red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.101 vrf v1 sou lo0 r2 tping 100 60 4321::101 vrf v1 sou lo0 r2 tping 100 60 2.2.2.201 vrf v1 sou lo0 r2 tping 100 60 4321::201 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp429.tst000066400000000000000000000027051471627602100166620ustar00rootroot00000000000000description unicast+ouni over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp430.tst000066400000000000000000000031171471627602100166500ustar00rootroot00000000000000description unicast+ouni over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp431.tst000066400000000000000000000034711471627602100166540ustar00rootroot00000000000000description unicast+ouni over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-rx uni ouni neigh 1.1.1.2 additional-path-tx uni ouni afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-rx uni ouni neigh 1234:1::2 additional-path-tx uni ouni afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx uni ouni neigh 1.1.1.1 additional-path-tx uni ouni afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx uni ouni neigh 1234:1::1 additional-path-tx uni ouni afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp432.tst000066400000000000000000000026151471627602100166540ustar00rootroot00000000000000description unicast+ouni over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni ouni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address uni ouni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp433.tst000066400000000000000000000042361471627602100166560ustar00rootroot00000000000000description unicast+ouni over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni ouni local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address uni ouni local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni ouni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address uni ouni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflect neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp434.tst000066400000000000000000000030471471627602100166560ustar00rootroot00000000000000description unicast+ouni over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp435.tst000066400000000000000000000043671471627602100166650ustar00rootroot00000000000000description unicast+ouni over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ouni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ouni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-server neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp436.tst000066400000000000000000000026241471627602100166600ustar00rootroot00000000000000description unicast+omul over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp437.tst000066400000000000000000000030371471627602100166600ustar00rootroot00000000000000description unicast+omul over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp438.tst000066400000000000000000000034111471627602100166550ustar00rootroot00000000000000description unicast+omul over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omlt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni omlt neigh 1.1.1.2 additional-path-tx uni omlt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omlt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni omlt neigh 1234:1::2 additional-path-tx uni omlt red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omlt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni omlt neigh 1.1.1.1 additional-path-tx uni omlt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omlt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni omlt neigh 1234:1::1 additional-path-tx uni omlt red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp439.tst000066400000000000000000000026241471627602100166630ustar00rootroot00000000000000description unicast+oflw over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni oflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni oflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni oflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni oflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp440.tst000066400000000000000000000030371471627602100166520ustar00rootroot00000000000000description unicast+oflw over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni oflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni oflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni oflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni oflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp441.tst000066400000000000000000000034111471627602100166470ustar00rootroot00000000000000description unicast+oflw over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni oflw local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni oflw neigh 1.1.1.2 additional-path-tx uni oflw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni oflw local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni oflw neigh 1234:1::2 additional-path-tx uni oflw red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni oflw local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni oflw neigh 1.1.1.1 additional-path-tx uni oflw red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni oflw local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni oflw neigh 1234:1::1 additional-path-tx uni oflw red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp442.tst000066400000000000000000000026241471627602100166550ustar00rootroot00000000000000description unicast+osrt over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni osrt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni osrt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni osrt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni osrt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp443.tst000066400000000000000000000030371471627602100166550ustar00rootroot00000000000000description unicast+osrt over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni osrt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni osrt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni osrt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni osrt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp444.tst000066400000000000000000000034111471627602100166520ustar00rootroot00000000000000description unicast+osrt over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni osrt local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni osrt neigh 1.1.1.2 additional-path-tx uni osrt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni osrt local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni osrt neigh 1234:1::2 additional-path-tx uni osrt red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni osrt local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni osrt neigh 1.1.1.1 additional-path-tx uni osrt red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni osrt local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni osrt neigh 1234:1::1 additional-path-tx uni osrt red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp445.tst000066400000000000000000000046131471627602100166600ustar00rootroot00000000000000description ouni bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp446.tst000066400000000000000000000046141471627602100166620ustar00rootroot00000000000000description ouni bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-out p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp447.tst000066400000000000000000000047151471627602100166650ustar00rootroot00000000000000description ouni bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp448.tst000066400000000000000000000047161471627602100166670ustar00rootroot00000000000000description ouni bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-out p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-out p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp449.tst000066400000000000000000000050261471627602100166630ustar00rootroot00000000000000description ouni bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp450.tst000066400000000000000000000050271471627602100166540ustar00rootroot00000000000000description ouni bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-out p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp451.tst000066400000000000000000000051301471627602100166500ustar00rootroot00000000000000description ouni bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp452.tst000066400000000000000000000051311471627602100166520ustar00rootroot00000000000000description ouni bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-out p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-out p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp453.tst000066400000000000000000000045641471627602100166640ustar00rootroot00000000000000description ouni bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp454.tst000066400000000000000000000045651471627602100166660ustar00rootroot00000000000000description ouni bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-out p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-out p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp455.tst000066400000000000000000000047771471627602100166740ustar00rootroot00000000000000description ouni bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp456.tst000066400000000000000000000050001471627602100166510ustar00rootroot00000000000000description ouni bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-out p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-out p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp457.tst000066400000000000000000000026451471627602100166660ustar00rootroot00000000000000description ouni bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-default afi-other ena no afi-other vpn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-default afi-other ena no afi-other vpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp458.tst000066400000000000000000000070071471627602100166640ustar00rootroot00000000000000description vpns with default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 default afi-vrf v3 ena afi-vrf v3 default afi-vrf v4 ena afi-vrf v4 default exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 default afi-vrf v3 ena afi-vrf v3 default afi-vrf v4 ena afi-vrf v4 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp459.tst000066400000000000000000000025671471627602100166730ustar00rootroot00000000000000description olab bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-default afi-other ena exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-default afi-other ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp460.tst000066400000000000000000000070501471627602100166530ustar00rootroot00000000000000description othervpns with default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 default afi-ovrf v3 ena afi-ovrf v3 default afi-ovrf v4 ena afi-ovrf v4 default exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 default afi-ovrf v3 ena afi-ovrf v3 default afi-ovrf v4 ena afi-ovrf v4 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp461.tst000066400000000000000000000143771471627602100166660ustar00rootroot00000000000000description vpns ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 vpn-route-map-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 vpn-route-map-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp462.tst000066400000000000000000000144001471627602100166520ustar00rootroot00000000000000description vpns egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 vpn-route-map-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 vpn-route-map-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp463.tst000066400000000000000000000146061471627602100166630ustar00rootroot00000000000000description vpns ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 vpn-route-map-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 vpn-route-map-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp464.tst000066400000000000000000000146071471627602100166650ustar00rootroot00000000000000description vpns egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 vpn-route-map-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 vpn-route-map-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp465.tst000066400000000000000000000142461471627602100166650ustar00rootroot00000000000000description vpns ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 vpn-route-policy-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 vpn-route-policy-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp466.tst000066400000000000000000000142471471627602100166670ustar00rootroot00000000000000description vpns egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 vpn-route-policy-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 vpn-route-policy-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp467.tst000066400000000000000000000144551471627602100166710ustar00rootroot00000000000000description vpns ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 vpn-route-policy-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 vpn-route-policy-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp468.tst000066400000000000000000000144561471627602100166730ustar00rootroot00000000000000description vpns egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 vpn-route-policy-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 vpn-route-policy-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp469.tst000066400000000000000000000144421471627602100166670ustar00rootroot00000000000000description othervpns ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 ovpn-route-map-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 ovpn-route-map-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp470.tst000066400000000000000000000144431471627602100166600ustar00rootroot00000000000000description othervpns egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 ovpn-route-map-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 ovpn-route-map-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp471.tst000066400000000000000000000146511471627602100166620ustar00rootroot00000000000000description othervpns ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 ovpn-route-map-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 ovpn-route-map-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp472.tst000066400000000000000000000146521471627602100166640ustar00rootroot00000000000000description othervpns egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 ovpn-route-map-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 ovpn-route-map-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp473.tst000066400000000000000000000143111471627602100166550ustar00rootroot00000000000000description othervpns ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 ovpn-route-policy-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 ovpn-route-policy-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp474.tst000066400000000000000000000143121471627602100166570ustar00rootroot00000000000000description othervpns egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 ovpn-route-policy-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 ovpn-route-policy-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp475.tst000066400000000000000000000145201471627602100166610ustar00rootroot00000000000000description othervpns ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 ovpn-route-policy-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 ovpn-route-policy-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp476.tst000066400000000000000000000145211471627602100166630ustar00rootroot00000000000000description othervpns egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 ovpn-route-policy-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 ovpn-route-policy-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp477.tst000066400000000000000000000043531471627602100166660ustar00rootroot00000000000000description labels bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp478.tst000066400000000000000000000043541471627602100166700ustar00rootroot00000000000000description labels bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp479.tst000066400000000000000000000044551471627602100166730ustar00rootroot00000000000000description labels bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp480.tst000066400000000000000000000044561471627602100166640ustar00rootroot00000000000000description labels bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp481.tst000066400000000000000000000045661471627602100166670ustar00rootroot00000000000000description labels bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp482.tst000066400000000000000000000045671471627602100166710ustar00rootroot00000000000000description labels bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp483.tst000066400000000000000000000046701471627602100166650ustar00rootroot00000000000000description labels bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp484.tst000066400000000000000000000046711471627602100166670ustar00rootroot00000000000000description labels bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp485.tst000066400000000000000000000043241471627602100166630ustar00rootroot00000000000000description labels bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp486.tst000066400000000000000000000043251471627602100166650ustar00rootroot00000000000000description labels bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp487.tst000066400000000000000000000045371471627602100166730ustar00rootroot00000000000000description labels bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp488.tst000066400000000000000000000045401471627602100166660ustar00rootroot00000000000000description labels bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp489.tst000066400000000000000000000024311471627602100166640ustar00rootroot00000000000000description labels bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 default exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp490.tst000066400000000000000000000045351471627602100166630ustar00rootroot00000000000000description olab bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp491.tst000066400000000000000000000045361471627602100166650ustar00rootroot00000000000000description olab bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp492.tst000066400000000000000000000046371471627602100166700ustar00rootroot00000000000000description olab bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp493.tst000066400000000000000000000046401471627602100166630ustar00rootroot00000000000000description olab bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp494.tst000066400000000000000000000047501471627602100166660ustar00rootroot00000000000000description olab bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp495.tst000066400000000000000000000047511471627602100166700ustar00rootroot00000000000000description olab bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp496.tst000066400000000000000000000050521471627602100166640ustar00rootroot00000000000000description olab bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp497.tst000066400000000000000000000050531471627602100166660ustar00rootroot00000000000000description olab bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp498.tst000066400000000000000000000045061471627602100166710ustar00rootroot00000000000000description olab bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp499.tst000066400000000000000000000045071471627602100166730ustar00rootroot00000000000000description olab bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp500.tst000066400000000000000000000047211471627602100166500ustar00rootroot00000000000000description olab bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp501.tst000066400000000000000000000047221471627602100166520ustar00rootroot00000000000000description olab bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp502.tst000066400000000000000000000045021471627602100166470ustar00rootroot00000000000000description labels bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp503.tst000066400000000000000000000046501471627602100166540ustar00rootroot00000000000000description olab bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp504.tst000066400000000000000000000047261471627602100166610ustar00rootroot00000000000000description ouni bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p6 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p4 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp505.tst000066400000000000000000000145041471627602100166550ustar00rootroot00000000000000description bgp vpns aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act perm match network 9.9.2.0/24 sequence 20 act perm match network 9.9.3.0/24 sequence 30 act perm match network 9.9.4.0/24 exit route-map p6 sequence 10 act perm match network 9992::/32 sequence 20 act perm match network 9993::/32 sequence 30 act perm match network 9994::/32 exit router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 vpn-route-map-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 vpn-route-map-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 aggregate 9.9.2.0/24 afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 aggregate 9.9.3.0/24 afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 aggregate 9.9.4.0/24 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 aggregate 9992::/32 afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 aggregate 9993::/32 afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 aggregate 9994::/32 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp506.tst000066400000000000000000000145551471627602100166640ustar00rootroot00000000000000description bgp othervpns aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act perm match network 9.9.2.0/24 sequence 20 act perm match network 9.9.3.0/24 sequence 30 act perm match network 9.9.4.0/24 exit route-map p6 sequence 10 act perm match network 9992::/32 sequence 20 act perm match network 9993::/32 sequence 30 act perm match network 9994::/32 exit router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 ovpn-route-map-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 ovpn-route-map-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 aggregate 9992::/32 afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 aggregate 9993::/32 afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 aggregate 9994::/32 exit router bgp6 1 vrf v1 no safe-ebgp address ovpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 aggregate 9.9.2.0/24 afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 aggregate 9.9.3.0/24 afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 aggregate 9.9.4.0/24 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp507.tst000066400000000000000000000055561471627602100166660ustar00rootroot00000000000000description bgp routemap clearing with standard community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 clear stdcomm 1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::2 route-map-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::3 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set stdcomm 1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp508.tst000066400000000000000000000055641471627602100166660ustar00rootroot00000000000000description bgp routemap clearing with extended community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 clear extcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::2 route-map-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::3 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set extcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match extcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp509.tst000066400000000000000000000055511471627602100166630ustar00rootroot00000000000000description bgp routemap clearing with large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 clear lrgcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm all neigh 1234:1::2 route-map-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm all neigh 1234:1::3 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set lrgcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match lrgcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp510.tst000066400000000000000000000056061471627602100166540ustar00rootroot00000000000000description bgp routepolicy clearing with standard community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 clear stdcomm 1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-policy-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::2 route-policy-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::3 route-policy-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set stdcomm 1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match stdcomm 1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp511.tst000066400000000000000000000056141471627602100166540ustar00rootroot00000000000000description bgp routepolicy clearing with extended community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 clear extcomm 1:1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-policy-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::2 route-policy-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::3 route-policy-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set extcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match extcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp512.tst000066400000000000000000000056011471627602100166510ustar00rootroot00000000000000description bgp routepolicy clearing with large community addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 clear lrgcomm 1:1234:4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm all neigh 1.1.1.2 route-policy-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm all neigh 1.1.1.3 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm all neigh 1234:1::2 route-policy-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm all neigh 1234:1::3 route-policy-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set lrgcomm 1:1234:4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match lrgcomm 1:1234:4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm all neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm all neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp513.tst000066400000000000000000000051271471627602100166550ustar00rootroot00000000000000description bgp routemap clearing with aspath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 clear exact 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 route-map-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 route-map-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp514.tst000066400000000000000000000051571471627602100166610ustar00rootroot00000000000000description bgp routepolicy clearing with aspath addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 clear exact 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 route-policy-in rm1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 route-policy-in rm1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 route-policy-in rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aspath 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp515.tst000066400000000000000000000050531471627602100166550ustar00rootroot00000000000000description bgp autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute bgp4 1 2.2.2.2 9.9.8.2 recur ipv6 autoroute bgp6 1 4321::2 9998::2 recur exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 9.9.9.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 9999::2 remote-as 2 red conn exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute bgp4 1 2.2.2.1 9.9.8.1 recur ipv6 autoroute bgp6 1 4321::1 9998::1 recur exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.1 neigh 9.9.9.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.1 neigh 9999::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 tping 0 60 9.9.9.2 vrf v1 r1 tping 0 60 9999::2 vrf v1 r2 tping 0 60 9.9.9.1 vrf v1 r2 tping 0 60 9999::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp516.tst000066400000000000000000000067661471627602100166720ustar00rootroot00000000000000description bgp extended open addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 extended-open red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 extended-open red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 extended-open neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 extended-open red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 extended-open neigh 1234:2::2 remote-as 3 neigh 1234:2::2 extended-open red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 extended-open red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 extended-open red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp517.tst000066400000000000000000000070101471627602100166520ustar00rootroot00000000000000description bgp extended update addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 extended-update red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 extended-update red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 extended-update neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 extended-update red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 extended-update neigh 1234:2::2 remote-as 3 neigh 1234:2::2 extended-update red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 extended-update red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 extended-update red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp518.tst000066400000000000000000000070401471627602100166560ustar00rootroot00000000000000description bgp multiple labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 multiple-label uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 multiple-label uni red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 multiple-label uni neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 multiple-label uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 multiple-label uni neigh 1234:2::2 remote-as 3 neigh 1234:2::2 multiple-label uni red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 multiple-label uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 multiple-label uni red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp519.tst000066400000000000000000000076311471627602100166650ustar00rootroot00000000000000description bgp graceful restart addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni graceful 10000 longlive 10000 local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 graceful uni neigh 1.1.1.2 longlive uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni graceful 10000 longlive 10000 local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 graceful uni neigh 1234:1::2 longlive uni red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni graceful 10000 longlive 10000 local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 graceful uni neigh 1.1.1.1 longlive uni neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 graceful uni neigh 1.1.1.6 longlive uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni graceful 10000 longlive 10000 local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 graceful uni neigh 1234:1::1 longlive uni neigh 1234:2::2 remote-as 3 neigh 1234:2::2 graceful uni neigh 1234:2::2 longlive uni red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni graceful 10000 longlive 10000 local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 graceful uni neigh 1.1.1.9 longlive uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni graceful 10000 longlive 10000 local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 graceful uni neigh 1234:3::1 longlive uni red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp520.tst000066400000000000000000000071311471627602100166500ustar00rootroot00000000000000description bgp extended nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 extended-nexthop-curr uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 extended-nexthop-curr uni red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 extended-nexthop-curr uni neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 extended-nexthop-curr uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 extended-nexthop-curr uni neigh 1234:2::2 remote-as 3 neigh 1234:2::2 extended-nexthop-curr uni red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 extended-nexthop-curr uni red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 extended-nexthop-curr uni red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp521.tst000066400000000000000000000072041471627602100166520ustar00rootroot00000000000000description bgp leak prevention with customer provider addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 leak-role prov red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 leak-role prov red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role cust neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 leak-role prov red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role cust neigh 1234:2::2 remote-as 3 neigh 1234:2::2 leak-role prov red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 leak-role cust neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 leak-role cust red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 leak-role cust neigh 1234:3::2 remote-as 4 neigh 1234:3::2 leak-role cust red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 leak-role prov red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 leak-role prov red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp522.tst000066400000000000000000000072171471627602100166570ustar00rootroot00000000000000description bgp leak prevention with route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 leak-role prov red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 leak-role prov red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role cust neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 leak-role ix-ser red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role cust neigh 1234:2::2 remote-as 3 neigh 1234:2::2 leak-role ix-ser red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 leak-role ix-cli neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 leak-role ix-cli red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 leak-role ix-cli neigh 1234:3::2 remote-as 4 neigh 1234:3::2 leak-role ix-cli red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 leak-role ix-ser red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 leak-role ix-ser red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp523.tst000066400000000000000000000071571471627602100166630ustar00rootroot00000000000000description bgp leak prevention with peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 leak-role prov red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 leak-role prov red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role cust neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 leak-role peer red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role cust neigh 1234:2::2 remote-as 3 neigh 1234:2::2 leak-role peer red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 leak-role peer neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 leak-role peer red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 leak-role peer neigh 1234:3::2 remote-as 4 neigh 1234:3::2 leak-role peer red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 leak-role peer red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 leak-role peer red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp524.tst000066400000000000000000000026171471627602100166600ustar00rootroot00000000000000description unicast+nsh over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni nsh local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni nsh local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni nsh local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni nsh local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp525.tst000066400000000000000000000030321471627602100166510ustar00rootroot00000000000000description unicast+nsh over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni nsh local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni nsh local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni nsh local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni nsh local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp526.tst000066400000000000000000000033741471627602100166630ustar00rootroot00000000000000description unicast+nsh over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni nsh local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni nsh neigh 1.1.1.2 additional-path-tx uni nsh red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni nsh local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni nsh neigh 1234:1::2 additional-path-tx uni nsh red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni nsh local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni nsh neigh 1.1.1.1 additional-path-tx uni nsh red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni nsh local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni nsh neigh 1234:1::1 additional-path-tx uni nsh red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp527.tst000066400000000000000000000117571471627602100166700ustar00rootroot00000000000000description bgp with polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 segrout 10 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 segrout 10 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 segrout red conn exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.4 tunnel domain-name 2.2.2.2 2.2.2.3 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::4 tunnel domain-name 4321::2 4321::3 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable polka enable 2 65536 10 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 segrout 10 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrout neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 segrout 10 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 segrout neigh 1234:2::2 remote-as 3 neigh 1234:2::2 segrout red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 3 65536 10 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable polka enable 3 65536 10 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 segrout 10 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 segrout neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 segrout 10 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 segrout neigh 1234:3::2 remote-as 4 neigh 1234:3::2 segrout red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable polka enable 4 65536 10 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 segrout 10 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 segrout red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 segrout 10 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 segrout red conn exit interface tun1 tunnel vrf v1 tunnel source loopback0 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.3 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback0 tunnel destination 4321::1 tunnel domain-name 4321::3 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.4 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.4 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 4321::4 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.3 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r4 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r4 tping 100 20 3333::1 vrf v1 sou tun2 freeRtr-24.11.16/cfg/rout-bgp528.tst000066400000000000000000000065631471627602100166700ustar00rootroot00000000000000description bgp without recursion addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflect neigh 1234:2::2 remote-as 1 neigh 1234:2::2 route-reflect red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 route-reflect neigh 1.1.1.10 remote-as 1 neigh 1.1.1.10 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 route-reflect neigh 1234:3::2 remote-as 1 neigh 1234:3::2 route-reflect red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:3::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp529.tst000066400000000000000000000070101471627602100166550ustar00rootroot00000000000000description bgp with recursion addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 nexthop recur 2 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 nexthop recur 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.6 remote-as 1 neigh 1.1.1.6 route-reflect nexthop recur 2 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflect neigh 1234:2::2 remote-as 1 neigh 1234:2::2 route-reflect nexthop recur 2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 route-reflect neigh 1.1.1.10 remote-as 1 neigh 1.1.1.10 route-reflect nexthop recur 2 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 route-reflect neigh 1234:3::2 remote-as 1 neigh 1234:3::2 route-reflect nexthop recur 2 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 1 nexthop recur 2 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:3::1 remote-as 1 nexthop recur 2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp530.tst000066400000000000000000000154721471627602100166600ustar00rootroot00000000000000description bgp with route flap dampening addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 soft-reconfig neigh 1.1.1.5 dampen 500 1000 500 10000 3000 700 900000 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 soft-reconfig neigh 1234:2::1 dampen 500 1000 500 10000 3000 700 900000 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send no red conn r1 send exit r1 send router bgp6 1 r1 send no red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send red conn r1 send exit r1 send router bgp6 1 r1 send red conn r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp531.tst000066400000000000000000000051401471627602100166500ustar00rootroot00000000000000description bgp routemap filtering with nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match nexthop 1.1.1.3 sequence 20 act permit exit route-map rm2 sequence 10 act deny match nexthop 1234:1::3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 route-map-out rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 route-map-out rm2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 route-map-out rm2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp532.tst000066400000000000000000000051051471627602100166520ustar00rootroot00000000000000description bgp routepolicy filtering with nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if nexthop 1.1.1.3 drop else pass enif exit route-policy rm2 if nexthop 1234:1::3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 route-policy-out rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 route-policy-out rm2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 route-policy-out rm2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp533.tst000066400000000000000000000053531471627602100166600ustar00rootroot00000000000000description bgp routemap filtering with nexthop with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 sequence 10 act deny match nexthop 1.1.1.3 sequence 20 act permit exit route-map rm2 sequence 10 act deny match nexthop 1234:1::3 sequence 20 act permit exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-map-out rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-out rm2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-map-out rm2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp534.tst000066400000000000000000000053201471627602100166530ustar00rootroot00000000000000description bgp routepolicy filtering with nexthop with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 if nexthop 1.1.1.3 drop else pass enif exit route-policy rm2 if nexthop 1234:1::3 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-out rm1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-policy-out rm1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-out rm2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 route-server neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-policy-out rm2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp535.tst000066400000000000000000000046551471627602100166660ustar00rootroot00000000000000description bgp routemap filtering with asend addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match asend 4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp536.tst000066400000000000000000000052601471627602100166600ustar00rootroot00000000000000description bgp routemap filtering with asend with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match asend 4321 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp537.tst000066400000000000000000000046611471627602100166650ustar00rootroot00000000000000description bgp routepolicy filtering with asend addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if asend 4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp538.tst000066400000000000000000000052631471627602100166650ustar00rootroot00000000000000description bgp routepolicy filtering with asend with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if asend 4321 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp539.tst000066400000000000000000000046551471627602100166720ustar00rootroot00000000000000description bgp routemap filtering with asmid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match asmid 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp540.tst000066400000000000000000000052601471627602100166530ustar00rootroot00000000000000description bgp routemap filtering with asmid with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match asmid 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp541.tst000066400000000000000000000046611471627602100166600ustar00rootroot00000000000000description bgp routepolicy filtering with asmid addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if asmid 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp542.tst000066400000000000000000000052631471627602100166600ustar00rootroot00000000000000description bgp routepolicy filtering with asmid with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if asmid 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp543.tst000066400000000000000000000046551471627602100166650ustar00rootroot00000000000000description bgp routemap filtering with asbeg addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match asbeg 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp544.tst000066400000000000000000000052601471627602100166570ustar00rootroot00000000000000description bgp routemap filtering with asbeg with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1234 4321 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match asbeg 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp545.tst000066400000000000000000000046611471627602100166640ustar00rootroot00000000000000description bgp routepolicy filtering with asbeg addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if asbeg 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp546.tst000066400000000000000000000052631471627602100166640ustar00rootroot00000000000000description bgp routepolicy filtering with asbeg with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aspath 1234 4321 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if asbeg 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp547.tst000066400000000000000000000144701471627602100166650ustar00rootroot00000000000000description bgp change in metric with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp548.tst000066400000000000000000000204031471627602100166570ustar00rootroot00000000000000description ibgp rr prefix movement with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp549.tst000066400000000000000000000151651471627602100166710ustar00rootroot00000000000000description ouni bgp change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn route-map rm1 exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp550.tst000066400000000000000000000211201471627602100166450ustar00rootroot00000000000000description ouni ibgp rr prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other advertise 4321::2/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other advertise 2.2.2.2/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other advertise 4321::3/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other advertise 2.2.2.3/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp551.tst000066400000000000000000000150211471627602100166510ustar00rootroot00000000000000description olab bgp change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn route-map rm1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp552.tst000066400000000000000000000207641471627602100166640ustar00rootroot00000000000000description olab ibgp rr prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other advertise 4321::2/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other advertise 2.2.2.2/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other advertise 4321::3/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other advertise 2.2.2.3/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp553.tst000066400000000000000000000225251471627602100166620ustar00rootroot00000000000000description bgp vpns change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn route-map rm1 exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 vpn-route-map-in rm1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 vpn-route-map-in rm1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp554.tst000066400000000000000000000265101471627602100166610ustar00rootroot00000000000000description ibgp rr vpns prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.102 255.255.255.255 ipv6 addr 9994::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 advertise 9.9.4.2/32 route-map rm1 afi-vrf v4 advertise 9.9.4.222/32 route-map rm1 exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 advertise 9994::2/128 route-map rm1 afi-vrf v4 advertise 9994::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.103 255.255.255.255 ipv6 addr 9994::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 advertise 9.9.4.3/32 route-map rm1 afi-vrf v4 advertise 9.9.4.222/32 route-map rm1 exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 advertise 9994::3/128 route-map rm1 afi-vrf v4 advertise 9994::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 freeRtr-24.11.16/cfg/rout-bgp555.tst000066400000000000000000000226261471627602100166660ustar00rootroot00000000000000description bgp othervpns change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 ovpn-route-map-in rm1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 ovpn-route-map-in rm1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn route-map rm1 exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 ovpn-route-map-in rm1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 ovpn-route-map-in rm1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp556.tst000066400000000000000000000266121471627602100166660ustar00rootroot00000000000000description ibgp rr othervpns prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.102 255.255.255.255 ipv6 addr 9994::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 advertise 9994::2/128 route-map rm1 afi-ovrf v4 advertise 9994::222/128 route-map rm1 exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 advertise 9.9.4.2/32 route-map rm1 afi-ovrf v4 advertise 9.9.4.222/32 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.103 255.255.255.255 ipv6 addr 9994::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 advertise 9994::3/128 route-map rm1 afi-ovrf v4 advertise 9994::222/128 route-map rm1 exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 advertise 9.9.4.3/32 route-map rm1 afi-ovrf v4 advertise 9.9.4.222/32 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 freeRtr-24.11.16/cfg/rout-bgp557.tst000066400000000000000000000120541471627602100166620ustar00rootroot00000000000000description ibgp rr prefix withdraw with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address lab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address lab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp558.tst000066400000000000000000000125711471627602100166670ustar00rootroot00000000000000description ouni ibgp rr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit router bgp4 1 vrf v1 address ouni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 address ouni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp559.tst000066400000000000000000000124211471627602100166620ustar00rootroot00000000000000description olab ibgp rr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp560.tst000066400000000000000000000201411471627602100166500ustar00rootroot00000000000000description ibgp rr vpns prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send no afi-vrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send no afi-vrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 0 60 9.9.4.3 vrf v4 r1 tping 0 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 0 60 9.9.4.1 vrf v4 r3 tping 0 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send afi-vrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send afi-vrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp561.tst000066400000000000000000000202421471627602100166530ustar00rootroot00000000000000description ibgp rr othervpns prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ovpnuni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send no afi-ovrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send no afi-ovrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 0 60 9.9.4.3 vrf v4 r1 tping 0 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 0 60 9.9.4.1 vrf v4 r3 tping 0 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send afi-ovrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send afi-ovrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp562.tst000066400000000000000000000126631471627602100166640ustar00rootroot00000000000000description olab ibgp fullmesh prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address olab local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address olab local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp563.tst000066400000000000000000000031021471627602100166510ustar00rootroot00000000000000description ebgp with safe policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send no safe-ebgp r1 send exit r1 send router bgp6 1 r1 send no safe-ebgp r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp564.tst000066400000000000000000000025161471627602100166620ustar00rootroot00000000000000description ibgp with safe policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp565.tst000066400000000000000000000032401471627602100166560ustar00rootroot00000000000000description confed bgp with safe policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 confed red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send no safe-ebgp r1 send exit r1 send router bgp6 1 r1 send no safe-ebgp r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp566.tst000066400000000000000000000026131471627602100166620ustar00rootroot00000000000000description ibgp rr with safe policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp567.tst000066400000000000000000000032061471627602100166620ustar00rootroot00000000000000description bgp route server with safe policy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 route-server red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send no safe-ebgp r1 send exit r1 send router bgp6 1 r1 send no safe-ebgp r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp568.tst000066400000000000000000000030651471627602100166660ustar00rootroot00000000000000description safe ebgp policy with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit prefix-list p4 permit 0.0.0.0/0 le 32 exit prefix-list p6 permit ::/0 le 128 exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-in p4 neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 prefix-list-in p6 neigh 1234::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp569.tst000066400000000000000000000027671471627602100166770ustar00rootroot00000000000000description safe ebgp policy with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit route-map rm1 act perm exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 route-map-out rm1 red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 route-map-in rm1 neigh 1234::2 route-map-out rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp570.tst000066400000000000000000000030051471627602100166510ustar00rootroot00000000000000description safe ebgp policy with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:ffff:: exit route-policy rm1 pass exit router bgp4 1 vrf v1 safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in rm1 neigh 1.1.1.2 route-policy-out rm1 red conn exit router bgp6 1 vrf v1 safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 route-policy-in rm1 neigh 1234::2 route-policy-out rm1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234::1 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp571.tst000066400000000000000000000111141471627602100166520ustar00rootroot00000000000000description ebgp over common subnet addrouter r1 int ser1 ser - $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.1 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0001 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.255 ipv6 addr 1234::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit ! addrouter r2 int ser1 ser - $1b$ $1a$ int ser2 ser - $2a$ $2b$ int ser3 ser - $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo9 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.255 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.255 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no ipv4 gateway-local no ipv4 gateway-connect no ipv6 gateway-local no ipv6 gateway-connect exit int ser2 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.255 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no ipv4 gateway-local no ipv4 gateway-connect no ipv6 gateway-local no ipv6 gateway-connect exit int ser3 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.2 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0002 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.255 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no ipv4 gateway-local no ipv4 gateway-connect no ipv6 gateway-local no ipv6 gateway-connect exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 update lo9 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo9 neigh 1.1.1.4 remote-as 4 neigh 1.1.1.4 update lo9 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 update lo9 neigh 1234::3 remote-as 3 neigh 1234::3 update lo9 neigh 1234::4 remote-as 4 neigh 1234::4 update lo9 red conn exit ! addrouter r3 int ser1 ser - $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.3 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0003 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.255 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 red conn exit ! addrouter r4 int ser1 ser - $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp open ppp ip6cp open ppp ip4cp local 1.1.1.4 ppp ip6cp keep ppp ip6cp local 0000-0000-0000-0004 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.255 ipv6 addr 1234::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234::2 remote-as 2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp572.tst000066400000000000000000000067221471627602100166640ustar00rootroot00000000000000description vpls/ldp cw over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp573.tst000066400000000000000000000054661471627602100166710ustar00rootroot00000000000000description vpls/ldp cw over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp574.tst000066400000000000000000000074311471627602100166640ustar00rootroot00000000000000description vpls/ldp cw over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpls neigh 2.2.2.2 additional-path-tx vpls afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpls neigh 4321::2 additional-path-tx vpls afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpls neigh 2.2.2.1 additional-path-tx vpls afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpls neigh 4321::1 additional-path-tx vpls afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp575.tst000066400000000000000000000107601471627602100166640ustar00rootroot00000000000000description vpls/ldp cw over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address vpls local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp576.tst000066400000000000000000000070601471627602100166640ustar00rootroot00000000000000description vpls/ldp cw over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp577.tst000066400000000000000000000112261471627602100166640ustar00rootroot00000000000000description vpls/ldp cw over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp578.tst000066400000000000000000000071301471627602100166640ustar00rootroot00000000000000description vpls/ldp cw over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp579.tst000066400000000000000000000076371471627602100167010ustar00rootroot00000000000000description unicast+vpls/ldp cw over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp580.tst000066400000000000000000000100461471627602100166550ustar00rootroot00000000000000description unicast+vpls/ldp cw over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp581.tst000066400000000000000000000104071471627602100166570ustar00rootroot00000000000000description unicast+vpls/ldp cw over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::1 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::1 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx vpls uni neigh 2.2.2.2 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx vpls uni neigh 4321::2 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:3 mac-learn private exit bridge 4 rd 1:4 rt-both 1:4 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.255 ipv6 addr 4444::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int bvi2 vrf for v1 ipv6 addr 4444::2 ffff:: exit int bvi3 vrf for v1 ipv6 addr 3333::2 ffff:: exit int bvi4 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx vpls uni neigh 2.2.2.1 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 1 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 3 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit router bgp6 1 vrf v1 no safe-ebgp address vpls uni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx vpls uni neigh 4321::1 additional-path-tx vpls uni red conn afi-vpls 1:1 bridge 2 afi-vpls 1:1 control afi-vpls 1:1 update lo0 afi-vpls 1:2 bridge 4 afi-vpls 1:2 control afi-vpls 1:2 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 4.4.4.2 vrf v1 sou lo1 r1 tping 100 60 4444::2 vrf v1 sou lo1 r2 tping 100 60 4.4.4.1 vrf v1 sou lo1 r2 tping 100 60 4444::1 vrf v1 sou lo1 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp582.tst000066400000000000000000000052111471627602100166550ustar00rootroot00000000000000description ebgp with backup peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 distance 10 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 backup 1.1.1.2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 distance 10 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 backup 1234:1::2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny all 2.2.2.0 255.255.255.0 all any all deny all any all 2.2.2.0 255.255.255.0 all permit all any all any all exit access-list test6 deny all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all any all deny all any all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 distance 10 neigh 1.1.2.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 distance 10 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1.1.2.2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234:1::1 vrf v1 r2 tping 100 60 1.1.2.1 vrf v1 r2 tping 100 60 1234:2::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send neigh 1.1.1.2 shut r1 send exit r1 send router bgp6 1 r1 send neigh 1234:1::2 shut r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp583.tst000066400000000000000000000052111471627602100166560ustar00rootroot00000000000000description ibgp with backup peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 distance 10 neigh 1.1.2.2 remote-as 1 neigh 1.1.2.2 backup 1.1.1.2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 distance 10 neigh 1234:2::2 remote-as 1 neigh 1234:2::2 backup 1234:1::2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny all 2.2.2.0 255.255.255.0 all any all deny all any all 2.2.2.0 255.255.255.0 all permit all any all any all exit access-list test6 deny all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all any all deny all any all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 distance 10 neigh 1.1.2.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 distance 10 neigh 1234:2::1 remote-as 1 red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1.1.2.2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234:1::1 vrf v1 r2 tping 100 60 1.1.2.1 vrf v1 r2 tping 100 60 1234:2::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send neigh 1.1.1.2 shut r1 send exit r1 send router bgp6 1 r1 send neigh 1234:1::2 shut r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp584.tst000066400000000000000000000055071471627602100166670ustar00rootroot00000000000000description confed bgp with backup peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed neigh 1.1.1.2 distance 10 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 confed neigh 1.1.2.2 backup 1.1.1.2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed neigh 1234:1::2 distance 10 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 confed neigh 1234:2::2 backup 1234:1::2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny all 2.2.2.0 255.255.255.0 all any all deny all any all 2.2.2.0 255.255.255.0 all permit all any all any all exit access-list test6 deny all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all any all deny all any all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.1 distance 10 neigh 1.1.2.1 remote-as 1 neigh 1.1.2.1 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed neigh 1234:1::1 distance 10 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 confed red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1.1.2.2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234:1::1 vrf v1 r2 tping 100 60 1.1.2.1 vrf v1 r2 tping 100 60 1234:2::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send neigh 1.1.1.2 shut r1 send exit r1 send router bgp6 1 r1 send neigh 1234:1::2 shut r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp585.tst000066400000000000000000000055751471627602100166750ustar00rootroot00000000000000description route server bgp with backup peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server neigh 1.1.1.2 distance 10 neigh 1.1.2.2 remote-as 2 neigh 1.1.2.2 route-server neigh 1.1.2.2 backup 1.1.1.2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server neigh 1234:1::2 distance 10 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 route-server neigh 1234:2::2 backup 1234:1::2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny all 2.2.2.0 255.255.255.0 all any all deny all any all 2.2.2.0 255.255.255.0 all permit all any all any all exit access-list test6 deny all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all any all deny all any all 4321:: ffff:ffff:ffff:ffff:ffff:ffff:ffff:0 all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.1 distance 10 neigh 1.1.2.1 remote-as 1 neigh 1.1.2.1 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-server neigh 1234:1::1 distance 10 neigh 1234:2::1 remote-as 1 neigh 1234:2::1 route-server red conn exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1.1.2.2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r2 tping 100 60 1.1.1.1 vrf v1 r2 tping 100 60 1234:1::1 vrf v1 r2 tping 100 60 1.1.2.1 vrf v1 r2 tping 100 60 1234:2::1 vrf v1 r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r1 send conf t r1 send router bgp4 1 r1 send neigh 1.1.1.2 shut r1 send exit r1 send router bgp6 1 r1 send neigh 1234:1::2 shut r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp586.tst000066400000000000000000000041101471627602100166560ustar00rootroot00000000000000description unicast+rtfilter over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp587.tst000066400000000000000000000043231471627602100166650ustar00rootroot00000000000000description unicast+rtfilter over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp588.tst000066400000000000000000000047351471627602100166750ustar00rootroot00000000000000description unicast+rtfilter over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni rtfilter neigh 1.1.1.2 additional-path-tx uni rtfilter afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni rtfilter neigh 1234:1::2 additional-path-tx uni rtfilter afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni rtfilter neigh 1.1.1.1 additional-path-tx uni rtfilter afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni rtfilter neigh 1234:1::1 additional-path-tx uni rtfilter afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp589.tst000066400000000000000000000043041471627602100166660ustar00rootroot00000000000000description unicast+rtfilter over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rtfilter local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp590.tst000066400000000000000000000136511471627602100166630ustar00rootroot00000000000000description vpns with ingress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp591.tst000066400000000000000000000136541471627602100166670ustar00rootroot00000000000000description vpns with egress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp592.tst000066400000000000000000000137121471627602100166630ustar00rootroot00000000000000description othervpns with ingress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp593.tst000066400000000000000000000137151471627602100166670ustar00rootroot00000000000000description othervpns with egress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit router bgp6 1 vrf v1 address ovpnuni rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v4 ena afi-ovrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp594.tst000066400000000000000000000076031471627602100166670ustar00rootroot00000000000000description vpls/ldp with ingress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:13 mac-learn private exit bridge 4 rd 1:4 rt-both 1:14 mac-learn private exit bridge 5 rd 1:5 rt-both 1:15 mac-learn private exit bridge 6 rd 1:6 rt-both 1:16 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 maximum-prefix-in 5 50 neigh 2.2.2.2 route-target-filter-in afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:3 bridge 3 afi-vpls 1:3 update lo0 afi-vpls 1:5 bridge 5 afi-vpls 1:5 update lo0 exit router bgp6 1 vrf v1 address vpls rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 maximum-prefix-in 5 50 neigh 4321::2 route-target-filter-in afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:4 bridge 4 afi-vpls 1:4 update lo0 afi-vpls 1:6 bridge 6 afi-vpls 1:6 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:23 mac-learn private exit bridge 4 rd 1:4 rt-both 1:24 mac-learn private exit bridge 5 rd 1:5 rt-both 1:25 mac-learn private exit bridge 6 rd 1:6 rt-both 1:26 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls rtfilter local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-in afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:3 bridge 3 afi-vpls 1:3 update lo0 afi-vpls 1:5 bridge 5 afi-vpls 1:5 update lo0 exit router bgp6 1 vrf v1 address vpls rtfilter local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-in afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:4 bridge 4 afi-vpls 1:4 update lo0 afi-vpls 1:6 bridge 6 afi-vpls 1:6 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp595.tst000066400000000000000000000076061471627602100166730ustar00rootroot00000000000000description vpls/ldp with egress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:13 mac-learn private exit bridge 4 rd 1:4 rt-both 1:14 mac-learn private exit bridge 5 rd 1:5 rt-both 1:15 mac-learn private exit bridge 6 rd 1:6 rt-both 1:16 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpls rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 maximum-prefix-in 5 50 neigh 2.2.2.2 route-target-filter-out afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:3 bridge 3 afi-vpls 1:3 update lo0 afi-vpls 1:5 bridge 5 afi-vpls 1:5 update lo0 exit router bgp6 1 vrf v1 address vpls rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 maximum-prefix-in 5 50 neigh 4321::2 route-target-filter-out afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:4 bridge 4 afi-vpls 1:4 update lo0 afi-vpls 1:6 bridge 6 afi-vpls 1:6 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:23 mac-learn private exit bridge 4 rd 1:4 rt-both 1:24 mac-learn private exit bridge 5 rd 1:5 rt-both 1:25 mac-learn private exit bridge 6 rd 1:6 rt-both 1:26 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpls rtfilter local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-out afi-vpls 1:1 bridge 1 afi-vpls 1:1 update lo0 afi-vpls 1:3 bridge 3 afi-vpls 1:3 update lo0 afi-vpls 1:5 bridge 5 afi-vpls 1:5 update lo0 exit router bgp6 1 vrf v1 address vpls rtfilter local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-out afi-vpls 1:1 bridge 2 afi-vpls 1:1 update lo0 afi-vpls 1:4 bridge 4 afi-vpls 1:4 update lo0 afi-vpls 1:6 bridge 6 afi-vpls 1:6 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp596.tst000066400000000000000000000077231471627602100166740ustar00rootroot00000000000000description evpn/pbb with ingress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:13 mac-learn private exit bridge 4 rd 1:4 rt-both 1:14 mac-learn private exit bridge 5 rd 1:5 rt-both 1:15 mac-learn private exit bridge 6 rd 1:6 rt-both 1:16 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 maximum-prefix-in 5 50 neigh 2.2.2.2 route-target-filter-in afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 103 bridge 3 afi-evpn 103 update lo0 afi-evpn 105 bridge 5 afi-evpn 105 update lo0 exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 maximum-prefix-in 5 50 neigh 4321::2 route-target-filter-in afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 104 bridge 4 afi-evpn 104 update lo0 afi-evpn 106 bridge 6 afi-evpn 106 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:23 mac-learn private exit bridge 4 rd 1:4 rt-both 1:24 mac-learn private exit bridge 5 rd 1:5 rt-both 1:25 mac-learn private exit bridge 6 rd 1:6 rt-both 1:26 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-in afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 103 bridge 3 afi-evpn 103 update lo0 afi-evpn 105 bridge 5 afi-evpn 105 update lo0 exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-in afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 104 bridge 4 afi-evpn 104 update lo0 afi-evpn 106 bridge 6 afi-evpn 106 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp597.tst000066400000000000000000000077261471627602100167000ustar00rootroot00000000000000description evpn/pbb with egress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:13 mac-learn private exit bridge 4 rd 1:4 rt-both 1:14 mac-learn private exit bridge 5 rd 1:5 rt-both 1:15 mac-learn private exit bridge 6 rd 1:6 rt-both 1:16 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 pmsi neigh 2.2.2.2 maximum-prefix-in 5 50 neigh 2.2.2.2 route-target-filter-out afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 103 bridge 3 afi-evpn 103 update lo0 afi-evpn 105 bridge 5 afi-evpn 105 update lo0 exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 pmsi neigh 4321::2 maximum-prefix-in 5 50 neigh 4321::2 route-target-filter-out afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 104 bridge 4 afi-evpn 104 update lo0 afi-evpn 106 bridge 6 afi-evpn 106 update lo0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 rd 1:1 rt-both 1:1 mac-learn private exit bridge 2 rd 1:2 rt-both 1:2 mac-learn private exit bridge 3 rd 1:3 rt-both 1:23 mac-learn private exit bridge 4 rd 1:4 rt-both 1:24 mac-learn private exit bridge 5 rd 1:5 rt-both 1:25 mac-learn private exit bridge 6 rd 1:6 rt-both 1:26 mac-learn private exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int bvi1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:: exit int bvi2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 pmsi neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-out afi-evpn 101 bridge 1 afi-evpn 101 update lo0 afi-evpn 103 bridge 3 afi-evpn 103 update lo0 afi-evpn 105 bridge 5 afi-evpn 105 update lo0 exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 pmsi neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-out afi-evpn 101 bridge 2 afi-evpn 101 update lo0 afi-evpn 104 bridge 4 afi-evpn 104 update lo0 afi-evpn 106 bridge 6 afi-evpn 106 update lo0 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 r1 tping 100 60 3333::2 vrf v1 r1 tping 100 60 4.4.4.2 vrf v1 r1 tping 100 60 4444::2 vrf v1 r2 tping 100 60 3.3.3.1 vrf v1 r2 tping 100 60 3333::1 vrf v1 r2 tping 100 60 4.4.4.1 vrf v1 r2 tping 100 60 4444::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp598.tst000066400000000000000000000027401471627602100166700ustar00rootroot00000000000000description ebgp ao password addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 authen-type sha1 1 neigh 1.1.1.2 password test red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 authen-type sha1 1 neigh 1234:1::2 password test red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 authen-type sha1 1 neigh 1.1.1.1 password test red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 authen-type sha1 1 neigh 1234:1::1 password test red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp599.tst000066400000000000000000000111271471627602100166700ustar00rootroot00000000000000description bgp maximum prefix out addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.32 255.255.255.255 ipv6 addr 4321::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v1 ipv4 addr 2.2.2.42 255.255.255.255 ipv6 addr 4321::42 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v1 ipv4 addr 2.2.2.52 255.255.255.255 ipv6 addr 4321::52 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo6 vrf for v1 ipv4 addr 2.2.2.62 255.255.255.255 ipv6 addr 4321::62 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo7 vrf for v1 ipv4 addr 2.2.2.72 255.255.255.255 ipv6 addr 4321::72 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo8 vrf for v1 ipv4 addr 2.2.2.82 255.255.255.255 ipv6 addr 4321::82 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 maximum-prefix-out 3 50 aggregate 2.2.2.0/24 summary red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 maximum-prefix-out 3 50 aggregate 4321::/32 summary red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send no aggregate 2.2.2.0/24 summary r2 send exit r2 send router bgp6 1 r2 send no aggregate 4321::/32 summary r2 send end r1 tping 0 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 0 60 2.2.2.22 vrf v1 r1 tping 0 60 4321::22 vrf v1 r2 tping 0 60 2.2.2.1 vrf v1 r2 tping 0 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 0 60 2.2.2.21 vrf v1 r2 tping 0 60 4321::21 vrf v1 r2 send conf t r2 send router bgp4 1 r2 send aggregate 2.2.2.0/24 summary r2 send exit r2 send router bgp6 1 r2 send aggregate 4321::/32 summary r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp600.tst000066400000000000000000000050611471627602100166470ustar00rootroot00000000000000description bgp attribute filtering addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 attribute-filter 5 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 attribute-filter 5 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 attribute-filter 5 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 attribute-filter 5 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set locpref 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match locpref 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp601.tst000066400000000000000000000063121471627602100166500ustar00rootroot00000000000000description bgp unknown attribute ingress addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 unknowns-in all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 unknowns-in all neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 unknowns-in all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect neigh 1234::2 unknowns-in all neigh 1234::3 remote-as 1 neigh 1234::3 route-reflect neigh 1234::3 unknowns-in all neigh 1234::4 remote-as 1 neigh 1234::4 route-reflect neigh 1234::4 unknowns-in all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit route-map all action permit exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match unknown 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 unknowns-in all neigh 1.1.1.1 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-map-in rm1 neigh 1234::1 unknowns-in all neigh 1234::1 unknowns-out all red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:ffff:: exit route-map all action permit exit ! r2 tping 100 60 1.1.1.1 vrf v1 r2 send pack bgpattr v1 eth1 1.1.1.1 1 2.2.2.2/32 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r2 read wait r4 tping 100 60 1234::1 vrf v1 r4 send pack bgpattr v1 eth1 1234::1 1 4321::4/128 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r4 read wait r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 freeRtr-24.11.16/cfg/rout-bgp602.tst000066400000000000000000000063171471627602100166560ustar00rootroot00000000000000description bgp unknown attribute egress addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 unknowns-out all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 unknowns-out all neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect neigh 1234::2 unknowns-out all neigh 1234::3 remote-as 1 neigh 1234::3 route-reflect neigh 1234::3 unknowns-out all neigh 1234::4 remote-as 1 neigh 1234::4 route-reflect neigh 1234::4 unknowns-out all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit route-map all action permit exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match unknown 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 unknowns-in all neigh 1.1.1.1 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-map-in rm1 neigh 1234::1 unknowns-in all neigh 1234::1 unknowns-out all red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:ffff:: exit route-map all action permit exit ! r2 tping 100 60 1.1.1.1 vrf v1 r2 send pack bgpattr v1 eth1 1.1.1.1 1 2.2.2.2/32 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r2 read wait r4 tping 100 60 1234::1 vrf v1 r4 send pack bgpattr v1 eth1 1234::1 1 4321::4/128 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r4 read wait r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 freeRtr-24.11.16/cfg/rout-bgp603.tst000066400000000000000000000066261471627602100166620ustar00rootroot00000000000000description bgp routemap filtering with unknown attribute addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 unknowns-in all neigh 1.1.1.2 unknowns-out all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 unknowns-in all neigh 1.1.1.3 unknowns-out all neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 unknowns-in all neigh 1.1.1.4 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect neigh 1234::2 unknowns-in all neigh 1234::2 unknowns-out all neigh 1234::3 remote-as 1 neigh 1234::3 route-reflect neigh 1234::3 unknowns-in all neigh 1234::3 unknowns-out all neigh 1234::4 remote-as 1 neigh 1234::4 route-reflect neigh 1234::4 unknowns-in all neigh 1234::4 unknowns-out all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit route-map all action permit exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match unknown 2 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 unknowns-in all neigh 1.1.1.1 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-map-in rm1 neigh 1234::1 unknowns-in all neigh 1234::1 unknowns-out all red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:ffff:: exit route-map all action permit exit ! r2 tping 100 60 1.1.1.1 vrf v1 r2 send pack bgpattr v1 eth1 1.1.1.1 1 2.2.2.2/32 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r2 read wait r4 tping 100 60 1234::1 vrf v1 r4 send pack bgpattr v1 eth1 1234::1 1 4321::4/128 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r4 read wait r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 freeRtr-24.11.16/cfg/rout-bgp604.tst000066400000000000000000000066121471627602100166560ustar00rootroot00000000000000description bgp routepolicy filtering with unknown attribute addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int eth3 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 unknowns-in all neigh 1.1.1.2 unknowns-out all neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 unknowns-in all neigh 1.1.1.3 unknowns-out all neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 unknowns-in all neigh 1.1.1.4 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect neigh 1234::2 unknowns-in all neigh 1234::2 unknowns-out all neigh 1234::3 remote-as 1 neigh 1234::3 route-reflect neigh 1234::3 unknowns-in all neigh 1234::3 unknowns-out all neigh 1234::4 remote-as 1 neigh 1234::4 route-reflect neigh 1234::4 unknowns-in all neigh 1234::4 unknowns-out all red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit route-map all action permit exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit route-policy rm1 if unknown 2 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 unknowns-in all neigh 1.1.1.1 unknowns-out all red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-policy-in rm1 neigh 1234::1 unknowns-in all neigh 1234::1 unknowns-out all red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:ffff:: exit route-map all action permit exit ! r2 tping 100 60 1.1.1.1 vrf v1 r2 send pack bgpattr v1 eth1 1.1.1.1 1 2.2.2.2/32 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r2 read wait r4 tping 100 60 1234::1 vrf v1 r4 send pack bgpattr v1 eth1 1234::1 1 4321::4/128 all 255 4 3 2 1 2 3 4 , 0 1 2 3 2 1 r4 read wait r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 0 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 freeRtr-24.11.16/cfg/rout-bgp605.tst000066400000000000000000000062611471627602100166570ustar00rootroot00000000000000description ebgp with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp606.tst000066400000000000000000000077331471627602100166650ustar00rootroot00000000000000description ibgp with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.11 vrf v1 sou lo0 r2 tping 0 60 2.2.2.13 vrf v1 sou lo0 r2 tping 0 60 4321::11 vrf v1 sou lo0 r2 tping 0 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp607.tst000066400000000000000000000071061471627602100166600ustar00rootroot00000000000000description bgp additional path with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx ctp neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 additional-path-rx ctp red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx ctp neigh 1234:2::2 remote-as 3 neigh 1234:2::2 additional-path-rx ctp red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 additional-path-rx ctp neigh 1.1.1.5 additional-path-tx ctp red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 additional-path-tx ctp neigh 1234:2::1 additional-path-tx ctp red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp608.tst000066400000000000000000000074661471627602100166720ustar00rootroot00000000000000description ebgp with php ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 label-pop neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 label-pop neigh 1234:2::2 remote-as 3 neigh 1234:2::2 label-pop red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 2.2.2.1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.3 vrf v1 sou lo0 r2 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp609.tst000066400000000000000000000101031471627602100166510ustar00rootroot00000000000000description ibgp with php ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 label-pop red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 label-pop red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.11 vrf v1 sou lo0 r2 tping 0 60 2.2.2.13 vrf v1 sou lo0 r2 tping 0 60 4321::11 vrf v1 sou lo0 r2 tping 0 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp610.tst000066400000000000000000000103131471627602100166440ustar00rootroot00000000000000description bgp additional path with php ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop neigh 1.1.1.2 additional-path-tx ctp red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop neigh 1234:1::2 additional-path-tx ctp red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 label-pop neigh 1.1.1.1 additional-path-rx ctp neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 label-pop neigh 1.1.1.6 additional-path-rx ctp red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 label-pop neigh 1234:1::1 additional-path-rx lab neigh 1234:2::2 remote-as 3 neigh 1234:2::2 label-pop neigh 1234:2::2 additional-path-rx lab red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 label-pop neigh 1.1.1.5 additional-path-rx lab neigh 1.1.1.5 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 label-pop neigh 1234:2::1 additional-path-tx lab neigh 1234:2::1 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 2.2.2.1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.3 vrf v1 sou lo0 r2 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp611.tst000066400000000000000000000072251471627602100166550ustar00rootroot00000000000000description ibgp rr with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.12 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::12 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo0 r1 tping 100 60 4321::12 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.11 vrf v1 sou lo0 r2 tping 100 60 2.2.2.13 vrf v1 sou lo0 r2 tping 100 60 4321::11 vrf v1 sou lo0 r2 tping 100 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r3 tping 100 60 2.2.2.12 vrf v1 sou lo0 r3 tping 100 60 4321::12 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp612.tst000066400000000000000000000057261471627602100166620ustar00rootroot00000000000000description confed bgp with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 confed neigh 1234::3 remote-as 3 neigh 1234::3 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp613.tst000066400000000000000000000056341471627602100166610ustar00rootroot00000000000000description bgp route server with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp614.tst000066400000000000000000000062201471627602100166520ustar00rootroot00000000000000description bgp soft-reconfig with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 soft-reconfig red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp615.tst000066400000000000000000000043501471627602100166550ustar00rootroot00000000000000description ctp bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp616.tst000066400000000000000000000043511471627602100166570ustar00rootroot00000000000000description ctp bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp617.tst000066400000000000000000000044521471627602100166620ustar00rootroot00000000000000description ctp bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp618.tst000066400000000000000000000044531471627602100166640ustar00rootroot00000000000000description ctp bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp619.tst000066400000000000000000000045631471627602100166670ustar00rootroot00000000000000description ctp bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp620.tst000066400000000000000000000045641471627602100166600ustar00rootroot00000000000000description ctp bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp621.tst000066400000000000000000000046651471627602100166630ustar00rootroot00000000000000description ctp bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp622.tst000066400000000000000000000046661471627602100166650ustar00rootroot00000000000000description ctp bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp623.tst000066400000000000000000000043211471627602100166520ustar00rootroot00000000000000description ctp bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp624.tst000066400000000000000000000043221471627602100166540ustar00rootroot00000000000000description ctp bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp625.tst000066400000000000000000000045341471627602100166620ustar00rootroot00000000000000description ctp bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp626.tst000066400000000000000000000045351471627602100166640ustar00rootroot00000000000000description ctp bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp627.tst000066400000000000000000000024261471627602100166620ustar00rootroot00000000000000description ctp bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 default exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp628.tst000066400000000000000000000044771471627602100166730ustar00rootroot00000000000000description ctp bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp629.tst000066400000000000000000000144651471627602100166720ustar00rootroot00000000000000description bgp change in metric with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp630.tst000066400000000000000000000204001471627602100166440ustar00rootroot00000000000000description ibgp rr prefix movement with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp631.tst000066400000000000000000000120511471627602100166500ustar00rootroot00000000000000description ibgp rr prefix withdraw with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp632.tst000066400000000000000000000036321471627602100166560ustar00rootroot00000000000000description unicast+octp over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp633.tst000066400000000000000000000040441471627602100166550ustar00rootroot00000000000000description unicast+octp over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp634.tst000066400000000000000000000044161471627602100166610ustar00rootroot00000000000000description unicast+octp over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-rx uni octp neigh 1.1.1.2 additional-path-tx uni octp afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-rx uni octp neigh 1234:1::2 additional-path-Tx uni octp afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx uni octp neigh 1.1.1.1 additional-path-tx uni octp afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx uni octp neigh 1234:1::1 additional-path-tx uni octp afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp635.tst000066400000000000000000000042371471627602100166630ustar00rootroot00000000000000description unicast+octp over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-server neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp636.tst000066400000000000000000000025311471627602100166570ustar00rootroot00000000000000description unicast+octp over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni octp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp637.tst000066400000000000000000000041061471627602100166600ustar00rootroot00000000000000description unicast+octp over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni octp local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni octp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni octp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflect neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp638.tst000066400000000000000000000027631471627602100166700ustar00rootroot00000000000000description unicast+octp over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp639.tst000066400000000000000000000034211471627602100166610ustar00rootroot00000000000000description octp over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp640.tst000066400000000000000000000035111471627602100166510ustar00rootroot00000000000000description octp over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp641.tst000066400000000000000000000050021471627602100166470ustar00rootroot00000000000000description octp over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp642.tst000066400000000000000000000050751471627602100166620ustar00rootroot00000000000000description octp over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp643.tst000066400000000000000000000051331471627602100166560ustar00rootroot00000000000000description octp over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp644.tst000066400000000000000000000036271471627602100166650ustar00rootroot00000000000000description octp over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp645.tst000066400000000000000000000041301471627602100166540ustar00rootroot00000000000000description octp over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx octp neigh 1.1.1.2 additional-path-tx octp afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 additional-path-rx octp neigh 1234::2 additional-path-tx octp afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx octp neigh 1.1.1.1 additional-path-tx octp afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 additional-path-rx octp neigh 1234::1 additional-path-tx octp afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp646.tst000066400000000000000000000025671471627602100166710ustar00rootroot00000000000000description octp bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-default afi-other ena exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-default afi-other ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp647.tst000066400000000000000000000045351471627602100166670ustar00rootroot00000000000000description octp bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp648.tst000066400000000000000000000045361471627602100166710ustar00rootroot00000000000000description octp bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp649.tst000066400000000000000000000046371471627602100166740ustar00rootroot00000000000000description octp bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp650.tst000066400000000000000000000046401471627602100166560ustar00rootroot00000000000000description octp bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp651.tst000066400000000000000000000047501471627602100166610ustar00rootroot00000000000000description octp bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp652.tst000066400000000000000000000047511471627602100166630ustar00rootroot00000000000000description octp bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp653.tst000066400000000000000000000050521471627602100166570ustar00rootroot00000000000000description octp bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp654.tst000066400000000000000000000050531471627602100166610ustar00rootroot00000000000000description octp bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp655.tst000066400000000000000000000045061471627602100166640ustar00rootroot00000000000000description octp bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp656.tst000066400000000000000000000045071471627602100166660ustar00rootroot00000000000000description octp bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp657.tst000066400000000000000000000047211471627602100166650ustar00rootroot00000000000000description octp bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp658.tst000066400000000000000000000047221471627602100166670ustar00rootroot00000000000000description octp bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp659.tst000066400000000000000000000046501471627602100166700ustar00rootroot00000000000000description octp bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp660.tst000066400000000000000000000150211471627602100166520ustar00rootroot00000000000000description octp bgp change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn route-map rm1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp661.tst000066400000000000000000000207641471627602100166650ustar00rootroot00000000000000description octp ibgp rr prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other advertise 4321::2/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other advertise 2.2.2.2/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other advertise 4321::3/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other advertise 2.2.2.3/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp662.tst000066400000000000000000000124211471627602100166550ustar00rootroot00000000000000description octp ibgp rr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp663.tst000066400000000000000000000126631471627602100166660ustar00rootroot00000000000000description octp ibgp fullmesh prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp664.tst000066400000000000000000000036331471627602100166640ustar00rootroot00000000000000description olab+octp over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address olab octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address olab octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp665.tst000066400000000000000000000121161471627602100166610ustar00rootroot00000000000000description bgp routemap rd rewrite addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-map rm1 sequence 10 act deny sequence 10 match rd 1:3 sequence 20 act perm exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 vpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-map rm1 sequence 10 act perm sequence 10 match rd 1:3 sequence 10 set rd 1:33 sequence 20 act perm exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 vpn-route-map-out rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 vpn-route-map-out rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp666.tst000066400000000000000000000120261471627602100166620ustar00rootroot00000000000000description bgp routepolicy rd rewrite addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-policy rm1 if rd 1:3 drop else pass enif exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 vpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 vpn-route-policy-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit route-policy rm1 if rd 1:3 set rd 1:33 pass else pass enif exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 vpn-route-policy-out rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 vpn-route-policy-out rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp667.tst000066400000000000000000000202561471627602100166670ustar00rootroot00000000000000description bgp csc vpn with ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 4 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.1 neigh 4321::4 remote-as 4 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.2 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::2 router bgp4 1 vrf v2 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.1 neigh 3.3.3.102 remote-as 2 neigh 3.3.3.102 update lo0 neigh 3.3.3.102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.1 neigh 3333::102 remote-as 2 neigh 3333::102 update lo0 neigh 3333::102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::1 ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.6 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.102 255.255.255.255 ipv6 addr 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.5 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::5 router bgp4 1 vrf v2 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.6 remote-as 3 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:2::2 remote-as 3 red conn red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 3.3.3.101 remote-as 2 neigh 3.3.3.101 update lo0 neigh 3.3.3.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 3333::101 remote-as 2 neigh 3333::101 update lo0 neigh 3333::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 4 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.2 neigh 4321::1 remote-as 4 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r2 tping 100 60 3.3.3.102 vrf v1 sou lo0 r2 tping 100 60 3333::102 vrf v1 sou lo0 r4 tping 100 60 3.3.3.101 vrf v1 sou lo0 r4 tping 100 60 3333::101 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v2 sou lo1 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 2.2.2.4 vrf v2 sou lo1 r2 tping 100 60 4321::1 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r2 tping 100 60 4321::4 vrf v2 sou lo1 r4 tping 100 60 2.2.2.1 vrf v2 sou lo1 r4 tping 100 60 2.2.2.2 vrf v2 sou lo1 r4 tping 100 60 2.2.2.4 vrf v2 sou lo1 r4 tping 100 60 4321::1 vrf v2 sou lo1 r4 tping 100 60 4321::2 vrf v2 sou lo1 r4 tping 100 60 4321::4 vrf v2 sou lo1 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.2 vrf v1 sou lo0 r5 tping 100 60 2.2.2.3 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 4321::2 vrf v1 sou lo0 r5 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4.4.4.4 vrf v3 sou lo1 r1 tping 100 60 4444::4 vrf v3 sou lo1 r5 tping 100 60 4.4.4.1 vrf v3 sou lo1 r5 tping 100 60 4444::1 vrf v3 sou lo1 freeRtr-24.11.16/cfg/rout-bgp668.tst000066400000000000000000000067701471627602100166750ustar00rootroot00000000000000description ctp colors over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp669.tst000066400000000000000000000071421471627602100166700ustar00rootroot00000000000000description other ctp colors over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp670.tst000066400000000000000000000067701471627602100166660ustar00rootroot00000000000000description ctp colors over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp671.tst000066400000000000000000000071421471627602100166610ustar00rootroot00000000000000description other ctp colors over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp672.tst000066400000000000000000000074671471627602100166740ustar00rootroot00000000000000description ctp colors over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx ctp neigh 2.2.2.2 additional-path-tx ctp afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx ctp neigh 4321::2 additional-path-tx ctp afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx ctp neigh 2.2.2.1 additional-path-tx ctp afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx ctp neigh 4321::1 additional-path-tx ctp afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp673.tst000066400000000000000000000076511471627602100166700ustar00rootroot00000000000000description other ctp colors over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx octp neigh 2.2.2.2 additional-path-tx octp afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx octp neigh 4321::2 additional-path-tx octp afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx octp neigh 2.2.2.1 additional-path-tx octp afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx octp neigh 4321::1 additional-path-tx octp afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp674.tst000066400000000000000000000110011471627602100166510ustar00rootroot00000000000000description ctp colors over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address ctp local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address ctp local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp675.tst000066400000000000000000000111551471627602100166640ustar00rootroot00000000000000description other ctp colors over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address octp local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address octp local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp676.tst000066400000000000000000000071261471627602100166700ustar00rootroot00000000000000description ctp colors over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp677.tst000066400000000000000000000073001471627602100166630ustar00rootroot00000000000000description other ctp colors over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp678.tst000066400000000000000000000110431471627602100166630ustar00rootroot00000000000000description ctp colors over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp679.tst000066400000000000000000000112171471627602100166670ustar00rootroot00000000000000description other ctp colors over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp680.tst000066400000000000000000000071761471627602100166700ustar00rootroot00000000000000description ctp colors over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 soft-reconfig neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 soft-reconfig neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 soft-reconfig neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp681.tst000066400000000000000000000071641471627602100166660ustar00rootroot00000000000000description other ctp colors over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp682.tst000066400000000000000000000050651471627602100166650ustar00rootroot00000000000000description ebgp with strict bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit route-map rm1 set aspath 3 3 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 bfd-trigger strict neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.6 remote-as 2 neigh 1.1.1.6 bfd-trigger strict red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 bfd-trigger strict neigh 1234:1::2 route-map-in rm1 neigh 1234:1::2 route-map-out rm1 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 bfd-trigger strict red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 bfd-trigger strict neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 bfd-trigger strict red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 bfd-trigger strict neigh 1234:2::1 remote-as 1 neigh 1234:2::1 bfd-trigger strict red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp683.tst000066400000000000000000000050351471627602100166630ustar00rootroot00000000000000description ebgp with asymmetric bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit route-map rm1 set aspath 3 3 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 bfd-trigger strict neigh 1.1.1.2 route-map-in rm1 neigh 1.1.1.2 route-map-out rm1 neigh 1.1.1.6 remote-as 2 neigh 1.1.1.6 bfd-trigger strict red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 bfd-trigger strict neigh 1234:1::2 route-map-in rm1 neigh 1234:1::2 route-map-out rm1 neigh 1234:2::2 remote-as 2 neigh 1234:2::2 bfd-trigger strict red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 bfd-trigger neigh 1.1.1.5 remote-as 1 neigh 1.1.1.5 bfd-trigger red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 bfd-trigger neigh 1234:2::1 remote-as 1 neigh 1234:2::1 bfd-trigger red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth2 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp684.tst000066400000000000000000000026171471627602100166670ustar00rootroot00000000000000description unicast+rpd over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rpd local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rpd local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rpd local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rpd local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp685.tst000066400000000000000000000030321471627602100166600ustar00rootroot00000000000000description unicast+rpd over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rpd local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rpd local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rpd local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rpd local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp686.tst000066400000000000000000000033741471627602100166720ustar00rootroot00000000000000description unicast+rpd over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rpd local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni rpd neigh 1.1.1.2 additional-path-tx uni rpd red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rpd local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni rpd neigh 1234:1::2 additional-path-tx uni rpd red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni rpd local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni rpd neigh 1.1.1.1 additional-path-tx uni rpd red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni rpd local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni rpd neigh 1234:1::1 additional-path-tx uni rpd red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp687.tst000066400000000000000000000026751471627602100166760ustar00rootroot00000000000000description legacy bgp session addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 no neigh 1.1.1.2 wide-as no neigh 1.1.1.2 route-refresh red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 no neigh 1234:1::2 wide-as no neigh 1234:1::2 route-refresh red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 no neigh 1.1.1.1 wide-as no neigh 1.1.1.1 route-refresh red conn exit router bgp6 1 vrf v1 no safe-ebgp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 no neigh 1234:1::1 wide-as no neigh 1234:1::1 route-refresh red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp688.tst000066400000000000000000000057531471627602100166770ustar00rootroot00000000000000description bgp auto summarization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 autosumm red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 autosumm red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp689.tst000066400000000000000000000312111471627602100166640ustar00rootroot00000000000000description bgp interas vpn with multiple labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3331::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 multiple-label vpnuni afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 multiple-label vpnuni afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3332::2 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 multiple-label vpnuni neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 multiple-label vpnuni neigh 2.2.2.3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 multiple-label vpnuni neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 multiple-label vpnuni neigh 4321::3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 1.1.1.10 255.255.255.255 1.1.1.10 mplsimp ipv6 route v1 1234:3::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 mplsimp router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 multiple-label vpnuni neigh 2.2.2.2 next-hop-multi neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 send-comm both neigh 1.1.1.10 multiple-label vpnuni neigh 1.1.1.10 next-hop-multi afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 multiple-label vpnuni neigh 4321::2 next-hop-multi neigh 1234:3::2 remote-as 2 neigh 1234:3::2 send-comm both neigh 1234:3::2 multiple-label vpnuni neigh 1234:3::2 next-hop-multi afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3334::4 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 1.1.1.9 255.255.255.255 1.1.1.9 mplsimp ipv6 route v1 1234:3::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 mplsimp router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 multiple-label vpnuni neigh 2.2.2.5 next-hop-multi neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 send-comm both neigh 1.1.1.9 multiple-label vpnuni neigh 1.1.1.9 next-hop-multi afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 multiple-label vpnuni neigh 4321::5 next-hop-multi neigh 1234:3::1 remote-as 1 neigh 1234:3::1 send-comm both neigh 1234:3::1 multiple-label vpnuni neigh 1234:3::1 next-hop-multi afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3335::5 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 multiple-label vpnuni neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 multiple-label vpnuni neigh 2.2.2.6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 multiple-label vpnuni neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 multiple-label vpnuni neigh 4321::6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3336::6 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 multiple-label vpnuni afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 multiple-label vpnuni afi-vrf v2 ena afi-vrf v2 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3332::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3331::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3331::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3332::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3335::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3336::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3334::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3336::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3334::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3335::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3331::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3332::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3331::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3332::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3331::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3332::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3334::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3335::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3336::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3334::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3335::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3336::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3334::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3335::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3336::6 vrf v2 sou lo1 freeRtr-24.11.16/cfg/rout-bgp690.tst000066400000000000000000000316321471627602100166630ustar00rootroot00000000000000description bgp interas othervpn with multiple labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3331::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 multiple-label vpnuni ovpnuni afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 multiple-label vpnuni ovpnuni exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3332::2 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 multiple-label vpnuni ovpnuni neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 multiple-label vpnuni ovpnuni neigh 2.2.2.3 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 multiple-label vpnuni ovpnuni neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 multiple-label vpnuni ovpnuni neigh 4321::3 route-reflect exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 1.1.1.10 255.255.255.255 1.1.1.10 mplsimp ipv6 route v1 1234:3::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 mplsimp router bgp4 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 multiple-label vpnuni ovpnuni neigh 2.2.2.2 next-hop-multi neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 send-comm both neigh 1.1.1.10 multiple-label vpnuni ovpnuni neigh 1.1.1.10 next-hop-multi afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 multiple-label vpnuni ovpnuni neigh 4321::2 next-hop-multi neigh 1234:3::2 remote-as 2 neigh 1234:3::2 send-comm both neigh 1234:3::2 multiple-label vpnuni ovpnuni neigh 1234:3::2 next-hop-multi exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3334::4 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 1.1.1.9 255.255.255.255 1.1.1.9 mplsimp ipv6 route v1 1234:3::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 mplsimp router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 multiple-label vpnuni ovpnuni neigh 2.2.2.5 next-hop-multi neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 send-comm both neigh 1.1.1.9 multiple-label vpnuni ovpnuni neigh 1.1.1.9 next-hop-multi afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 multiple-label vpnuni ovpnuni neigh 4321::5 next-hop-multi neigh 1234:3::1 remote-as 1 neigh 1234:3::1 send-comm both neigh 1234:3::1 multiple-label vpnuni ovpnuni neigh 1234:3::1 next-hop-multi exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3335::5 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both neigh 2.2.2.4 multiple-label vpnuni ovpnuni neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 send-comm both neigh 2.2.2.6 multiple-label vpnuni ovpnuni neigh 2.2.2.6 route-reflect afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 send-comm both neigh 4321::4 multiple-label vpnuni ovpnuni neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 send-comm both neigh 4321::6 multiple-label vpnuni ovpnuni neigh 4321::6 route-reflect exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3336::6 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 send-comm both neigh 2.2.2.5 multiple-label vpnuni ovpnuni afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni ovpnuni local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 send-comm both neigh 4321::5 multiple-label vpnuni ovpnuni exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v2 sou lo1 r1 tping 100 60 3332::2 vrf v2 sou lo1 r1 tping 100 60 3.3.3.3 vrf v2 sou lo1 r1 tping 100 60 3333::3 vrf v2 sou lo1 r2 tping 100 60 3.3.3.1 vrf v2 sou lo1 r2 tping 100 60 3331::1 vrf v2 sou lo1 r2 tping 100 60 3.3.3.3 vrf v2 sou lo1 r2 tping 100 60 3333::3 vrf v2 sou lo1 r3 tping 100 60 3.3.3.1 vrf v2 sou lo1 r3 tping 100 60 3331::1 vrf v2 sou lo1 r3 tping 100 60 3.3.3.2 vrf v2 sou lo1 r3 tping 100 60 3332::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.5 vrf v2 sou lo1 r4 tping 100 60 3335::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.6 vrf v2 sou lo1 r4 tping 100 60 3336::6 vrf v2 sou lo1 r5 tping 100 60 3.3.3.4 vrf v2 sou lo1 r5 tping 100 60 3334::4 vrf v2 sou lo1 r5 tping 100 60 3.3.3.6 vrf v2 sou lo1 r5 tping 100 60 3336::6 vrf v2 sou lo1 r6 tping 100 60 3.3.3.4 vrf v2 sou lo1 r6 tping 100 60 3334::4 vrf v2 sou lo1 r6 tping 100 60 3.3.3.5 vrf v2 sou lo1 r6 tping 100 60 3335::5 vrf v2 sou lo1 r4 tping 100 60 3.3.3.1 vrf v2 sou lo1 r4 tping 100 60 3331::1 vrf v2 sou lo1 r4 tping 100 60 3.3.3.2 vrf v2 sou lo1 r4 tping 100 60 3332::2 vrf v2 sou lo1 r4 tping 100 60 3.3.3.3 vrf v2 sou lo1 r4 tping 100 60 3333::3 vrf v2 sou lo1 r5 tping 100 60 3.3.3.1 vrf v2 sou lo1 r5 tping 100 60 3331::1 vrf v2 sou lo1 r5 tping 100 60 3.3.3.2 vrf v2 sou lo1 r5 tping 100 60 3332::2 vrf v2 sou lo1 r5 tping 100 60 3.3.3.3 vrf v2 sou lo1 r5 tping 100 60 3333::3 vrf v2 sou lo1 r6 tping 100 60 3.3.3.1 vrf v2 sou lo1 r6 tping 100 60 3331::1 vrf v2 sou lo1 r6 tping 100 60 3.3.3.2 vrf v2 sou lo1 r6 tping 100 60 3332::2 vrf v2 sou lo1 r6 tping 100 60 3.3.3.3 vrf v2 sou lo1 r6 tping 100 60 3333::3 vrf v2 sou lo1 r1 tping 100 60 3.3.3.4 vrf v2 sou lo1 r1 tping 100 60 3334::4 vrf v2 sou lo1 r1 tping 100 60 3.3.3.5 vrf v2 sou lo1 r1 tping 100 60 3335::5 vrf v2 sou lo1 r1 tping 100 60 3.3.3.6 vrf v2 sou lo1 r1 tping 100 60 3336::6 vrf v2 sou lo1 r2 tping 100 60 3.3.3.4 vrf v2 sou lo1 r2 tping 100 60 3334::4 vrf v2 sou lo1 r2 tping 100 60 3.3.3.5 vrf v2 sou lo1 r2 tping 100 60 3335::5 vrf v2 sou lo1 r2 tping 100 60 3.3.3.6 vrf v2 sou lo1 r2 tping 100 60 3336::6 vrf v2 sou lo1 r3 tping 100 60 3.3.3.4 vrf v2 sou lo1 r3 tping 100 60 3334::4 vrf v2 sou lo1 r3 tping 100 60 3.3.3.5 vrf v2 sou lo1 r3 tping 100 60 3335::5 vrf v2 sou lo1 r3 tping 100 60 3.3.3.6 vrf v2 sou lo1 r3 tping 100 60 3336::6 vrf v2 sou lo1 freeRtr-24.11.16/cfg/rout-bgp691.tst000066400000000000000000000277461471627602100166770ustar00rootroot00000000000000description bgp interas labels with multiple labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3331::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 multiple-label lab justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 multiple-label lab justadvert lo1 exit int pweth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 pseudo v1 lo1 pweompls 3.3.3.6 1234 exit int pweth2 vrf for v1 ipv4 addr 4.4.5.1 255.255.255.0 pseudo v1 lo1 pweompls 3336::6 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3332::2 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 multiple-label lab neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 multiple-label lab neigh 2.2.2.3 route-reflect justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 multiple-label lab neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 multiple-label lab neigh 4321::3 route-reflect justadvert lo1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 1.1.1.10 255.255.255.255 1.1.1.10 mplsimp ipv6 route v1 1234:3::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 mplsimp router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 multiple-label lab neigh 2.2.2.2 next-hop-multi neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 multiple-label lab neigh 1.1.1.10 next-hop-multi justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 multiple-label lab neigh 4321::2 next-hop-multi neigh 1234:3::2 remote-as 2 neigh 1234:3::2 multiple-label lab neigh 1234:3::2 next-hop-multi justadvert lo1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3334::4 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 1.1.1.9 255.255.255.255 1.1.1.9 mplsimp ipv6 route v1 1234:3::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 mplsimp router bgp4 2 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 multiple-label lab neigh 2.2.2.5 next-hop-multi neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 multiple-label lab neigh 1.1.1.9 next-hop-multi justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 multiple-label lab neigh 4321::5 next-hop-multi neigh 1234:3::1 remote-as 1 neigh 1234:3::1 multiple-label lab neigh 1234:3::1 next-hop-multi justadvert lo1 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3335::5 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 multiple-label lab neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 multiple-label lab neigh 2.2.2.6 route-reflect justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 multiple-label lab neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 multiple-label lab neigh 4321::6 route-reflect justadvert lo1 exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3336::6 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address lab local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 multiple-label lab justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address lab local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 multiple-label lab justadvert lo1 exit int pweth1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 pseudo v1 lo1 pweompls 3.3.3.1 1234 exit int pweth2 vrf for v1 ipv4 addr 4.4.5.2 255.255.255.0 pseudo v1 lo1 pweompls 3331::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 sou lo1 r1 tping 100 60 3332::2 vrf v1 sou lo1 r1 tping 100 60 3.3.3.3 vrf v1 sou lo1 r1 tping 100 60 3333::3 vrf v1 sou lo1 r2 tping 100 60 3.3.3.1 vrf v1 sou lo1 r2 tping 100 60 3331::1 vrf v1 sou lo1 r2 tping 100 60 3.3.3.3 vrf v1 sou lo1 r2 tping 100 60 3333::3 vrf v1 sou lo1 r3 tping 100 60 3.3.3.1 vrf v1 sou lo1 r3 tping 100 60 3331::1 vrf v1 sou lo1 r3 tping 100 60 3.3.3.2 vrf v1 sou lo1 r3 tping 100 60 3332::2 vrf v1 sou lo1 r4 tping 100 60 3.3.3.5 vrf v1 sou lo1 r4 tping 100 60 3335::5 vrf v1 sou lo1 r4 tping 100 60 3.3.3.6 vrf v1 sou lo1 r4 tping 100 60 3336::6 vrf v1 sou lo1 r5 tping 100 60 3.3.3.4 vrf v1 sou lo1 r5 tping 100 60 3334::4 vrf v1 sou lo1 r5 tping 100 60 3.3.3.6 vrf v1 sou lo1 r5 tping 100 60 3336::6 vrf v1 sou lo1 r6 tping 100 60 3.3.3.4 vrf v1 sou lo1 r6 tping 100 60 3334::4 vrf v1 sou lo1 r6 tping 100 60 3.3.3.5 vrf v1 sou lo1 r6 tping 100 60 3335::5 vrf v1 sou lo1 r4 tping 100 60 3.3.3.1 vrf v1 sou lo1 r4 tping 100 60 3331::1 vrf v1 sou lo1 r4 tping 100 60 3.3.3.2 vrf v1 sou lo1 r4 tping 100 60 3332::2 vrf v1 sou lo1 r4 tping 100 60 3.3.3.3 vrf v1 sou lo1 r4 tping 100 60 3333::3 vrf v1 sou lo1 r5 tping 100 60 3.3.3.1 vrf v1 sou lo1 r5 tping 100 60 3331::1 vrf v1 sou lo1 r5 tping 100 60 3.3.3.2 vrf v1 sou lo1 r5 tping 100 60 3332::2 vrf v1 sou lo1 r5 tping 100 60 3.3.3.3 vrf v1 sou lo1 r5 tping 100 60 3333::3 vrf v1 sou lo1 r6 tping 100 60 3.3.3.1 vrf v1 sou lo1 r6 tping 100 60 3331::1 vrf v1 sou lo1 r6 tping 100 60 3.3.3.2 vrf v1 sou lo1 r6 tping 100 60 3332::2 vrf v1 sou lo1 r6 tping 100 60 3.3.3.3 vrf v1 sou lo1 r6 tping 100 60 3333::3 vrf v1 sou lo1 r1 tping 100 60 3.3.3.4 vrf v1 sou lo1 r1 tping 100 60 3334::4 vrf v1 sou lo1 r1 tping 100 60 3.3.3.5 vrf v1 sou lo1 r1 tping 100 60 3335::5 vrf v1 sou lo1 r1 tping 100 60 3.3.3.6 vrf v1 sou lo1 r1 tping 100 60 3336::6 vrf v1 sou lo1 r2 tping 100 60 3.3.3.4 vrf v1 sou lo1 r2 tping 100 60 3334::4 vrf v1 sou lo1 r2 tping 100 60 3.3.3.5 vrf v1 sou lo1 r2 tping 100 60 3335::5 vrf v1 sou lo1 r2 tping 100 60 3.3.3.6 vrf v1 sou lo1 r2 tping 100 60 3336::6 vrf v1 sou lo1 r3 tping 100 60 3.3.3.4 vrf v1 sou lo1 r3 tping 100 60 3334::4 vrf v1 sou lo1 r3 tping 100 60 3.3.3.5 vrf v1 sou lo1 r3 tping 100 60 3335::5 vrf v1 sou lo1 r3 tping 100 60 3.3.3.6 vrf v1 sou lo1 r3 tping 100 60 3336::6 vrf v1 sou lo1 r1 tping 100 40 4.4.4.2 vrf v1 r6 tping 100 40 4.4.4.1 vrf v1 r1 tping 100 40 4.4.5.2 vrf v1 r6 tping 100 40 4.4.5.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp692.tst000066400000000000000000000277431471627602100166750ustar00rootroot00000000000000description bgp interas ctp with multiple labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3331::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 multiple-label ctp justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 multiple-label ctp justadvert lo1 exit int pweth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 pseudo v1 lo1 pweompls 3.3.3.6 1234 exit int pweth2 vrf for v1 ipv4 addr 4.4.5.1 255.255.255.0 pseudo v1 lo1 pweompls 3336::6 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3332::2 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 multiple-label ctp neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 multiple-label ctp neigh 2.2.2.3 route-reflect justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 multiple-label ctp neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 multiple-label ctp neigh 4321::3 route-reflect justadvert lo1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 1.1.1.10 255.255.255.255 1.1.1.10 mplsimp ipv6 route v1 1234:3::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 mplsimp router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 multiple-label ctp neigh 2.2.2.2 next-hop-multi neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 multiple-label ctp neigh 1.1.1.10 next-hop-multi justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 multiple-label ctp neigh 4321::2 next-hop-multi neigh 1234:3::2 remote-as 2 neigh 1234:3::2 multiple-label ctp neigh 1234:3::2 next-hop-multi justadvert lo1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3334::4 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 1.1.1.9 255.255.255.255 1.1.1.9 mplsimp ipv6 route v1 1234:3::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 mplsimp router bgp4 2 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 multiple-label ctp neigh 2.2.2.5 next-hop-multi neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 multiple-label ctp neigh 1.1.1.9 next-hop-multi justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 multiple-label ctp neigh 4321::5 next-hop-multi neigh 1234:3::1 remote-as 1 neigh 1234:3::1 multiple-label ctp neigh 1234:3::1 next-hop-multi justadvert lo1 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3335::5 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 multiple-label ctp neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 multiple-label ctp neigh 2.2.2.6 route-reflect justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 multiple-label ctp neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 multiple-label ctp neigh 4321::6 route-reflect justadvert lo1 exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3336::6 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address ctp local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 multiple-label ctp justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address ctp local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 multiple-label ctp justadvert lo1 exit int pweth1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 pseudo v1 lo1 pweompls 3.3.3.1 1234 exit int pweth2 vrf for v1 ipv4 addr 4.4.5.2 255.255.255.0 pseudo v1 lo1 pweompls 3331::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 sou lo1 r1 tping 100 60 3332::2 vrf v1 sou lo1 r1 tping 100 60 3.3.3.3 vrf v1 sou lo1 r1 tping 100 60 3333::3 vrf v1 sou lo1 r2 tping 100 60 3.3.3.1 vrf v1 sou lo1 r2 tping 100 60 3331::1 vrf v1 sou lo1 r2 tping 100 60 3.3.3.3 vrf v1 sou lo1 r2 tping 100 60 3333::3 vrf v1 sou lo1 r3 tping 100 60 3.3.3.1 vrf v1 sou lo1 r3 tping 100 60 3331::1 vrf v1 sou lo1 r3 tping 100 60 3.3.3.2 vrf v1 sou lo1 r3 tping 100 60 3332::2 vrf v1 sou lo1 r4 tping 100 60 3.3.3.5 vrf v1 sou lo1 r4 tping 100 60 3335::5 vrf v1 sou lo1 r4 tping 100 60 3.3.3.6 vrf v1 sou lo1 r4 tping 100 60 3336::6 vrf v1 sou lo1 r5 tping 100 60 3.3.3.4 vrf v1 sou lo1 r5 tping 100 60 3334::4 vrf v1 sou lo1 r5 tping 100 60 3.3.3.6 vrf v1 sou lo1 r5 tping 100 60 3336::6 vrf v1 sou lo1 r6 tping 100 60 3.3.3.4 vrf v1 sou lo1 r6 tping 100 60 3334::4 vrf v1 sou lo1 r6 tping 100 60 3.3.3.5 vrf v1 sou lo1 r6 tping 100 60 3335::5 vrf v1 sou lo1 r4 tping 100 60 3.3.3.1 vrf v1 sou lo1 r4 tping 100 60 3331::1 vrf v1 sou lo1 r4 tping 100 60 3.3.3.2 vrf v1 sou lo1 r4 tping 100 60 3332::2 vrf v1 sou lo1 r4 tping 100 60 3.3.3.3 vrf v1 sou lo1 r4 tping 100 60 3333::3 vrf v1 sou lo1 r5 tping 100 60 3.3.3.1 vrf v1 sou lo1 r5 tping 100 60 3331::1 vrf v1 sou lo1 r5 tping 100 60 3.3.3.2 vrf v1 sou lo1 r5 tping 100 60 3332::2 vrf v1 sou lo1 r5 tping 100 60 3.3.3.3 vrf v1 sou lo1 r5 tping 100 60 3333::3 vrf v1 sou lo1 r6 tping 100 60 3.3.3.1 vrf v1 sou lo1 r6 tping 100 60 3331::1 vrf v1 sou lo1 r6 tping 100 60 3.3.3.2 vrf v1 sou lo1 r6 tping 100 60 3332::2 vrf v1 sou lo1 r6 tping 100 60 3.3.3.3 vrf v1 sou lo1 r6 tping 100 60 3333::3 vrf v1 sou lo1 r1 tping 100 60 3.3.3.4 vrf v1 sou lo1 r1 tping 100 60 3334::4 vrf v1 sou lo1 r1 tping 100 60 3.3.3.5 vrf v1 sou lo1 r1 tping 100 60 3335::5 vrf v1 sou lo1 r1 tping 100 60 3.3.3.6 vrf v1 sou lo1 r1 tping 100 60 3336::6 vrf v1 sou lo1 r2 tping 100 60 3.3.3.4 vrf v1 sou lo1 r2 tping 100 60 3334::4 vrf v1 sou lo1 r2 tping 100 60 3.3.3.5 vrf v1 sou lo1 r2 tping 100 60 3335::5 vrf v1 sou lo1 r2 tping 100 60 3.3.3.6 vrf v1 sou lo1 r2 tping 100 60 3336::6 vrf v1 sou lo1 r3 tping 100 60 3.3.3.4 vrf v1 sou lo1 r3 tping 100 60 3334::4 vrf v1 sou lo1 r3 tping 100 60 3.3.3.5 vrf v1 sou lo1 r3 tping 100 60 3335::5 vrf v1 sou lo1 r3 tping 100 60 3.3.3.6 vrf v1 sou lo1 r3 tping 100 60 3336::6 vrf v1 sou lo1 r1 tping 100 40 4.4.4.2 vrf v1 r6 tping 100 40 4.4.4.1 vrf v1 r1 tping 100 40 4.4.5.2 vrf v1 r6 tping 100 40 4.4.5.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp693.tst000066400000000000000000000025511471627602100166640ustar00rootroot00000000000000description ebgp with hostname addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 hostname red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 hostname red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 hostname red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 hostname red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp694.tst000066400000000000000000000025511471627602100166650ustar00rootroot00000000000000description ebgp with software addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 software red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 software red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 software red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 software red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp695.tst000066400000000000000000000062611471627602100166700ustar00rootroot00000000000000description ebgp with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp696.tst000066400000000000000000000077331471627602100166760ustar00rootroot00000000000000description ibgp with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.11 vrf v1 sou lo0 r2 tping 0 60 2.2.2.13 vrf v1 sou lo0 r2 tping 0 60 4321::11 vrf v1 sou lo0 r2 tping 0 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp697.tst000066400000000000000000000071061471627602100166710ustar00rootroot00000000000000description bgp additional path with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx car neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 additional-path-rx car red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx car neigh 1234:2::2 remote-as 3 neigh 1234:2::2 additional-path-rx car red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 additional-path-rx car neigh 1.1.1.5 additional-path-tx car red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 additional-path-tx car neigh 1234:2::1 additional-path-tx car red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp698.tst000066400000000000000000000074661471627602100167030ustar00rootroot00000000000000description ebgp with php car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 label-pop neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 label-pop neigh 1234:2::2 remote-as 3 neigh 1234:2::2 label-pop red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 label-pop red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 2.2.2.1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.3 vrf v1 sou lo0 r2 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp699.tst000066400000000000000000000101031471627602100166620ustar00rootroot00000000000000description ibgp with php car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 label-pop red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.13 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::13 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 label-pop red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 label-pop red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.11 vrf v1 sou lo0 r2 tping 0 60 2.2.2.13 vrf v1 sou lo0 r2 tping 0 60 4321::11 vrf v1 sou lo0 r2 tping 0 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp700.tst000066400000000000000000000103131471627602100166440ustar00rootroot00000000000000description bgp additional path with php car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 label-pop neigh 1.1.1.2 additional-path-tx lab red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 label-pop neigh 1234:1::2 additional-path-tx lab red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 label-pop neigh 1.1.1.1 additional-path-rx car neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 label-pop neigh 1.1.1.6 additional-path-rx car red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 label-pop neigh 1234:1::1 additional-path-rx car neigh 1234:2::2 remote-as 3 neigh 1234:2::2 label-pop neigh 1234:2::2 additional-path-rx car red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 label-pop neigh 1.1.1.5 additional-path-rx car neigh 1.1.1.5 additional-path-tx car red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 label-pop neigh 1234:2::1 additional-path-tx car neigh 1234:2::1 additional-path-tx car red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 0 60 2.2.2.2 vrf v1 sou lo0 r1 tping 0 60 2.2.2.3 vrf v1 sou lo0 r1 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 2.2.2.1 vrf v1 sou lo0 r2 tping 0 60 2.2.2.3 vrf v1 sou lo0 r2 tping 0 60 4321::3 vrf v1 sou lo0 r2 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.1 vrf v1 sou lo0 r3 tping 0 60 2.2.2.2 vrf v1 sou lo0 r3 tping 0 60 4321::1 vrf v1 sou lo0 r3 tping 0 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp701.tst000066400000000000000000000072251471627602100166550ustar00rootroot00000000000000description ibgp rr with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.12 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::12 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.11 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::11 1234 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 1234::1 remote-as 1 neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 route-reflect red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo0 r1 tping 100 60 4321::12 vrf v1 sou lo0 r1 tping 100 60 2.2.2.13 vrf v1 sou lo0 r1 tping 100 60 4321::13 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.11 vrf v1 sou lo0 r2 tping 100 60 2.2.2.13 vrf v1 sou lo0 r2 tping 100 60 4321::11 vrf v1 sou lo0 r2 tping 100 60 4321::13 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.11 vrf v1 sou lo0 r3 tping 100 60 4321::11 vrf v1 sou lo0 r3 tping 100 60 2.2.2.12 vrf v1 sou lo0 r3 tping 100 60 4321::12 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp702.tst000066400000000000000000000057261471627602100166620ustar00rootroot00000000000000description confed bgp with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 confed neigh 1234::3 remote-as 3 neigh 1234::3 confed red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 neigh 1234::2 confed red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp703.tst000066400000000000000000000056341471627602100166610ustar00rootroot00000000000000description bgp route server with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 route-server red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 route-server neigh 1234::3 remote-as 3 neigh 1234::3 route-server red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234::2 remote-as 2 red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp704.tst000066400000000000000000000062201471627602100166520ustar00rootroot00000000000000description bgp soft-reconfig with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 soft-reconfig red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp705.tst000066400000000000000000000043501471627602100166550ustar00rootroot00000000000000description car bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp706.tst000066400000000000000000000043511471627602100166570ustar00rootroot00000000000000description car bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp707.tst000066400000000000000000000044521471627602100166620ustar00rootroot00000000000000description car bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp708.tst000066400000000000000000000044531471627602100166640ustar00rootroot00000000000000description car bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp709.tst000066400000000000000000000045631471627602100166670ustar00rootroot00000000000000description car bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp710.tst000066400000000000000000000045641471627602100166600ustar00rootroot00000000000000description car bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 prefix-list-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 prefix-list-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp711.tst000066400000000000000000000046651471627602100166630ustar00rootroot00000000000000description car bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp712.tst000066400000000000000000000046661471627602100166650ustar00rootroot00000000000000description car bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-map-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-map-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp713.tst000066400000000000000000000043211471627602100166520ustar00rootroot00000000000000description car bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp714.tst000066400000000000000000000043221471627602100166540ustar00rootroot00000000000000description car bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp715.tst000066400000000000000000000045341471627602100166620ustar00rootroot00000000000000description car bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp716.tst000066400000000000000000000045351471627602100166640ustar00rootroot00000000000000description car bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-policy-out p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-policy-out p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp717.tst000066400000000000000000000024261471627602100166620ustar00rootroot00000000000000description car bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 default exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp718.tst000066400000000000000000000044771471627602100166730ustar00rootroot00000000000000description car bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p6 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp719.tst000066400000000000000000000144651471627602100166720ustar00rootroot00000000000000description bgp change in metric with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp720.tst000066400000000000000000000204001471627602100166440ustar00rootroot00000000000000description ibgp rr prefix movement with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.2/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 advertise 4321::2/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp721.tst000066400000000000000000000120511471627602100166500ustar00rootroot00000000000000description ibgp rr prefix withdraw with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 red conn exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no red conn r3 send exit r3 send router bgp6 1 r3 send no red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send red conn r3 send exit r3 send router bgp6 1 r3 send red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp722.tst000066400000000000000000000036321471627602100166560ustar00rootroot00000000000000description unicast+ocar over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp723.tst000066400000000000000000000040441471627602100166550ustar00rootroot00000000000000description unicast+ocar over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp724.tst000066400000000000000000000044161471627602100166610ustar00rootroot00000000000000description unicast+ocar over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 additional-path-rx uni ocar neigh 1.1.1.2 additional-path-tx uni ocar afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 additional-path-rx uni ocar neigh 1234:1::2 additional-path-Tx uni ocar afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 additional-path-rx uni ocar neigh 1.1.1.1 additional-path-tx uni ocar afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 additional-path-rx uni ocar neigh 1234:1::1 additional-path-tx uni ocar afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp725.tst000066400000000000000000000042371471627602100166630ustar00rootroot00000000000000description unicast+ocar over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-server afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 3 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-server neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-server afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp726.tst000066400000000000000000000025311471627602100166570ustar00rootroot00000000000000description unicast+ocar over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp727.tst000066400000000000000000000041061471627602100166600ustar00rootroot00000000000000description unicast+ocar over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 address uni ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit router bgp4 1 vrf v1 address uni ocar local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address uni ocar local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-reflect neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp728.tst000066400000000000000000000027631471627602100166700ustar00rootroot00000000000000description unicast+ocar over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 confed afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 confed afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 confed afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 confed afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp729.tst000066400000000000000000000034211471627602100166610ustar00rootroot00000000000000description ocar over srv6 over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp730.tst000066400000000000000000000035111471627602100166510ustar00rootroot00000000000000description ocar over srv6 over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp731.tst000066400000000000000000000050021471627602100166470ustar00rootroot00000000000000description ocar over srv6 over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 1 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234::3 remote-as 1 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 route-reflect neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 route-reflect exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 route-reflect neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp732.tst000066400000000000000000000050751471627602100166620ustar00rootroot00000000000000description ocar over srv6 over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 confed neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou neigh 1.1.1.2 confed exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 confed neigh 1234::2 remote-as 2 neigh 1234::2 segrou neigh 1234::2 confed exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp733.tst000066400000000000000000000051331471627602100166560ustar00rootroot00000000000000description ocar over srv6 over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234::3 remote-as 3 neigh 1234::3 segrou afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 3 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 route-server neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 segrou neigh 1.1.1.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 3 router-id 4.4.4.3 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 route-server neigh 1234::2 remote-as 2 neigh 1234::2 segrou neigh 1234::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp734.tst000066400000000000000000000036271471627602100166650ustar00rootroot00000000000000description ocar over srv6 over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 soft-reconfig afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp735.tst000066400000000000000000000041301471627602100166540ustar00rootroot00000000000000description ocar over srv6 over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:1:: ffff:ffff:: tun sour eth1 tun dest 4321:1:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:2:: ffff:ffff:: 1234::2 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 segrou neigh 1.1.1.2 additional-path-rx ocar neigh 1.1.1.2 additional-path-tx ocar afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 1 neigh 1234::2 segrou neigh 1234::2 additional-path-rx ocar neigh 1234::2 additional-path-tx ocar afi-other ena afi-other red conn afi-other srv6 tun1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 vrf for v1 ipv6 addr 4321:2:: ffff:ffff:: tun sour eth1 tun dest 4321:2:: tun vrf v1 tun mod srv6 exit ipv6 route v1 4321:1:: ffff:ffff:: 1234::1 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 segrou neigh 1.1.1.1 additional-path-rx ocar neigh 1.1.1.1 additional-path-tx ocar afi-other ena afi-other red conn afi-other srv6 tun1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 segrou neigh 1234::1 additional-path-rx ocar neigh 1234::1 additional-path-tx ocar afi-other ena afi-other red conn afi-other srv6 tun1 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp736.tst000066400000000000000000000025671471627602100166710ustar00rootroot00000000000000description ocar bgp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-default afi-other ena exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-default afi-other ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp737.tst000066400000000000000000000045351471627602100166670ustar00rootroot00000000000000description ocar bgp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp738.tst000066400000000000000000000045361471627602100166710ustar00rootroot00000000000000description ocar bgp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-prefix-list-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp739.tst000066400000000000000000000046371471627602100166740ustar00rootroot00000000000000description ocar bgp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp740.tst000066400000000000000000000046401471627602100166560ustar00rootroot00000000000000description ocar bgp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-map-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-map-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp741.tst000066400000000000000000000047501471627602100166610ustar00rootroot00000000000000description ocar bgp ingress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp742.tst000066400000000000000000000047511471627602100166630ustar00rootroot00000000000000description ocar bgp egress route filtering with prefixlist with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-prefix-list-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-prefix-list-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp743.tst000066400000000000000000000050521471627602100166570ustar00rootroot00000000000000description ocar bgp ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp744.tst000066400000000000000000000050531471627602100166610ustar00rootroot00000000000000description ocar bgp egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-map-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-map-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp745.tst000066400000000000000000000045061471627602100166640ustar00rootroot00000000000000description ocar bgp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp746.tst000066400000000000000000000045071471627602100166660ustar00rootroot00000000000000description ocar bgp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 other-route-policy-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 other-route-policy-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp747.tst000066400000000000000000000047211471627602100166650ustar00rootroot00000000000000description ocar bgp ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.12 vrf v1 r1 tping 0 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp748.tst000066400000000000000000000047221471627602100166670ustar00rootroot00000000000000description ocar bgp egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 other-route-policy-out p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 other-route-policy-out p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.11 vrf v1 r2 tping 0 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp749.tst000066400000000000000000000046501471627602100166700ustar00rootroot00000000000000description ocar bgp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 route-map-in p6 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 route-map-in p4 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 aggregate 2.2.2.0/24 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 aggregate 4321::/32 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-bgp750.tst000066400000000000000000000150211471627602100166520ustar00rootroot00000000000000description ocar bgp change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn route-map rm1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 other-route-map-in rm1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 other-route-map-in rm1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp751.tst000066400000000000000000000207641471627602100166650ustar00rootroot00000000000000description ocar ibgp rr prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other advertise 4321::2/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other advertise 2.2.2.2/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other advertise 4321::3/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other advertise 2.2.2.3/32 route-map rm1 afi-other advertise 2.2.2.222/32 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.103 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.103 vrf v1 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 2.2.2.222 vrf v1 r1 tping 100 60 4321::222 vrf v1 r1 tping 0 60 2.2.2.102 vrf v1 r1 tping 0 60 4321::102 vrf v1 r1 tping 0 60 2.2.2.103 vrf v1 r1 tping 0 60 4321::103 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.222 vrf v1 r2 tping 100 60 4321::222 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.222 vrf v1 r3 tping 100 60 4321::222 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 2.2.2.222 vrf v1 r4 tping 100 60 4321::222 vrf v1 r4 tping 0 60 2.2.2.102 vrf v1 r4 tping 0 60 4321::102 vrf v1 r4 tping 0 60 2.2.2.103 vrf v1 r4 tping 0 60 4321::103 vrf v1 r4 send telnet 2.2.2.222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 r4 send telnet 4321::222 666 vrf v1 r4 tping 100 60 2.2.2.102 vrf v1 r4 send exit r4 read closed r4 tping 0 60 2.2.2.102 vrf v1 freeRtr-24.11.16/cfg/rout-bgp752.tst000066400000000000000000000124211471627602100166550ustar00rootroot00000000000000description ocar ibgp rr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp753.tst000066400000000000000000000126631471627602100166660ustar00rootroot00000000000000description ocar ibgp fullmesh prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::3 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.4 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::4 remote-as 1 afi-other ena afi-other red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.3 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::2 remote-as 1 neigh 1234:1::3 remote-as 1 afi-other ena afi-other red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send no afi-other red conn r3 send exit r3 send router bgp6 1 r3 send no afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r3 tping 0 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send router bgp4 1 r3 send afi-other red conn r3 send exit r3 send router bgp6 1 r3 send afi-other red conn r3 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp754.tst000066400000000000000000000036331471627602100166640ustar00rootroot00000000000000description olab+ocar over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address olab ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address olab ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp755.tst000066400000000000000000000036331471627602100166650ustar00rootroot00000000000000description ocar+octp over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address ocar octp local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar octp local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.2 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo0 pweompls 4321::2 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena exit router bgp4 1 vrf v1 no safe-ebgp address ocar octp local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar octp local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 afi-other ena afi-other red conn exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo0 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo0 pweompls 4321::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 40 3.3.3.2 vrf v1 r2 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r2 tping 100 40 3.3.4.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp756.tst000066400000000000000000000202561471627602100166660ustar00rootroot00000000000000description bgp csc vpn with car addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.1 255.255.255.255 ipv6 addr 4444::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 4 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.1 neigh 4321::4 remote-as 4 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.101 255.255.255.255 ipv6 addr 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.2 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::2 router bgp4 1 vrf v2 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.1 neigh 3.3.3.102 remote-as 2 neigh 3.3.3.102 update lo0 neigh 3.3.3.102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.1 neigh 3333::102 remote-as 2 neigh 3333::102 update lo0 neigh 3333::102 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int eth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 ipv6 addr 3333::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.252 ipv6 addr 3333::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.1 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::1 ipv4 route v1 3.3.3.102 255.255.255.255 3.3.3.6 ipv6 route v1 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::6 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 3.3.3.102 255.255.255.255 ipv6 addr 3333::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.252 ipv6 addr 3333::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls ldp4 mpls ldp6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable ipv4 access-group-in test4 ipv6 access-group-in test6 exit ipv4 route v1 3.3.3.101 255.255.255.255 3.3.3.5 ipv6 route v1 3333::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 3333::5 router bgp4 1 vrf v2 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.6 remote-as 3 red conn red bgp4 2 exit router bgp6 1 vrf v2 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:2::2 remote-as 3 red conn red bgp6 2 exit router bgp4 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 3.3.3.101 remote-as 2 neigh 3.3.3.101 update lo0 neigh 3.3.3.101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp4 1 exit router bgp6 2 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 3333::101 remote-as 2 neigh 3333::101 update lo0 neigh 3333::101 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red bgp6 1 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v3 rd 1:3 rt-both 1:3 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v3 ipv4 addr 4.4.4.4 255.255.255.255 ipv6 addr 4444::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 red conn exit router bgp4 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 4 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit router bgp6 4 vrf v1 no safe-ebgp address vpnuni local-as 4 router-id 6.6.6.2 neigh 4321::1 remote-as 4 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v3 ena afi-vrf v3 red conn exit ! r2 tping 100 60 3.3.3.102 vrf v1 sou lo0 r2 tping 100 60 3333::102 vrf v1 sou lo0 r4 tping 100 60 3.3.3.101 vrf v1 sou lo0 r4 tping 100 60 3333::101 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v2 sou lo1 r2 tping 100 60 2.2.2.3 vrf v2 sou lo1 r2 tping 100 60 2.2.2.4 vrf v2 sou lo1 r2 tping 100 60 4321::1 vrf v2 sou lo1 r2 tping 100 60 4321::3 vrf v2 sou lo1 r2 tping 100 60 4321::4 vrf v2 sou lo1 r4 tping 100 60 2.2.2.1 vrf v2 sou lo1 r4 tping 100 60 2.2.2.2 vrf v2 sou lo1 r4 tping 100 60 2.2.2.4 vrf v2 sou lo1 r4 tping 100 60 4321::1 vrf v2 sou lo1 r4 tping 100 60 4321::2 vrf v2 sou lo1 r4 tping 100 60 4321::4 vrf v2 sou lo1 r5 tping 100 60 2.2.2.1 vrf v1 sou lo0 r5 tping 100 60 2.2.2.2 vrf v1 sou lo0 r5 tping 100 60 2.2.2.3 vrf v1 sou lo0 r5 tping 100 60 4321::1 vrf v1 sou lo0 r5 tping 100 60 4321::2 vrf v1 sou lo0 r5 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 4.4.4.4 vrf v3 sou lo1 r1 tping 100 60 4444::4 vrf v3 sou lo1 r5 tping 100 60 4.4.4.1 vrf v3 sou lo1 r5 tping 100 60 4444::1 vrf v3 sou lo1 freeRtr-24.11.16/cfg/rout-bgp757.tst000066400000000000000000000277431471627602100166770ustar00rootroot00000000000000description bgp interas car with multiple labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3331::1 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 multiple-label car justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 multiple-label car justadvert lo1 exit int pweth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.0 pseudo v1 lo1 pweompls 3.3.3.6 1234 exit int pweth2 vrf for v1 ipv4 addr 4.4.5.1 255.255.255.0 pseudo v1 lo1 pweompls 3336::6 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.255 ipv6 addr 3332::2 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 multiple-label car neigh 2.2.2.1 route-reflect neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 multiple-label car neigh 2.2.2.3 route-reflect justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 multiple-label car neigh 4321::1 route-reflect neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 multiple-label car neigh 4321::3 route-reflect justadvert lo1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls enable exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 1.1.1.10 255.255.255.255 1.1.1.10 mplsimp ipv6 route v1 1234:3::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 mplsimp router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 multiple-label car neigh 2.2.2.2 next-hop-multi neigh 1.1.1.10 remote-as 2 neigh 1.1.1.10 multiple-label car neigh 1.1.1.10 next-hop-multi justadvert lo1 exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 multiple-label car neigh 4321::2 next-hop-multi neigh 1234:3::2 remote-as 2 neigh 1234:3::2 multiple-label car neigh 1234:3::2 next-hop-multi justadvert lo1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3334::4 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls enable exit int eth2 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.14 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.14 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ipv4 route v1 1.1.1.9 255.255.255.255 1.1.1.9 mplsimp ipv6 route v1 1234:3::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 mplsimp router bgp4 2 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.4 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 multiple-label car neigh 2.2.2.5 next-hop-multi neigh 1.1.1.9 remote-as 1 neigh 1.1.1.9 multiple-label car neigh 1.1.1.9 next-hop-multi justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.4 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 multiple-label car neigh 4321::5 next-hop-multi neigh 1234:3::1 remote-as 1 neigh 1234:3::1 multiple-label car neigh 1234:3::1 next-hop-multi justadvert lo1 exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.5 255.255.255.255 ipv6 addr 3335::5 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.13 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 ipv4 route v1 2.2.2.6 255.255.255.255 1.1.1.18 ipv6 route v1 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::2 router bgp4 2 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.5 neigh 2.2.2.4 remote-as 2 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 multiple-label car neigh 2.2.2.4 route-reflect neigh 2.2.2.6 remote-as 2 neigh 2.2.2.6 update lo0 neigh 2.2.2.6 multiple-label car neigh 2.2.2.6 route-reflect justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.5 neigh 4321::4 remote-as 2 neigh 4321::4 update lo0 neigh 4321::4 multiple-label car neigh 4321::4 route-reflect neigh 4321::6 remote-as 2 neigh 4321::6 update lo0 neigh 4321::6 multiple-label car neigh 4321::6 route-reflect justadvert lo1 exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 label-mode all-igp exit int lo0 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 3.3.3.6 255.255.255.255 ipv6 addr 3336::6 ffff:ffff:ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.17 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 ipv4 route v1 2.2.2.5 255.255.255.255 1.1.1.17 ipv6 route v1 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:5::1 router bgp4 2 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.6 neigh 2.2.2.5 remote-as 2 neigh 2.2.2.5 update lo0 neigh 2.2.2.5 multiple-label car justadvert lo1 exit router bgp6 2 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.6 neigh 4321::5 remote-as 2 neigh 4321::5 update lo0 neigh 4321::5 multiple-label car justadvert lo1 exit int pweth1 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.0 pseudo v1 lo1 pweompls 3.3.3.1 1234 exit int pweth2 vrf for v1 ipv4 addr 4.4.5.2 255.255.255.0 pseudo v1 lo1 pweompls 3331::1 1234 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r4 tping 100 60 2.2.2.5 vrf v1 sou lo0 r4 tping 100 60 4321::5 vrf v1 sou lo0 r4 tping 100 60 2.2.2.6 vrf v1 sou lo0 r4 tping 100 60 4321::6 vrf v1 sou lo0 r5 tping 100 60 2.2.2.4 vrf v1 sou lo0 r5 tping 100 60 4321::4 vrf v1 sou lo0 r5 tping 100 60 2.2.2.6 vrf v1 sou lo0 r5 tping 100 60 4321::6 vrf v1 sou lo0 r6 tping 100 60 2.2.2.4 vrf v1 sou lo0 r6 tping 100 60 4321::4 vrf v1 sou lo0 r6 tping 100 60 2.2.2.5 vrf v1 sou lo0 r6 tping 100 60 4321::5 vrf v1 sou lo0 r1 tping 100 60 3.3.3.2 vrf v1 sou lo1 r1 tping 100 60 3332::2 vrf v1 sou lo1 r1 tping 100 60 3.3.3.3 vrf v1 sou lo1 r1 tping 100 60 3333::3 vrf v1 sou lo1 r2 tping 100 60 3.3.3.1 vrf v1 sou lo1 r2 tping 100 60 3331::1 vrf v1 sou lo1 r2 tping 100 60 3.3.3.3 vrf v1 sou lo1 r2 tping 100 60 3333::3 vrf v1 sou lo1 r3 tping 100 60 3.3.3.1 vrf v1 sou lo1 r3 tping 100 60 3331::1 vrf v1 sou lo1 r3 tping 100 60 3.3.3.2 vrf v1 sou lo1 r3 tping 100 60 3332::2 vrf v1 sou lo1 r4 tping 100 60 3.3.3.5 vrf v1 sou lo1 r4 tping 100 60 3335::5 vrf v1 sou lo1 r4 tping 100 60 3.3.3.6 vrf v1 sou lo1 r4 tping 100 60 3336::6 vrf v1 sou lo1 r5 tping 100 60 3.3.3.4 vrf v1 sou lo1 r5 tping 100 60 3334::4 vrf v1 sou lo1 r5 tping 100 60 3.3.3.6 vrf v1 sou lo1 r5 tping 100 60 3336::6 vrf v1 sou lo1 r6 tping 100 60 3.3.3.4 vrf v1 sou lo1 r6 tping 100 60 3334::4 vrf v1 sou lo1 r6 tping 100 60 3.3.3.5 vrf v1 sou lo1 r6 tping 100 60 3335::5 vrf v1 sou lo1 r4 tping 100 60 3.3.3.1 vrf v1 sou lo1 r4 tping 100 60 3331::1 vrf v1 sou lo1 r4 tping 100 60 3.3.3.2 vrf v1 sou lo1 r4 tping 100 60 3332::2 vrf v1 sou lo1 r4 tping 100 60 3.3.3.3 vrf v1 sou lo1 r4 tping 100 60 3333::3 vrf v1 sou lo1 r5 tping 100 60 3.3.3.1 vrf v1 sou lo1 r5 tping 100 60 3331::1 vrf v1 sou lo1 r5 tping 100 60 3.3.3.2 vrf v1 sou lo1 r5 tping 100 60 3332::2 vrf v1 sou lo1 r5 tping 100 60 3.3.3.3 vrf v1 sou lo1 r5 tping 100 60 3333::3 vrf v1 sou lo1 r6 tping 100 60 3.3.3.1 vrf v1 sou lo1 r6 tping 100 60 3331::1 vrf v1 sou lo1 r6 tping 100 60 3.3.3.2 vrf v1 sou lo1 r6 tping 100 60 3332::2 vrf v1 sou lo1 r6 tping 100 60 3.3.3.3 vrf v1 sou lo1 r6 tping 100 60 3333::3 vrf v1 sou lo1 r1 tping 100 60 3.3.3.4 vrf v1 sou lo1 r1 tping 100 60 3334::4 vrf v1 sou lo1 r1 tping 100 60 3.3.3.5 vrf v1 sou lo1 r1 tping 100 60 3335::5 vrf v1 sou lo1 r1 tping 100 60 3.3.3.6 vrf v1 sou lo1 r1 tping 100 60 3336::6 vrf v1 sou lo1 r2 tping 100 60 3.3.3.4 vrf v1 sou lo1 r2 tping 100 60 3334::4 vrf v1 sou lo1 r2 tping 100 60 3.3.3.5 vrf v1 sou lo1 r2 tping 100 60 3335::5 vrf v1 sou lo1 r2 tping 100 60 3.3.3.6 vrf v1 sou lo1 r2 tping 100 60 3336::6 vrf v1 sou lo1 r3 tping 100 60 3.3.3.4 vrf v1 sou lo1 r3 tping 100 60 3334::4 vrf v1 sou lo1 r3 tping 100 60 3.3.3.5 vrf v1 sou lo1 r3 tping 100 60 3335::5 vrf v1 sou lo1 r3 tping 100 60 3.3.3.6 vrf v1 sou lo1 r3 tping 100 60 3336::6 vrf v1 sou lo1 r1 tping 100 40 4.4.4.2 vrf v1 r6 tping 100 40 4.4.4.1 vrf v1 r1 tping 100 40 4.4.5.2 vrf v1 r6 tping 100 40 4.4.5.1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp758.tst000066400000000000000000000067701471627602100166750ustar00rootroot00000000000000description car colors over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp759.tst000066400000000000000000000071421471627602100166700ustar00rootroot00000000000000description other car colors over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp760.tst000066400000000000000000000067701471627602100166660ustar00rootroot00000000000000description car colors over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp761.tst000066400000000000000000000071421471627602100166610ustar00rootroot00000000000000description other car colors over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp762.tst000066400000000000000000000074671471627602100166740ustar00rootroot00000000000000description car colors over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx car neigh 2.2.2.2 additional-path-tx car afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx car neigh 4321::2 additional-path-tx car afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx car neigh 2.2.2.1 additional-path-tx car afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx car neigh 4321::1 additional-path-tx car afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp763.tst000066400000000000000000000076511471627602100166700ustar00rootroot00000000000000description other car colors over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx ocar neigh 2.2.2.2 additional-path-tx ocar afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx ocar neigh 4321::2 additional-path-tx ocar afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx ocar neigh 2.2.2.1 additional-path-tx ocar afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx ocar neigh 4321::1 additional-path-tx ocar afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp764.tst000066400000000000000000000110011471627602100166510ustar00rootroot00000000000000description car colors over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address car local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address car local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp765.tst000066400000000000000000000111551471627602100166640ustar00rootroot00000000000000description other car colors over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address ocar local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address ocar local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp766.tst000066400000000000000000000071261471627602100166700ustar00rootroot00000000000000description car colors over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp767.tst000066400000000000000000000073001471627602100166630ustar00rootroot00000000000000description other car colors over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp768.tst000066400000000000000000000110431471627602100166630ustar00rootroot00000000000000description car colors over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp769.tst000066400000000000000000000112171471627602100166670ustar00rootroot00000000000000description other car colors over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp770.tst000066400000000000000000000071761471627602100166700ustar00rootroot00000000000000description car colors over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address car local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 soft-reconfig neigh 4321::2 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address car local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 soft-reconfig neigh 2.2.2.1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address car local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 soft-reconfig neigh 4321::1 send-comm both afi-clr v2 ena afi-clr v2 red conn afi-clr v3 ena afi-clr v3 red conn afi-clr v4 ena afi-clr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp771.tst000066400000000000000000000071641471627602100166660ustar00rootroot00000000000000description other car colors over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 clr-both 2 exit vrf def v3 rd 1:3 clr-both 3 exit vrf def v4 rd 1:4 clr-both 4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ocar local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-other enable afi-oclr v2 ena afi-oclr v2 red conn afi-oclr v3 ena afi-oclr v3 red conn afi-oclr v4 ena afi-oclr v4 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp772.tst000066400000000000000000000115131471627602100166600ustar00rootroot00000000000000description vpn colors over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 label-mode per-prefix exit vrf def v3 label-mode per-prefix exit vrf def v4 rd 1:4 rt-both 1:4 exit vrf def v5 rd 1:5 rt-both 1:5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v5 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth1.22 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth1.33 vrf for v3 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v2 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v2 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v3 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v3 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv4 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v3 ipv4 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv6 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v3 ipv6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 label-mode per-prefix exit vrf def v3 label-mode per-prefix exit vrf def v4 rd 1:4 rt-both 1:4 exit vrf def v5 rd 1:5 rt-both 1:5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v5 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth1.22 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth1.33 vrf for v3 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v2 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v2 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v3 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v3 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv4 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v3 ipv4 exit router bgp6 1 vrf v1 no safe-ebgp address vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv6 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v2 ipv6 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 1.1.1.2 vrf v2 r1 tping 100 60 1234:1::2 vrf v2 r1 tping 100 60 1.1.1.2 vrf v3 r1 tping 100 60 1234:1::2 vrf v3 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.3.2 vrf v4 r2 tping 100 60 9.9.3.1 vrf v4 r1 tping 100 60 9993::2 vrf v4 r2 tping 100 60 9993::1 vrf v4 r1 tping 100 60 9.9.4.2 vrf v5 r2 tping 100 60 9.9.4.1 vrf v5 r1 tping 100 60 9994::2 vrf v5 r2 tping 100 60 9994::1 vrf v5 freeRtr-24.11.16/cfg/rout-bgp773.tst000066400000000000000000000114231471627602100166610ustar00rootroot00000000000000description vpn colors over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 label-mode per-prefix exit vrf def v3 label-mode per-prefix exit vrf def v4 rd 1:4 rt-both 1:4 exit vrf def v5 rd 1:5 rt-both 1:5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v5 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth1.22 vrf for v2 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth1.33 vrf for v3 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v2 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v2 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v3 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v3 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv4 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v3 ipv4 exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv6 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v3 ipv6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 label-mode per-prefix exit vrf def v3 label-mode per-prefix exit vrf def v4 rd 1:4 rt-both 1:4 exit vrf def v5 rd 1:5 rt-both 1:5 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v3 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v5 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth1.22 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth1.33 vrf for v3 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v2 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v2 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v3 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v3 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv4 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v3 ipv4 exit router bgp6 1 vrf v1 address vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 set-vrf v2 ipv6 afi-vrf v5 ena afi-vrf v5 red conn afi-vrf v5 set-vrf v2 ipv6 exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 1.1.1.2 vrf v2 r1 tping 100 60 1234:1::2 vrf v2 r1 tping 100 60 1.1.1.2 vrf v3 r1 tping 100 60 1234:1::2 vrf v3 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.3.2 vrf v4 r2 tping 100 60 9.9.3.1 vrf v4 r1 tping 100 60 9993::2 vrf v4 r2 tping 100 60 9993::1 vrf v4 r1 tping 100 60 9.9.4.2 vrf v5 r2 tping 100 60 9.9.4.1 vrf v5 r1 tping 100 60 9994::2 vrf v5 r2 tping 100 60 9994::1 vrf v5 freeRtr-24.11.16/cfg/rout-bgp774.tst000066400000000000000000000064151471627602100166670ustar00rootroot00000000000000description ebgp with any remote addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as any red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as any red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp775.tst000066400000000000000000000062411471627602100166650ustar00rootroot00000000000000description ibgp with any remote addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as any red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as any red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 1 neigh 1.1.1.10 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:2::1 remote-as 1 neigh 1234:3::2 remote-as 1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:3::1 remote-as 1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 2.2.2.3 vrf v1 r1 tping 0 60 4321::3 vrf v1 r1 tping 0 60 2.2.2.4 vrf v1 r1 tping 0 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r2 tping 0 60 4321::4 vrf v1 r3 tping 0 60 2.2.2.1 vrf v1 r3 tping 0 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp776.tst000066400000000000000000000124361471627602100166710ustar00rootroot00000000000000description unicast+vpns over ebgp with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 del vpnuni r1 send clear ipv6 bgp 1 peer 4321::2 del vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 add vpnuni r1 send clear ipv6 bgp 1 peer 4321::2 add vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp777.tst000066400000000000000000000124361471627602100166720ustar00rootroot00000000000000description unicast+vpns over ibgp with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 del vpnuni r1 send clear ipv6 bgp 1 peer 4321::2 del vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 add vpnuni r1 send clear ipv6 bgp 1 peer 4321::2 add vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp778.tst000066400000000000000000000125741471627602100166760ustar00rootroot00000000000000description unicast+vpns over confed bgp with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic neigh 2.2.2.2 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic neigh 4321::2 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic neigh 2.2.2.1 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic neigh 4321::1 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 del vpnuni r1 send clear ipv6 bgp 1 peer 4321::2 del vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 add vpnuni r1 send clear ipv6 bgp 1 peer 4321::2 add vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp779.tst000066400000000000000000000166741471627602100167040ustar00rootroot00000000000000description unicast+vpns over ibgp rr with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 dynamic neigh 2.2.2.3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 dynamic neigh 4321::3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.2 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 dynamic neigh 2.2.2.3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 6.6.6.2 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 dynamic neigh 4321::3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v4 ena afi-vrf v4 red conn red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.252 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic neigh 2.2.2.1 route-reflector neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic neigh 2.2.2.2 route-reflector red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast vpnuni local-as 1 router-id 4.4.4.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic neigh 4321::1 route-reflector neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic neigh 4321::2 route-reflector red conn exit ! r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.12 vrf v1 sou lo1 r3 tping 100 60 4321::12 vrf v1 sou lo1 r3 tping 100 60 2.2.2.11 vrf v1 sou lo1 r3 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.3 del vpnuni r1 send clear ipv6 bgp 1 peer 4321::3 del vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.3 add vpnuni r1 send clear ipv6 bgp 1 peer 4321::3 add vpnuni r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp780.tst000066400000000000000000000026521471627602100166630ustar00rootroot00000000000000description ebgp with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 ipinfo pmtud 512 1024 666 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 ipinfo pmtud 512 1024 666 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 ipinfo pmtud 512 1024 666 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 ipinfo pmtud 512 1024 666 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp781.tst000066400000000000000000000026521471627602100166640ustar00rootroot00000000000000description ibgp with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 ipinfo pmtud 512 1024 666 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 ipinfo pmtud 512 1024 666 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 ipinfo pmtud 512 1024 666 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 ipinfo pmtud 512 1024 666 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-bgp782.tst000066400000000000000000000056541471627602100166720ustar00rootroot00000000000000description bgp routemap filtering with validity addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set validity 1 exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-out rew neigh 1.1.1.1 route-map-out rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-out rew neigh 1234:1::1 route-map-out rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match validity 1 sequence 20 act permit exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp783.tst000066400000000000000000000062571471627602100166730ustar00rootroot00000000000000description bgp routemap filtering with validity with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set validity 1 exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-out rew neigh 1.1.1.1 route-map-out rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-out rew neigh 1234:1::1 route-map-out rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match validity 1 sequence 20 act permit exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp784.tst000066400000000000000000000157301471627602100166700ustar00rootroot00000000000000description bgp change in validity addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 send-comm both neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 send-comm both neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 send-comm both neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match validity 3 sequence 20 act perm exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set validity 1 exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-out rew neigh 1.1.1.1 route-map-out rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-out rew neigh 1234:1::1 route-map-out rm1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match validity 2 sequence 20 act perm exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set validity 2 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set validity 3 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set validity 1 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp785.tst000066400000000000000000000165231471627602100166720ustar00rootroot00000000000000description bgp change in validity with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 send-comm both neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 send-comm both neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 send-comm both neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 send-comm both neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 send-comm both neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 send-comm both neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match validity 3 sequence 20 act perm exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set validity 1 exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-out rew neigh 1.1.1.1 route-map-out rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-out rew neigh 1234:1::1 route-map-out rm1 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match validity 2 sequence 20 act perm exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set validity 2 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set validity 3 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set validity 1 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp786.tst000066400000000000000000000056571471627602100167010ustar00rootroot00000000000000description bgp routepolicy filtering with validity addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set validity 1 pass exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-out rew neigh 1.1.1.1 route-policy-out rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-out rew neigh 1234:1::1 route-policy-out rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if validity 1 drop else pass enif exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp787.tst000066400000000000000000000062621471627602100166730ustar00rootroot00000000000000description bgp routepolicy filtering with validity with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set validity 1 pass exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 send-comm both neigh 1.1.1.1 rpki-out rew neigh 1.1.1.1 route-policy-out rm1 red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 send-comm both neigh 1234:1::1 rpki-out rew neigh 1234:1::1 route-policy-out rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if validity 1 drop else pass enif exit router rpki4 1 vrf v1 exit router bgp4 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 rpki-in acc neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 rpki rpki4 1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 rpki-in acc neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp788.tst000066400000000000000000000052511471627602100166710ustar00rootroot00000000000000description bgp routemap filtering with leak-role addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 leak-role attr neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 leak-role attr neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 leak-role attr red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set customer 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role attr red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role attr red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match customer 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 leak-role attr red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp789.tst000066400000000000000000000056541471627602100167010ustar00rootroot00000000000000description bgp routemap filtering with leak-role with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 leak-role attr neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 leak-role attr neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 leak-role attr red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set customer 1234 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 leak-role attr red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 leak-role attr red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match customer 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 neigh 1.1.1.1 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 neigh 1234:1::1 leak-role attr red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp790.tst000066400000000000000000000151731471627602100166660ustar00rootroot00000000000000description bgp change in leak-role addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 leak-role attr neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 leak-role attr neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 leak-role attr neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 leak-role attr neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 leak-role attr neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 leak-role attr neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match customer 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role attr neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role attr neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set customer 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role attr red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role attr red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match customer 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role attr neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role attr neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set customer 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set customer 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set customer 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp791.tst000066400000000000000000000157661471627602100166770ustar00rootroot00000000000000description bgp change in leak-role with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 leak-role attr neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 leak-role attr neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 leak-role attr neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 leak-role attr neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 leak-role attr neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 leak-role attr neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match customer 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 leak-role attr neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 leak-role attr neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set customer 1000 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 leak-role attr red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 leak-role attr red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match customer 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 leak-role attr neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 leak-role attr neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set customer 3000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set customer 5000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set customer 1000 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp792.tst000066400000000000000000000052541471627602100166670ustar00rootroot00000000000000description bgp routepolicy filtering with leak-role addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 leak-role attr neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 leak-role attr neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 leak-role attr red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set customer 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 leak-role attr red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 leak-role attr red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if customer 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 leak-role attr red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp793.tst000066400000000000000000000056571471627602100166770ustar00rootroot00000000000000description bgp routepolicy filtering with leak-role with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.2 leak-role attr neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.3 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::2 leak-role attr neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::3 leak-role attr red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set customer 1234 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 leak-role attr red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 leak-role attr red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if customer 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 neigh 1.1.1.1 leak-role attr red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 neigh 1234:1::1 leak-role attr red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp794.tst000066400000000000000000000047001471627602100166640ustar00rootroot00000000000000description bgp routemap filtering with aggregator addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aggregator 1234 1.1.1.111 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aggregator 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp795.tst000066400000000000000000000053031471627602100166650ustar00rootroot00000000000000description bgp routemap filtering with aggregator with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 set aggregator 1234 1.1.1.111 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 sequence 10 act deny match aggregator 1234 sequence 20 act permit exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp796.tst000066400000000000000000000144741471627602100166770ustar00rootroot00000000000000description bgp change in aggregator addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aggregator 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aggregator 1000 1.1.1.111 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aggregator 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aggregator 3000 1.1.1.111 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aggregator 5000 1.1.1.111 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aggregator 1000 1.1.1.111 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp797.tst000066400000000000000000000152671471627602100167010ustar00rootroot00000000000000description bgp change in aggregator with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 soft-reconfig neigh 1.1.1.4 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect neigh 1234:1::4 remote-as 1 neigh 1234:1::4 soft-reconfig neigh 1234:1::4 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aggregator 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-map rm1 set aggregator 1000 1.1.1.111 exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: exit route-map rm1 sequence 10 act deny sequence 10 match aggregator 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-map-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-map-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aggregator 3000 1.1.1.111 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aggregator 5000 1.1.1.111 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 0 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r3 send conf t r3 send route-map rm1 r3 send set aggregator 1000 1.1.1.111 r3 send end r3 send clear ipv4 route v1 r3 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp798.tst000066400000000000000000000047031471627602100166730ustar00rootroot00000000000000description bgp routepolicy filtering with aggregator addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aggregator 1234 1.1.1.111 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if aggregator 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp799.tst000066400000000000000000000053061471627602100166740ustar00rootroot00000000000000description bgp routepolicy filtering with aggregator with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 soft-reconfig neigh 1.1.1.2 route-reflect neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 soft-reconfig neigh 1.1.1.3 route-reflect red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 soft-reconfig neigh 1234:1::2 route-reflect neigh 1234:1::3 remote-as 1 neigh 1234:1::3 soft-reconfig neigh 1234:1::3 route-reflect red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: exit route-policy rm1 set aggregator 1234 1.1.1.111 pass exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig red conn route-policy rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit route-policy rm1 if aggregator 1234 drop else pass enif exit router bgp4 1 vrf v1 address uni local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 soft-reconfig neigh 1.1.1.1 route-policy-in rm1 red conn exit router bgp6 1 vrf v1 address uni local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 soft-reconfig neigh 1234:1::1 route-policy-in rm1 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 0 60 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-bgp800.tst000066400000000000000000000100771471627602100166540ustar00rootroot00000000000000description l3evpns over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp801.tst000066400000000000000000000124411471627602100166520ustar00rootroot00000000000000description l3evpns over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp802.tst000066400000000000000000000121351471627602100166530ustar00rootroot00000000000000description l3evpns over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp803.tst000066400000000000000000000102351471627602100166530ustar00rootroot00000000000000description l3evpns over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp804.tst000066400000000000000000000124021471627602100166520ustar00rootroot00000000000000description l3evpns over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp805.tst000066400000000000000000000103051471627602100166530ustar00rootroot00000000000000description l3evpns over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp806.tst000066400000000000000000000106061471627602100166600ustar00rootroot00000000000000description l3evpns over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx evpn neigh 2.2.2.2 additional-path-tx evpn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx evpn neigh 4321::2 additional-path-tx evpn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx evpn neigh 2.2.2.1 additional-path-tx evpn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx evpn neigh 4321::1 additional-path-tx evpn afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp807.tst000066400000000000000000000105571471627602100166660ustar00rootroot00000000000000description l3evpns over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp808.tst000066400000000000000000000101641471627602100166610ustar00rootroot00000000000000description l3otherevpns over ebgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp809.tst000066400000000000000000000125261471627602100166660ustar00rootroot00000000000000description l3eothervpns over ibgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.3 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::3 vrf v4 r3 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp810.tst000066400000000000000000000122221471627602100166470ustar00rootroot00000000000000description l3otherevpns over ibgp rr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::3 remote-as 1 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-reflect neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-reflect exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-reflect neigh 4321::2 remote-as 1 neigh 4321::2 send-comm both neigh 4321::2 route-reflect exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp811.tst000066400000000000000000000103221471627602100166470ustar00rootroot00000000000000description l3otherevpns over confed bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 confed neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 confed neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 confed neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 confed neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp812.tst000066400000000000000000000124671471627602100166640ustar00rootroot00000000000000description l3otherevpns over bgp route server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 1.1.1.3 remote-as 3 neigh 1.1.1.3 update lo0 neigh 1.1.1.3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 1234:1::3 remote-as 3 neigh 1234:1::3 update lo0 neigh 1234:1::3 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 route-server neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 route-server exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 3 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 send-comm both neigh 4321::1 route-server neigh 4321::2 remote-as 2 neigh 4321::2 send-comm both neigh 4321::2 route-server exit ! r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp813.tst000066400000000000000000000103721471627602100166560ustar00rootroot00000000000000description l3otherevpns over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp814.tst000066400000000000000000000106731471627602100166630ustar00rootroot00000000000000description l3otherevpns over bgp additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 additional-path-rx evpn neigh 2.2.2.2 additional-path-tx evpn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 additional-path-rx evpn neigh 4321::2 additional-path-tx evpn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 additional-path-rx evpn neigh 2.2.2.1 additional-path-tx evpn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 additional-path-rx evpn neigh 4321::1 additional-path-tx evpn afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp815.tst000066400000000000000000000106441471627602100166620ustar00rootroot00000000000000description l3otherevpns over bgp auto mesh tunnel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls rsvp4 mpls rsvp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn automesh all local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp816.tst000066400000000000000000000101021471627602100166500ustar00rootroot00000000000000description l3evpns with default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 default afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 default afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 default afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 default afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 default afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 default afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp817.tst000066400000000000000000000101671471627602100166640ustar00rootroot00000000000000description otherl3evpns with default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both afi-ovrf v2 ena afi-ovrf v2 default afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 default afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 default afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both afi-ovrf v2 ena afi-ovrf v2 default afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 default afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 default afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp818.tst000066400000000000000000000247141471627602100166700ustar00rootroot00000000000000description bgp l3evpns change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 evpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 evpn-route-map-in rm1 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn route-map rm1 afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn route-map rm1 afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 evpn-route-map-in rm1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 evpn-route-map-in rm1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp819.tst000066400000000000000000000306731471627602100166720ustar00rootroot00000000000000description ibgp rr l3evpns prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.102 255.255.255.255 ipv6 addr 9994::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 import evpn afi-vrf v4 export evpn afi-vrf v4 advertise 9.9.4.2/32 route-map rm1 afi-vrf v4 advertise 9.9.4.222/32 route-map rm1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 import evpn afi-vrf v4 export evpn afi-vrf v4 advertise 9994::2/128 route-map rm1 afi-vrf v4 advertise 9994::222/128 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.103 255.255.255.255 ipv6 addr 9994::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 import evpn afi-vrf v4 export evpn afi-vrf v4 advertise 9.9.4.3/32 route-map rm1 afi-vrf v4 advertise 9.9.4.222/32 route-map rm1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 import evpn afi-vrf v4 export evpn afi-vrf v4 advertise 9994::3/128 route-map rm1 afi-vrf v4 advertise 9994::222/128 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 freeRtr-24.11.16/cfg/rout-bgp820.tst000066400000000000000000000250611471627602100166550ustar00rootroot00000000000000description bgp otherl3evpns change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 4000-6000 sequence 20 act perm exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 evpn-route-map-in rm1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 evpn-route-map-in rm1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set metric 1000 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn route-map rm1 afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn route-map rm1 afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 evpn-route-map-in rm1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 evpn-route-map-in rm1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 3000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 5000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send route-map rm1 r3 send set metric 1000 r3 send end r3 send clear ipv4 route v4 r3 send clear ipv6 route v4 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp821.tst000066400000000000000000000310451471627602100166550ustar00rootroot00000000000000description ibgp rr otherl3evpns prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.102 255.255.255.255 ipv6 addr 9994::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 import evpn afi-ovrf v4 export evpn afi-ovrf v4 advertise 9994::2/128 route-map rm1 afi-ovrf v4 advertise 9994::222/128 route-map rm1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 import evpn afi-ovrf v4 export evpn afi-ovrf v4 advertise 9.9.4.2/32 route-map rm1 afi-ovrf v4 advertise 9.9.4.222/32 route-map rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.103 255.255.255.255 ipv6 addr 9994::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v4 port 666 exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit route-map rm1 set aspath 1000 1000 1000 exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 import evpn afi-ovrf v4 export evpn afi-ovrf v4 advertise 9994::3/128 route-map rm1 afi-ovrf v4 advertise 9994::222/128 route-map rm1 exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 import evpn afi-ovrf v4 export evpn afi-ovrf v4 advertise 9.9.4.3/32 route-map rm1 afi-ovrf v4 advertise 9.9.4.222/32 route-map rm1 exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 1000 1000 1000 1000 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.103 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.103 vrf v4 r2 send conf t r2 send route-map rm1 r2 send set aspath 1000 r2 send end r2 send clear ipv4 route v1 r2 send clear ipv6 route v1 r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r1 tping 100 60 9.9.4.222 vrf v4 r1 tping 100 60 9994::222 vrf v4 r1 tping 0 60 9.9.4.102 vrf v4 r1 tping 0 60 9994::102 vrf v4 r1 tping 0 60 9.9.4.103 vrf v4 r1 tping 0 60 9994::103 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9994::222 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.222 vrf v4 r3 tping 100 60 9994::222 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r4 tping 100 60 9.9.4.222 vrf v4 r4 tping 100 60 9994::222 vrf v4 r4 tping 0 60 9.9.4.102 vrf v4 r4 tping 0 60 9994::102 vrf v4 r4 tping 0 60 9.9.4.103 vrf v4 r4 tping 0 60 9994::103 vrf v4 r4 send telnet 9.9.4.222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 r4 send telnet 9994::222 666 vrf v4 r4 tping 100 60 9.9.4.102 vrf v4 r4 send exit r4 read closed r4 tping 0 60 9.9.4.102 vrf v4 freeRtr-24.11.16/cfg/rout-bgp822.tst000066400000000000000000000223241471627602100166560ustar00rootroot00000000000000description ibgp rr l3evpns prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send no afi-vrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send no afi-vrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 0 60 9.9.4.3 vrf v4 r1 tping 0 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 0 60 9.9.4.1 vrf v4 r3 tping 0 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send afi-vrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send afi-vrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp823.tst000066400000000000000000000224751471627602100166660ustar00rootroot00000000000000description ibgp rr otherl3evpns prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 1 neigh 1.1.1.2 route-reflect neigh 1.1.1.2 send-comm both neigh 1.1.1.3 remote-as 1 neigh 1.1.1.3 route-reflect neigh 1.1.1.3 send-comm both neigh 1.1.1.4 remote-as 1 neigh 1.1.1.4 route-reflect neigh 1.1.1.4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 1 neigh 1234:1::2 route-reflect neigh 1234:1::2 send-comm both neigh 1234:1::3 remote-as 1 neigh 1234:1::3 route-reflect neigh 1234:1::3 send-comm both neigh 1234:1::4 remote-as 1 neigh 1234:1::4 route-reflect neigh 1234:1::4 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit bridge 1 mac-learn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.3 255.255.255.255 ipv6 addr 9994::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234:1::3 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.3 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.3 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.4 255.255.255.255 ipv6 addr 9992::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.4 255.255.255.255 ipv6 addr 9993::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.4 255.255.255.255 ipv6 addr 9994::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234:1::4 ffff:ffff:: mpls enable exit router bgp4 1 vrf v1 address evpn local-as 1 router-id 4.4.4.4 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn local-as 1 router-id 6.6.6.4 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send no afi-ovrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send no afi-ovrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 0 60 9.9.4.3 vrf v4 r1 tping 0 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 0 60 9.9.4.3 vrf v4 r2 tping 0 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 0 60 9.9.4.1 vrf v4 r3 tping 0 60 9994::1 vrf v4 r3 tping 0 60 9.9.4.2 vrf v4 r3 tping 0 60 9994::2 vrf v4 r3 tping 0 60 9.9.4.4 vrf v4 r3 tping 0 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 0 60 9.9.4.3 vrf v4 r4 tping 0 60 9994::3 vrf v4 r3 send conf t r3 send router bgp4 1 r3 send afi-ovrf v4 red conn r3 send exit r3 send router bgp6 1 r3 send afi-ovrf v4 red conn r3 send end r1 tping 100 60 9.9.4.2 vrf v4 r1 tping 100 60 9994::2 vrf v4 r1 tping 100 60 9.9.4.3 vrf v4 r1 tping 100 60 9994::3 vrf v4 r1 tping 100 60 9.9.4.4 vrf v4 r1 tping 100 60 9994::4 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r2 tping 100 60 9994::1 vrf v4 r2 tping 100 60 9.9.4.3 vrf v4 r2 tping 100 60 9994::3 vrf v4 r2 tping 100 60 9.9.4.4 vrf v4 r2 tping 100 60 9994::4 vrf v4 r3 tping 100 60 9.9.4.1 vrf v4 r3 tping 100 60 9994::1 vrf v4 r3 tping 100 60 9.9.4.2 vrf v4 r3 tping 100 60 9994::2 vrf v4 r3 tping 100 60 9.9.4.4 vrf v4 r3 tping 100 60 9994::4 vrf v4 r4 tping 100 60 9.9.4.1 vrf v4 r4 tping 100 60 9994::1 vrf v4 r4 tping 100 60 9.9.4.2 vrf v4 r4 tping 100 60 9994::2 vrf v4 r4 tping 100 60 9.9.4.3 vrf v4 r4 tping 100 60 9994::3 vrf v4 freeRtr-24.11.16/cfg/rout-bgp824.tst000066400000000000000000000147441471627602100166670ustar00rootroot00000000000000description l3evpns with ingress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-in afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp825.tst000066400000000000000000000147471471627602100166730ustar00rootroot00000000000000description l3evpns with egress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-out afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp826.tst000066400000000000000000000150311471627602100166570ustar00rootroot00000000000000description otherl3evpns with ingress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-in afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp827.tst000066400000000000000000000150341471627602100166630ustar00rootroot00000000000000description otherl3evpns with egress rtfilter addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:41 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.12 255.255.255.255 ipv6 addr 9994::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.13 255.255.255.255 ipv6 addr 9994::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.14 255.255.255.255 ipv6 addr 9994::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.15 255.255.255.255 ipv6 addr 9994::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 maximum-prefix-in 5 50 neigh 2.2.2.3 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 maximum-prefix-in 5 50 neigh 4321::3 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:43 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.3 255.255.255.255 ipv6 addr 9992::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.3 255.255.255.255 ipv6 addr 9993::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.31 255.255.255.255 ipv6 addr 9994::31 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.32 255.255.255.255 ipv6 addr 9994::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.33 255.255.255.255 ipv6 addr 9994::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo44 vrf for v4 ipv4 addr 9.9.4.34 255.255.255.255 ipv6 addr 9994::34 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo45 vrf for v4 ipv4 addr 9.9.4.35 255.255.255.255 ipv6 addr 9994::35 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.5 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address evpn rtfilter local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 maximum-prefix-in 5 50 neigh 2.2.2.1 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 address evpn rtfilter local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 maximum-prefix-in 5 50 neigh 4321::1 route-target-filter-out afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r1 tping 100 60 9.9.2.3 vrf v2 r3 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::3 vrf v2 r3 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.3 vrf v3 r3 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::3 vrf v3 r3 tping 100 60 9993::1 vrf v3 freeRtr-24.11.16/cfg/rout-bgp828.tst000066400000000000000000000135211471627602100166630ustar00rootroot00000000000000description unicast+l3evpns over ebgp with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 del evpn r1 send clear ipv6 bgp 1 peer 4321::2 del evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 add evpn r1 send clear ipv6 bgp 1 peer 4321::2 add evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp829.tst000066400000000000000000000135211471627602100166640ustar00rootroot00000000000000description unicast+l3evpns over ibgp with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 del evpn r1 send clear ipv6 bgp 1 peer 4321::2 del evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 add evpn r1 send clear ipv6 bgp 1 peer 4321::2 add evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp830.tst000066400000000000000000000136571471627602100166660ustar00rootroot00000000000000description unicast+l3evpns over confed bgp with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic neigh 2.2.2.2 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic neigh 4321::2 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic neigh 2.2.2.1 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic neigh 4321::1 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 del evpn r1 send clear ipv6 bgp 1 peer 4321::2 del evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.2 add evpn r1 send clear ipv6 bgp 1 peer 4321::2 add evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp831.tst000066400000000000000000000177531471627602100166700ustar00rootroot00000000000000description unicast+l3evpns over ibgp rr with dynamic capability addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 dynamic neigh 2.2.2.3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 dynamic neigh 4321::3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.3 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.2 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.3 dynamic neigh 2.2.2.3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 6.6.6.2 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::3 dynamic neigh 4321::3 confed afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $1b$ $1a$ int eth2 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.252 ipv6 addr 1234:1::3 ffff:ffff:: exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 router bgp4 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 dynamic neigh 2.2.2.1 route-reflector neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 dynamic neigh 2.2.2.2 route-reflector red conn exit router bgp6 1 vrf v1 no safe-ebgp address unicast evpn local-as 1 router-id 4.4.4.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 dynamic neigh 4321::1 route-reflector neigh 4321::2 remote-as 1 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 dynamic neigh 4321::2 route-reflector red conn exit ! r3 tping 100 60 2.2.2.2 vrf v1 sou lo0 r3 tping 100 60 4321::2 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r3 tping 100 60 2.2.2.12 vrf v1 sou lo1 r3 tping 100 60 4321::12 vrf v1 sou lo1 r3 tping 100 60 2.2.2.11 vrf v1 sou lo1 r3 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.12 vrf v1 sou lo1 r1 tping 100 60 4321::12 vrf v1 sou lo1 r2 tping 100 60 2.2.2.11 vrf v1 sou lo1 r2 tping 100 60 4321::11 vrf v1 sou lo1 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.3 del evpn r1 send clear ipv6 bgp 1 peer 4321::3 del evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 0 3 9.9.2.2 vrf v2 r2 tping 0 3 9.9.2.1 vrf v2 r1 tping 0 3 9992::2 vrf v2 r2 tping 0 3 9992::1 vrf v2 r1 tping 0 3 9.9.3.2 vrf v3 r2 tping 0 3 9.9.3.1 vrf v3 r1 tping 0 3 9993::2 vrf v3 r2 tping 0 3 9993::1 vrf v3 r1 tping 0 3 9.9.4.2 vrf v4 r2 tping 0 3 9.9.4.1 vrf v4 r1 tping 0 3 9994::2 vrf v4 r2 tping 0 3 9994::1 vrf v4 r1 send clear ipv4 bgp 1 peer 2.2.2.3 add evpn r1 send clear ipv6 bgp 1 peer 4321::3 add evpn r1 tping 100 3 2.2.2.12 vrf v1 sou lo1 r1 tping 100 3 4321::12 vrf v1 sou lo1 r2 tping 100 3 2.2.2.11 vrf v1 sou lo1 r2 tping 100 3 4321::11 vrf v1 sou lo1 r1 tping 100 3 9.9.2.2 vrf v2 r2 tping 100 3 9.9.2.1 vrf v2 r1 tping 100 3 9992::2 vrf v2 r2 tping 100 3 9992::1 vrf v2 r1 tping 100 3 9.9.3.2 vrf v3 r2 tping 100 3 9.9.3.1 vrf v3 r1 tping 100 3 9993::2 vrf v3 r2 tping 100 3 9993::1 vrf v3 r1 tping 100 3 9.9.4.2 vrf v4 r2 tping 100 3 9.9.4.1 vrf v4 r1 tping 100 3 9994::2 vrf v4 r2 tping 100 3 9994::1 vrf v4 freeRtr-24.11.16/cfg/rout-bgp832.tst000066400000000000000000000154741471627602100166670ustar00rootroot00000000000000description l3evpns ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-map-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-map-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp833.tst000066400000000000000000000154751471627602100166710ustar00rootroot00000000000000description l3evpns egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-map-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-map-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp834.tst000066400000000000000000000157031471627602100166640ustar00rootroot00000000000000description l3evpns ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-map-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-map-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp835.tst000066400000000000000000000157041471627602100166660ustar00rootroot00000000000000description l3evpns egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-map-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-map-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp836.tst000066400000000000000000000153431471627602100166660ustar00rootroot00000000000000description l3evpns ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-policy-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-policy-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp837.tst000066400000000000000000000153441471627602100166700ustar00rootroot00000000000000description l3evpns egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-policy-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-policy-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp838.tst000066400000000000000000000155521471627602100166720ustar00rootroot00000000000000description l3evpns ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-policy-in p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-policy-in p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp839.tst000066400000000000000000000155531471627602100166740ustar00rootroot00000000000000description l3evpns egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-policy-out p4 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-policy-out p6 afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 import evpn afi-vrf v2 export evpn afi-vrf v3 ena afi-vrf v3 red conn afi-vrf v3 import evpn afi-vrf v3 export evpn afi-vrf v4 ena afi-vrf v4 red conn afi-vrf v4 import evpn afi-vrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp840.tst000066400000000000000000000155611471627602100166630ustar00rootroot00000000000000description otherl3evpns ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-map-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-map-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp841.tst000066400000000000000000000155621471627602100166650ustar00rootroot00000000000000description otherl3evpns egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-map-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-map-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp842.tst000066400000000000000000000157701471627602100166670ustar00rootroot00000000000000description otherl3evpns ingress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.22/32 sequence 20 act deny match network 9.9.3.22/32 sequence 30 act deny match network 9.9.4.22/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::22/128 sequence 20 act deny match network 9993::22/128 sequence 30 act deny match network 9994::22/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-map-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-map-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp843.tst000066400000000000000000000157711471627602100166710ustar00rootroot00000000000000description otherl3evpns egress route filtering with routemap with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-map p4 sequence 10 act deny match network 9.9.2.11/32 sequence 20 act deny match network 9.9.3.11/32 sequence 30 act deny match network 9.9.4.11/32 sequence 40 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 9992::11/128 sequence 20 act deny match network 9993::11/128 sequence 30 act deny match network 9994::11/128 sequence 40 act perm match network ::/0 le 128 exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-map-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-map-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp844.tst000066400000000000000000000154301471627602100166620ustar00rootroot00000000000000description otherl3evpns ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-policy-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-policy-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp845.tst000066400000000000000000000154311471627602100166640ustar00rootroot00000000000000description otherl3evpns egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 evpn-route-policy-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 evpn-route-policy-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp846.tst000066400000000000000000000156371471627602100166750ustar00rootroot00000000000000description otherl3evpns ingress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.22/32 drop enif if network 9.9.3.22/32 drop enif if network 9.9.4.22/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::22/128 drop enif if network 9993::22/128 drop enif if network 9994::22/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-policy-in p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-policy-in p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 0 60 9.9.2.22 vrf v2 r2 tping 100 60 9.9.2.11 vrf v2 r1 tping 0 60 9992::22 vrf v2 r2 tping 100 60 9992::11 vrf v2 r1 tping 0 60 9.9.3.22 vrf v3 r2 tping 100 60 9.9.3.11 vrf v3 r1 tping 0 60 9993::22 vrf v3 r2 tping 100 60 9993::11 vrf v3 r1 tping 0 60 9.9.4.22 vrf v4 r2 tping 100 60 9.9.4.11 vrf v4 r1 tping 0 60 9994::22 vrf v4 r2 tping 100 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp847.tst000066400000000000000000000156401471627602100166700ustar00rootroot00000000000000description otherl3evpns egress route filtering with routepolicy with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.1 255.255.255.255 ipv6 addr 9992::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.11 255.255.255.255 ipv6 addr 9992::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.111 255.255.255.255 ipv6 addr 9992::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.1 255.255.255.255 ipv6 addr 9993::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.11 255.255.255.255 ipv6 addr 9993::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.111 255.255.255.255 ipv6 addr 9993::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.1 255.255.255.255 ipv6 addr 9994::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.11 255.255.255.255 ipv6 addr 9994::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.111 255.255.255.255 ipv6 addr 9994::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.2 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 route-policy p4 if network 9.9.2.11/32 drop enif if network 9.9.3.11/32 drop enif if network 9.9.4.11/32 drop enif if network 0.0.0.0/0 le 32 pass enif exit route-policy p6 if network 9992::11/128 drop enif if network 9993::11/128 drop enif if network 9994::11/128 drop enif if network ::/0 le 128 pass enif exit router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 4.4.4.1 neigh 2.2.2.2 remote-as 2 neigh 2.2.2.2 update lo0 neigh 2.2.2.2 send-comm both neigh 2.2.2.2 soft-reconfig neigh 2.2.2.2 evpn-route-policy-out p6 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 1 router-id 6.6.6.1 neigh 4321::2 remote-as 2 neigh 4321::2 update lo0 neigh 4321::2 send-comm both neigh 4321::2 soft-reconfig neigh 4321::2 evpn-route-policy-out p4 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit vrf def v3 rd 1:3 rt-both 1:3 exit vrf def v4 rd 1:4 rt-both 1:4 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo21 vrf for v2 ipv4 addr 9.9.2.2 255.255.255.255 ipv6 addr 9992::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo22 vrf for v2 ipv4 addr 9.9.2.22 255.255.255.255 ipv6 addr 9992::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo23 vrf for v2 ipv4 addr 9.9.2.222 255.255.255.255 ipv6 addr 9992::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo31 vrf for v3 ipv4 addr 9.9.3.2 255.255.255.255 ipv6 addr 9993::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo32 vrf for v3 ipv4 addr 9.9.3.22 255.255.255.255 ipv6 addr 9993::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo33 vrf for v3 ipv4 addr 9.9.3.222 255.255.255.255 ipv6 addr 9993::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo41 vrf for v4 ipv4 addr 9.9.4.2 255.255.255.255 ipv6 addr 9994::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo42 vrf for v4 ipv4 addr 9.9.4.22 255.255.255.255 ipv6 addr 9994::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo43 vrf for v4 ipv4 addr 9.9.4.222 255.255.255.255 ipv6 addr 9994::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.1 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 router bgp4 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 4.4.4.2 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both neigh 2.2.2.1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit router bgp6 1 vrf v1 no safe-ebgp address evpn local-as 2 router-id 6.6.6.2 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both neigh 4321::1 soft-reconfig afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 import evpn afi-ovrf v2 export evpn afi-ovrf v3 ena afi-ovrf v3 red conn afi-ovrf v3 import evpn afi-ovrf v3 export evpn afi-ovrf v4 ena afi-ovrf v4 red conn afi-ovrf v4 import evpn afi-ovrf v4 export evpn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 9.9.2.2 vrf v2 r2 tping 100 60 9.9.2.1 vrf v2 r1 tping 100 60 9992::2 vrf v2 r2 tping 100 60 9992::1 vrf v2 r1 tping 100 60 9.9.3.2 vrf v3 r2 tping 100 60 9.9.3.1 vrf v3 r1 tping 100 60 9993::2 vrf v3 r2 tping 100 60 9993::1 vrf v3 r1 tping 100 60 9.9.4.2 vrf v4 r2 tping 100 60 9.9.4.1 vrf v4 r1 tping 100 60 9994::2 vrf v4 r2 tping 100 60 9994::1 vrf v4 r1 tping 100 60 9.9.2.22 vrf v2 r2 tping 0 60 9.9.2.11 vrf v2 r1 tping 100 60 9992::22 vrf v2 r2 tping 0 60 9992::11 vrf v2 r1 tping 100 60 9.9.3.22 vrf v3 r2 tping 0 60 9.9.3.11 vrf v3 r1 tping 100 60 9993::22 vrf v3 r2 tping 0 60 9993::11 vrf v3 r1 tping 100 60 9.9.4.22 vrf v4 r2 tping 0 60 9.9.4.11 vrf v4 r1 tping 100 60 9994::22 vrf v4 r2 tping 0 60 9994::11 vrf v4 r1 tping 100 60 9.9.2.222 vrf v2 r2 tping 100 60 9.9.2.111 vrf v2 r1 tping 100 60 9992::222 vrf v2 r2 tping 100 60 9992::111 vrf v2 r1 tping 100 60 9.9.3.222 vrf v3 r2 tping 100 60 9.9.3.111 vrf v3 r1 tping 100 60 9993::222 vrf v3 r2 tping 100 60 9993::111 vrf v3 r1 tping 100 60 9.9.4.222 vrf v4 r2 tping 100 60 9.9.4.111 vrf v4 r1 tping 100 60 9994::222 vrf v4 r2 tping 100 60 9994::111 vrf v4 freeRtr-24.11.16/cfg/rout-bgp848.tst000066400000000000000000000026311471627602100166650ustar00rootroot00000000000000description unicast+mtree over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mtree local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mtree local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mtree local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mtree local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp849.tst000066400000000000000000000030441471627602100166650ustar00rootroot00000000000000description unicast+mtree over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mtree local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mtree local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mtree local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mtree local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp850.tst000066400000000000000000000034261471627602100166610ustar00rootroot00000000000000description unicast+mtree over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mtree local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni mtree neigh 1.1.1.2 additional-path-tx uni mtree red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mtree local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni mtree neigh 1234:1::2 additional-path-tx uni mtree red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni mtree local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni mtree neigh 1.1.1.1 additional-path-tx uni mtree red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni mtree local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni mtree neigh 1234:1::1 additional-path-tx uni mtree red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp851.tst000066400000000000000000000026421471627602100166610ustar00rootroot00000000000000description unicast+othermtree over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omtree local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omtree local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omtree local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omtree local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp852.tst000066400000000000000000000030551471627602100166610ustar00rootroot00000000000000description unicast+othermtree over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omtree local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omtree local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omtree local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omtree local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp853.tst000066400000000000000000000034471471627602100166670ustar00rootroot00000000000000description unicast+othermtree over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omtree local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni omtree neigh 1.1.1.2 additional-path-tx uni omtree red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omtree local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni omtree neigh 1234:1::2 additional-path-tx uni omtree red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni omtree local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni omtree neigh 1.1.1.1 additional-path-tx uni omtree red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni omtree local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni omtree neigh 1234:1::1 additional-path-tx uni omtree red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp854.tst000066400000000000000000000072641471627602100166710ustar00rootroot00000000000000description bgp routemap filtering with pathlimit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aslimit 2 4 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 aspath-limit red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 aspath-limit red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aspath-limit neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aspath-limit neigh 1234:2::2 remote-as 3 neigh 1234:2::2 aspath-limit red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 aspath-limit neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 aspath-limit neigh 1234:3::2 remote-as 4 neigh 1234:3::2 aspath-limit red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 aspath-limit red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp855.tst000066400000000000000000000073061471627602100166670ustar00rootroot00000000000000description bgp routepolicy filtering with pathlimit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 set aslimit 2 4 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 aspath-limit red conn route-policy rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 aspath-limit red conn route-policy rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aspath-limit neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aspath-limit neigh 1234:2::2 remote-as 3 neigh 1234:2::2 aspath-limit red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 aspath-limit neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 aspath-limit neigh 1234:3::2 remote-as 4 neigh 1234:3::2 aspath-limit red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 aspath-limit red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp856.tst000066400000000000000000000100601471627602100166570ustar00rootroot00000000000000description bgp routemap filtering with pathlimit with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aslimit 2 4 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 aspath-limit neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 aspath-limit neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aspath-limit neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 aspath-limit neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aspath-limit neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 aspath-limit neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 aspath-limit neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 aspath-limit neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 aspath-limit neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 4 neigh 1234:3::2 aspath-limit neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 aspath-limit neigh 1.1.1.9 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 aspath-limit neigh 1234:3::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp857.tst000066400000000000000000000101021471627602100166550ustar00rootroot00000000000000description bgp routepolicy filtering with pathlimit with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-policy rm1 set aslimit 2 4 pass exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 aspath-limit neigh 1.1.1.2 soft-reconfig red conn route-policy rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 aspath-limit neigh 1234:1::2 soft-reconfig red conn route-policy rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aspath-limit neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 aspath-limit neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aspath-limit neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 aspath-limit neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 aspath-limit neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 aspath-limit neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 aspath-limit neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 4 neigh 1234:3::2 aspath-limit neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 aspath-limit neigh 1.1.1.9 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 aspath-limit neigh 1234:3::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp858.tst000066400000000000000000000110241471627602100166620ustar00rootroot00000000000000description bgp change in pathlimit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aslimit 2 4 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 aspath-limit red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 aspath-limit red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aspath-limit neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aspath-limit neigh 1234:2::2 remote-as 3 neigh 1234:2::2 aspath-limit red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 aspath-limit neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 aspath-limit neigh 1234:3::2 remote-as 4 neigh 1234:3::2 aspath-limit red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 aspath-limit red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 aspath-limit red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set aslimit 4 4 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp859.tst000066400000000000000000000116201471627602100166650ustar00rootroot00000000000000description bgp change in pathlimit with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit route-map rm1 set aslimit 2 4 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 aspath-limit neigh 1.1.1.2 soft-reconfig red conn route-map rm1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 aspath-limit neigh 1234:1::2 soft-reconfig red conn route-map rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 aspath-limit neigh 1.1.1.1 soft-reconfig neigh 1.1.1.6 remote-as 3 neigh 1.1.1.6 aspath-limit neigh 1.1.1.6 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 aspath-limit neigh 1234:1::1 soft-reconfig neigh 1234:2::2 remote-as 3 neigh 1234:2::2 aspath-limit neigh 1234:2::2 soft-reconfig red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.5 aspath-limit neigh 1.1.1.5 soft-reconfig neigh 1.1.1.10 remote-as 4 neigh 1.1.1.10 aspath-limit neigh 1.1.1.10 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:2::1 aspath-limit neigh 1234:2::1 soft-reconfig neigh 1234:3::2 remote-as 4 neigh 1234:3::2 aspath-limit neigh 1234:3::2 soft-reconfig red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 neigh 1.1.1.9 aspath-limit neigh 1.1.1.9 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 neigh 1234:3::1 aspath-limit neigh 1234:3::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 0 60 2.2.2.1 vrf v1 r4 tping 0 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set aslimit 4 4 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/rout-bgp860.tst000066400000000000000000000026171471627602100166630ustar00rootroot00000000000000description unicast+spf over bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni spf local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni spf local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni spf local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni spf local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp861.tst000066400000000000000000000030321471627602100166540ustar00rootroot00000000000000description unicast+spf over bgp with soft-reconfig addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni spf local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni spf local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 soft-reconfig red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni spf local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 soft-reconfig red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni spf local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 soft-reconfig red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-bgp862.tst000066400000000000000000000033741471627602100166660ustar00rootroot00000000000000description unicast+spf over bgp with additional path addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni spf local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 send-comm both neigh 1.1.1.2 additional-path-rx uni spf neigh 1.1.1.2 additional-path-tx uni spf red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni spf local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 send-comm both neigh 1234:1::2 additional-path-rx uni spf neigh 1234:1::2 additional-path-tx uni spf red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni spf local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 send-comm both neigh 1.1.1.1 additional-path-rx uni spf neigh 1.1.1.1 additional-path-tx uni spf red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni spf local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:1::1 send-comm both neigh 1234:1::1 additional-path-rx uni spf neigh 1234:1::1 additional-path-tx uni spf red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 sou lo0 r1 tping 100 60 4321::2 vrf v1 sou lo0 r2 tping 100 60 2.2.2.1 vrf v1 sou lo0 r2 tping 100 60 4321::1 vrf v1 sou lo0 freeRtr-24.11.16/cfg/rout-eigrp01.tst000066400000000000000000000023541471627602100171220ustar00rootroot00000000000000description eigrp point2point connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp02.tst000066400000000000000000000060601471627602100171210ustar00rootroot00000000000000description eigrp point2multipoint connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router eigrp4 1 vrf v1 router 4.4.4.4 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.4 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp03.tst000066400000000000000000000070401471627602100171210ustar00rootroot00000000000000description eigrp point2point chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.4 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.4 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-eigrp.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-eigrp04.tst000066400000000000000000000064121471627602100171240ustar00rootroot00000000000000description eigrp ingress delay addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp4 1 delay-in 100 router eigrp6 1 ena router eigrp6 1 delay-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp05.tst000066400000000000000000000064131471627602100171260ustar00rootroot00000000000000description eigrp egress delay addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp4 1 delay-out 100 router eigrp6 1 ena router eigrp6 1 delay-out 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp06.tst000066400000000000000000000033111471627602100171210ustar00rootroot00000000000000description eigrp address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp4 1 suppress router eigrp6 1 ena router eigrp6 1 passiv router eigrp6 1 suppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp07.tst000066400000000000000000000043441471627602100171310ustar00rootroot00000000000000description eigrp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 prefix-list-in p4 router eigrp6 1 prefix-list-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp08.tst000066400000000000000000000043451471627602100171330ustar00rootroot00000000000000description eigrp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 prefix-list-out p4 router eigrp6 1 prefix-list-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp09.tst000066400000000000000000000044461471627602100171360ustar00rootroot00000000000000description eigrp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 route-map-in p4 router eigrp6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp10.tst000066400000000000000000000044471471627602100171270ustar00rootroot00000000000000description eigrp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 route-map-out p4 router eigrp6 1 route-map-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp11.tst000066400000000000000000000043151471627602100171220ustar00rootroot00000000000000description eigrp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 route-policy-in p4 router eigrp6 1 route-policy-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp12.tst000066400000000000000000000043171471627602100171250ustar00rootroot00000000000000description eigrp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 route-policy-out p4 router eigrp6 1 route-policy-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp13.tst000066400000000000000000000024251471627602100171240ustar00rootroot00000000000000description eigrp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp4 1 default router eigrp6 1 ena router eigrp6 1 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp14.tst000066400000000000000000000046101471627602100171230ustar00rootroot00000000000000description eigrp with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router eigrp4 1 ena router eigrp4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router eigrp6 1 ena router eigrp6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router eigrp4 1 ena router eigrp4 1 bfd router eigrp4 1 delay-in 100 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router eigrp6 1 ena router eigrp6 1 bfd router eigrp6 1 delay-in 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router eigrp4 1 ena router eigrp4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router eigrp6 1 ena router eigrp6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router eigrp4 1 ena router eigrp4 1 bfd router eigrp4 1 delay-in 100 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router eigrp6 1 ena router eigrp6 1 bfd router eigrp6 1 delay-in 100 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp15.tst000066400000000000000000000026711471627602100171310ustar00rootroot00000000000000description eigrp peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: temp temp1 exit int temp1 router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp16.tst000066400000000000000000000033541471627602100171310ustar00rootroot00000000000000description eigrp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router eigrp4 1 ena r1 send no router eigrp6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router eigrp4 1 ena r1 send router eigrp6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp17.tst000066400000000000000000000044731471627602100171350ustar00rootroot00000000000000description eigrp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 route-map-in p4 router eigrp6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 aggregate 2.2.2.0/24 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 aggregate 4321::/32 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp18.tst000066400000000000000000000041431471627602100171300ustar00rootroot00000000000000description eigrp auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn automesh all exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn automesh all exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router eigrp4 1 ena router eigrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 40 9.9.9.2 vrf v1 r1 tping 100 40 9999::2 vrf v1 r2 tping 100 40 9.9.9.1 vrf v1 r2 tping 100 40 9999::1 vrf v1 r1 tping 0 40 2.2.2.2 vrf v1 r1 tping 0 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp19.tst000066400000000000000000000024061471627602100171310ustar00rootroot00000000000000description eigrp stub addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn stub conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn stub conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn stub conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn stub conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp20.tst000066400000000000000000000056201471627602100171220ustar00rootroot00000000000000description eigrp triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router eigrp4 1 ena router eigrp4 1 delay-in 100 router eigrp6 1 ena router eigrp6 1 delay-in 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router eigrp4 1 ena router eigrp4 1 delay-in 100 router eigrp6 1 ena router eigrp6 1 delay-in 100 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp21.tst000066400000000000000000000050401471627602100171170ustar00rootroot00000000000000description eigrp autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router eigrp4 1 vrf v1 router 4.4.4.1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute eigrp4 1 2.2.2.2 9.9.8.2 ipv6 autoroute eigrp6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router eigrp4 1 vrf v1 router 4.4.4.2 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router eigrp4 1 ena router eigrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute eigrp4 1 2.2.2.1 9.9.8.1 ipv6 autoroute eigrp6 1 4321::1 9998::1 exit ! r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 tping 0 40 9.9.9.2 vrf v1 r1 tping 0 40 9999::2 vrf v1 r2 tping 0 40 9.9.9.1 vrf v1 r2 tping 0 40 9999::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp22.tst000066400000000000000000000024651471627602100171300ustar00rootroot00000000000000description eigrp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp23.tst000066400000000000000000000066631471627602100171350ustar00rootroot00000000000000description eigrp ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn ecmp exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn ecmp exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 red conn ecmp exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp24.tst000066400000000000000000000037011471627602100171240ustar00rootroot00000000000000description eigrp default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 suppress exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 suppress exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.111 vrf v1 r1 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp25.tst000066400000000000000000000037671471627602100171410ustar00rootroot00000000000000description eigrp address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 suppress exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 suppress exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp4 1 unsuppress router eigrp6 1 ena router eigrp6 1 passiv router eigrp6 1 unsuppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router eigrp4 1 ena router eigrp4 1 passiv router eigrp6 1 ena router eigrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.111 vrf v1 r1 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp26.tst000066400000000000000000000056461471627602100171400ustar00rootroot00000000000000description eigrp auto summarization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 route-map-in p4 router eigrp6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 autosumm red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 autosumm red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp4 1 ena router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-eigrp27.tst000066400000000000000000000026141471627602100171310ustar00rootroot00000000000000description eigrp with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 ipinfo pmtud 512 1024 666 router eigrp6 1 ipinfo pmtud 512 1024 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router eigrp4 1 ena router eigrp6 1 ena router eigrp4 1 ipinfo pmtud 512 1024 666 router eigrp6 1 ipinfo pmtud 512 1024 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 eigrp 1 sum r2 output show ipv6 eigrp 1 sum r2 output show ipv4 eigrp 1 rou r2 output show ipv6 eigrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis001.tst000066400000000000000000000026561471627602100170500ustar00rootroot00000000000000description isis over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis002.tst000066400000000000000000000025631471627602100170460ustar00rootroot00000000000000description isis over ethernet vlan addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis003.tst000066400000000000000000000031551471627602100170450ustar00rootroot00000000000000description isis over ethernet bridge addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth2.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int bvi2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth2.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int bvi2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis004.tst000066400000000000000000000031321471627602100170410ustar00rootroot00000000000000description isis over hdlc addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc hdlc vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc hdlc vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis005.tst000066400000000000000000000033351471627602100170470ustar00rootroot00000000000000description isis over ppp addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc ppp ppp ip4cp close ppp ip6cp close vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis006.tst000066400000000000000000000034401471627602100170450ustar00rootroot00000000000000description isis over framerelay addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc framerelay framerelay mode dce framerelay dlci 123 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc framerelay framerelay mode dte framerelay dlci 123 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis007.tst000066400000000000000000000033241471627602100170470ustar00rootroot00000000000000description isis over atmdxi addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 raw-encapsulation exit int ser2 enc atmdxi atmdxi vpi 1 atmdxi vci 2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 raw-encapsulation exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis008.tst000066400000000000000000000035411471627602100170510ustar00rootroot00000000000000description isis over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9.9.9.2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int tun2 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9.9.9.1 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis009.tst000066400000000000000000000063761471627602100170630ustar00rootroot00000000000000description isis narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 no metric-wide is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 no metric-wide is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.3 vrf v1 r3 send conf t r3 send router isis4 1 r3 send no metric-wide r3 send end r3 send conf t r3 send router isis6 1 r3 send no metric-wide r3 send end r3 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-isis.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here is the ipv4 tree:
show:4
here is the ipv6 tree:
show:5
here are the ipv4 routes:
show:6
here are the ipv6 routes:
show:7
! freeRtr-24.11.16/cfg/rout-isis010.tst000066400000000000000000000062211471627602100170400ustar00rootroot00000000000000description isis overload addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level1 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level1 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.2 vrf v1 r2 send conf t r2 send router isis4 1 r2 send both set-over r2 send end r2 send conf t r2 send router isis6 1 r2 send both set-over r2 send end r2 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis011.tst000066400000000000000000000055771471627602100170560ustar00rootroot00000000000000description isis attached addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level1 exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level1 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send router isis4 1 r1 send both set-atta r1 send end r1 send conf t r1 send router isis6 1 r1 send both set-atta r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis012.tst000066400000000000000000000050271471627602100170450ustar00rootroot00000000000000description isis chain of broadcast nets addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis013.tst000066400000000000000000000053651471627602100170530ustar00rootroot00000000000000description isis broadcast subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit bridge 2 mac-learn exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int eth2.11 bridge-gr 1 exit int eth2.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::3 ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis014.tst000066400000000000000000000137711471627602100170540ustar00rootroot00000000000000description isis updown bit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level1 red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.2222.00 is-type both red conn exit router isis6 1 vrf v1 net 11.6666.0000.2222.00 is-type both red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type both red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type both red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:3::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.4444.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.4444.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:3::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:4::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.5555.00 is-type both red conn exit router isis6 1 vrf v1 net 22.6666.0000.5555.00 is-type both red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:4::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:5::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 33.4444.0000.6666.00 is-type level2 red conn exit router isis6 1 vrf v1 net 33.6666.0000.6666.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:5::2 ffff:ffff:: router isis6 1 ena exit ! r5 tping 100 20 2.2.2.1 vrf v1 r5 tping 100 20 2.2.2.2 vrf v1 r5 tping 100 20 2.2.2.3 vrf v1 r5 tping 100 20 2.2.2.4 vrf v1 r5 tping 100 20 2.2.2.6 vrf v1 r5 tping 100 20 4321::1 vrf v1 r5 tping 100 20 4321::2 vrf v1 r5 tping 100 20 4321::3 vrf v1 r5 tping 100 20 4321::4 vrf v1 r5 tping 100 20 4321::6 vrf v1 r6 tping 0 20 2.2.2.1 vrf v1 r6 tping 0 20 2.2.2.2 vrf v1 r6 tping 100 20 2.2.2.3 vrf v1 r6 tping 100 20 2.2.2.4 vrf v1 r6 tping 100 20 2.2.2.5 vrf v1 r6 tping 0 20 4321::1 vrf v1 r6 tping 0 20 4321::2 vrf v1 r6 tping 100 20 4321::3 vrf v1 r6 tping 100 20 4321::4 vrf v1 r6 tping 100 20 4321::5 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.4 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 tping 0 20 2.2.2.6 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::4 vrf v1 r2 tping 100 20 4321::5 vrf v1 r2 tping 0 20 4321::6 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.4 vrf v1 r1 tping 100 20 2.2.2.5 vrf v1 r1 tping 0 20 2.2.2.6 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 100 20 4321::4 vrf v1 r1 tping 100 20 4321::5 vrf v1 r1 tping 0 20 4321::6 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r4 tping 100 20 2.2.2.2 vrf v1 r4 tping 100 20 2.2.2.3 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 tping 100 20 2.2.2.6 vrf v1 r4 tping 100 20 4321::1 vrf v1 r4 tping 100 20 4321::2 vrf v1 r4 tping 100 20 4321::3 vrf v1 r4 tping 100 20 4321::5 vrf v1 r4 tping 100 20 4321::6 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 2.2.2.4 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 tping 100 20 2.2.2.6 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 4321::4 vrf v1 r3 tping 100 20 4321::5 vrf v1 r3 tping 100 20 4321::6 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis015.tst000066400000000000000000000143141471627602100170470ustar00rootroot00000000000000description isis updown bit with narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level1 no metric-wide red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 is-type level1 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.2222.00 is-type both no metric-wide red conn exit router isis6 1 vrf v1 net 11.6666.0000.2222.00 is-type both no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type both no metric-wide red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type both no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:3::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.4444.00 is-type level1 no metric-wide red conn exit router isis6 1 vrf v1 net 22.6666.0000.4444.00 is-type level1 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:3::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:4::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.5555.00 is-type both no metric-wide red conn exit router isis6 1 vrf v1 net 22.6666.0000.5555.00 is-type both no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:4::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:5::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 33.4444.0000.6666.00 is-type level2 no metric-wide red conn exit router isis6 1 vrf v1 net 33.6666.0000.6666.00 is-type level2 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:5::2 ffff:ffff:: router isis6 1 ena exit ! r5 tping 100 20 2.2.2.1 vrf v1 r5 tping 100 20 2.2.2.2 vrf v1 r5 tping 100 20 2.2.2.3 vrf v1 r5 tping 100 20 2.2.2.4 vrf v1 r5 tping 100 20 2.2.2.6 vrf v1 r5 tping 100 20 4321::1 vrf v1 r5 tping 100 20 4321::2 vrf v1 r5 tping 100 20 4321::3 vrf v1 r5 tping 100 20 4321::4 vrf v1 r5 tping 100 20 4321::6 vrf v1 r6 tping 0 20 2.2.2.1 vrf v1 r6 tping 0 20 2.2.2.2 vrf v1 r6 tping 100 20 2.2.2.3 vrf v1 r6 tping 100 20 2.2.2.4 vrf v1 r6 tping 100 20 2.2.2.5 vrf v1 r6 tping 0 20 4321::1 vrf v1 r6 tping 0 20 4321::2 vrf v1 r6 tping 100 20 4321::3 vrf v1 r6 tping 100 20 4321::4 vrf v1 r6 tping 100 20 4321::5 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.4 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 tping 0 20 2.2.2.6 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::4 vrf v1 r2 tping 100 20 4321::5 vrf v1 r2 tping 0 20 4321::6 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.4 vrf v1 r1 tping 100 20 2.2.2.5 vrf v1 r1 tping 0 20 2.2.2.6 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 100 20 4321::4 vrf v1 r1 tping 100 20 4321::5 vrf v1 r1 tping 0 20 4321::6 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r4 tping 100 20 2.2.2.2 vrf v1 r4 tping 100 20 2.2.2.3 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 tping 100 20 2.2.2.6 vrf v1 r4 tping 100 20 4321::1 vrf v1 r4 tping 100 20 4321::2 vrf v1 r4 tping 100 20 4321::3 vrf v1 r4 tping 100 20 4321::5 vrf v1 r4 tping 100 20 4321::6 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 2.2.2.4 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 tping 100 20 2.2.2.6 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 4321::4 vrf v1 r3 tping 100 20 4321::5 vrf v1 r3 tping 100 20 4321::6 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis016.tst000066400000000000000000000036521471627602100170530ustar00rootroot00000000000000description isis address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 exit int lo11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 passive router isis4 1 suppress-pref exit int lo22 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive router isis6 1 suppress-pref exit int lo31 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo32 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 0 20 2.2.2.2 vrf v1 r2 tping 0 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis017.tst000066400000000000000000000046321471627602100170530ustar00rootroot00000000000000description isis inter-level routes addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis018.tst000066400000000000000000000027641471627602100170600ustar00rootroot00000000000000description isis text authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 password tester exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 password tester exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 password tester exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis019.tst000066400000000000000000000065511471627602100170570ustar00rootroot00000000000000description isis intra level metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena router isis4 1 metric 100 exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 metric 100 exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 exit int lo11 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo22 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis020.tst000066400000000000000000000065601471627602100170470ustar00rootroot00000000000000description isis external metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 100 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 exit int lo11 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo22 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis021.tst000066400000000000000000000067261471627602100170540ustar00rootroot00000000000000description isis external narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 30 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 no metric-wide red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 no metric-wide red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 no metric-wide red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 no metric-wide exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 no metric-wide exit int lo11 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo22 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis022.tst000066400000000000000000000066721471627602100170550ustar00rootroot00000000000000description isis external metric vs intra level metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 100 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena router isis4 1 metric 50 exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 metric 50 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 exit int lo11 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo22 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis023.tst000066400000000000000000000065771471627602100170620ustar00rootroot00000000000000description isis inter level ingress filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn both prefix-list-from p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn both prefix-list-from p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 0 20 2.2.2.13 vrf v1 r2 tping 0 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis024.tst000066400000000000000000000065761471627602100170620ustar00rootroot00000000000000description isis inter level egress filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn both prefix-list-into p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn both prefix-list-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis025.tst000066400000000000000000000067011471627602100170510ustar00rootroot00000000000000description isis inter level ingress filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn both route-map-from p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn both route-map-from p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 0 20 2.2.2.13 vrf v1 r2 tping 0 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis026.tst000066400000000000000000000067001471627602100170510ustar00rootroot00000000000000description isis inter level egress filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn both route-map-into p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn both route-map-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis027.tst000066400000000000000000000065501471627602100170550ustar00rootroot00000000000000description isis inter level ingress filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn both route-policy-from p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn both route-policy-from p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 0 20 2.2.2.13 vrf v1 r2 tping 0 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis028.tst000066400000000000000000000065471471627602100170640ustar00rootroot00000000000000description isis inter level egress filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both red conn both route-policy-into p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn both route-policy-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis029.tst000066400000000000000000000025661471627602100170620ustar00rootroot00000000000000description isis default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both default exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both default exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis030.tst000066400000000000000000000050731471627602100170460ustar00rootroot00000000000000description isis with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router isis4 1 ena router isis4 1 bfd exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router isis6 1 ena router isis6 1 bfd exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router isis4 1 ena router isis4 1 bfd router isis4 1 metric 100 exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router isis6 1 ena router isis6 1 bfd router isis6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router isis4 1 ena router isis4 1 bfd exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router isis6 1 ena router isis6 1 bfd exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router isis4 1 ena router isis4 1 bfd router isis4 1 metric 100 exit int eth2.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router isis6 1 ena router isis6 1 bfd router isis6 1 metric 100 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis031.tst000066400000000000000000000027621471627602100170510ustar00rootroot00000000000000description isis with te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 4.4.4.1 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 both traff red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 traffeng 4.4.4.2 both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 traffeng 6.6.6.1 both traff red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis032.tst000066400000000000000000000033441471627602100170470ustar00rootroot00000000000000description isis peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 router isis4 1 ena exit int temp2 vrf for v1 ipv6 addr 9999::9 ffff:: router isis6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 temp temp1 exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: temp temp2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 exit int temp2 vrf for v1 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 temp temp1 exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: temp temp2 exit int temp1 router isis4 1 ena exit int temp2 router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis033.tst000066400000000000000000000052121471627602100170440ustar00rootroot00000000000000description isis chain of broadcast nets with narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis034.tst000066400000000000000000000055501471627602100170520ustar00rootroot00000000000000description isis broadcast subnet with narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit bridge 2 mac-learn exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int eth2.11 bridge-gr 1 exit int eth2.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 no metric-wide red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 no metric-wide red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::3 ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis035.tst000066400000000000000000000052051471627602100170500ustar00rootroot00000000000000description isis multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.3 vrf v1 r3 send conf t r3 send router isis4 1 r3 send multi-topology r3 send end r3 send conf t r3 send router isis6 1 r3 send multi-topology r3 send end r3 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis036.tst000066400000000000000000000143151471627602100170530ustar00rootroot00000000000000description isis updown bit with multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level1 multi-topology red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 is-type level1 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.2222.00 is-type both multi-topology red conn exit router isis6 1 vrf v1 net 11.6666.0000.2222.00 is-type both multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type both multi-topology red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type both multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:3::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.4444.00 is-type level1 multi-topology red conn exit router isis6 1 vrf v1 net 22.6666.0000.4444.00 is-type level1 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:3::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:4::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ int eth2 eth 0000.0000.5555 $5a$ $5b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.5555.00 is-type both multi-topology red conn exit router isis6 1 vrf v1 net 22.6666.0000.5555.00 is-type both multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:4::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.17 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:5::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 33.4444.0000.6666.00 is-type level2 multi-topology red conn exit router isis6 1 vrf v1 net 33.6666.0000.6666.00 is-type level2 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.18 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:5::2 ffff:ffff:: router isis6 1 ena exit ! r5 tping 100 20 2.2.2.1 vrf v1 r5 tping 100 20 2.2.2.2 vrf v1 r5 tping 100 20 2.2.2.3 vrf v1 r5 tping 100 20 2.2.2.4 vrf v1 r5 tping 100 20 2.2.2.6 vrf v1 r5 tping 100 20 4321::1 vrf v1 r5 tping 100 20 4321::2 vrf v1 r5 tping 100 20 4321::3 vrf v1 r5 tping 100 20 4321::4 vrf v1 r5 tping 100 20 4321::6 vrf v1 r6 tping 0 20 2.2.2.1 vrf v1 r6 tping 0 20 2.2.2.2 vrf v1 r6 tping 100 20 2.2.2.3 vrf v1 r6 tping 100 20 2.2.2.4 vrf v1 r6 tping 100 20 2.2.2.5 vrf v1 r6 tping 0 20 4321::1 vrf v1 r6 tping 0 20 4321::2 vrf v1 r6 tping 100 20 4321::3 vrf v1 r6 tping 100 20 4321::4 vrf v1 r6 tping 100 20 4321::5 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.4 vrf v1 r2 tping 100 20 2.2.2.5 vrf v1 r2 tping 0 20 2.2.2.6 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::4 vrf v1 r2 tping 100 20 4321::5 vrf v1 r2 tping 0 20 4321::6 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.4 vrf v1 r1 tping 100 20 2.2.2.5 vrf v1 r1 tping 0 20 2.2.2.6 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 100 20 4321::4 vrf v1 r1 tping 100 20 4321::5 vrf v1 r1 tping 0 20 4321::6 vrf v1 r4 tping 100 20 2.2.2.1 vrf v1 r4 tping 100 20 2.2.2.2 vrf v1 r4 tping 100 20 2.2.2.3 vrf v1 r4 tping 100 20 2.2.2.5 vrf v1 r4 tping 100 20 2.2.2.6 vrf v1 r4 tping 100 20 4321::1 vrf v1 r4 tping 100 20 4321::2 vrf v1 r4 tping 100 20 4321::3 vrf v1 r4 tping 100 20 4321::5 vrf v1 r4 tping 100 20 4321::6 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 2.2.2.4 vrf v1 r3 tping 100 20 2.2.2.5 vrf v1 r3 tping 100 20 2.2.2.6 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 4321::4 vrf v1 r3 tping 100 20 4321::5 vrf v1 r3 tping 100 20 4321::6 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis037.tst000066400000000000000000000067271471627602100170640ustar00rootroot00000000000000description isis external multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 30 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 multi-topology red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 multi-topology red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 multi-topology red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 multi-topology exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 multi-topology exit int lo11 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo22 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis038.tst000066400000000000000000000031011471627602100170440ustar00rootroot00000000000000description isis multi-topology with te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 traffeng 4.4.4.1 multi-topology both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 traffeng 6.6.6.1 multi-topology both traff red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 traffeng 4.4.4.2 multi-topology both traff red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 traffeng 6.6.6.1 multi-topology both traff red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis039.tst000066400000000000000000000052131471627602100170530ustar00rootroot00000000000000description isis chain of broadcast nets with multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis040.tst000066400000000000000000000055511471627602100170500ustar00rootroot00000000000000description isis broadcast subnet with multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit bridge 2 mac-learn exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int eth2.11 bridge-gr 1 exit int eth2.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit bridge 2 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 multi-topology red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 bridge-gr 1 exit int eth1.12 bridge-gr 2 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 router isis4 1 ena router isis4 1 net broad exit int bvi2 vrf for v1 ipv6 addr 1234::3 ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis041.tst000066400000000000000000000102751471627602100170500ustar00rootroot00000000000000description isis with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 traffeng 4.4.4.2 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo2 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo2 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo2 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo2 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo2 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis042.tst000066400000000000000000000103051471627602100170430ustar00rootroot00000000000000description isis inter-level with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 is-type level2 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both traffeng 4.4.4.2 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both traffeng 6.6.6.2 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 traffeng 4.4.4.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo2 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo2 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo2 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo2 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo2 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis043.tst000066400000000000000000000104541471627602100170510ustar00rootroot00000000000000description isis multi-topology with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology is-type level2 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 multi-topology is-type level2 traffeng 4.4.4.2 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 multi-topology is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 multi-topology is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 multi-topology is-type level2 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo2 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo2 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo2 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo2 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo2 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis044.tst000066400000000000000000000037311471627602100170520ustar00rootroot00000000000000description isis prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router isis4 1 ena r1 send exit r1 send int lo2 r1 send no router isis6 1 ena r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router isis4 1 ena r1 send exit r1 send int lo2 r1 send router isis6 1 ena r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis045.tst000066400000000000000000000067711471627602100170620ustar00rootroot00000000000000description isis change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 1000 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 red conn route-map rm1 exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn both route-map-from rm1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn both route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis046.tst000066400000000000000000000067321471627602100170600ustar00rootroot00000000000000description isis aggregate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both aggregate 2.2.2.0/24 red conn both route-map-into p4 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both aggregate 4321::/32 red conn both route-map-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 100 20 2.2.2.13 vrf v1 r1 tping 100 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 100 20 2.2.2.11 vrf v1 r3 tping 100 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis047.tst000066400000000000000000000045101471627602100170510ustar00rootroot00000000000000description isis auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn automesh all exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 router isis4 1 ena ipv4 access-group-in test4 mpls enable mpls rsvp4 exit int ser2 vrf for v1 ipv6 addr 9999::1 ffff:: router isis6 1 ena ipv6 access-group-in test6 mpls enable mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn automesh all exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 router isis4 1 ena ipv4 access-group-in test4 mpls enable mpls rsvp4 exit int ser2 vrf for v1 ipv6 addr 9999::2 ffff:: router isis6 1 ena ipv6 access-group-in test6 mpls enable mpls rsvp6 exit ! r1 tping 100 20 9.9.9.2 vrf v1 r1 tping 100 20 9999::2 vrf v1 r2 tping 100 20 9.9.9.1 vrf v1 r2 tping 100 20 9999::1 vrf v1 r1 tping 0 20 2.2.2.2 vrf v1 r1 tping 0 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis048.tst000066400000000000000000000062211471627602100170530ustar00rootroot00000000000000description isis triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 router isis4 1 ena router isis4 1 metric 100 exit int eth2.12 vrf for v1 ipv6 addr 1234:3::2 ffff:ffff:: router isis6 1 ena router isis6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 router isis4 1 ena router isis4 1 metric 100 ipv4 access-group-in test4 exit int eth2.12 vrf for v1 ipv6 addr 1234:3::1 ffff:ffff:: router isis6 1 ena router isis6 1 metric 100 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis049.tst000066400000000000000000000137451471627602100170650ustar00rootroot00000000000000description isis prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 advertise 4321::1/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 advertise 2.2.2.2/32 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 advertise 4321::2/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router isis4 1 vrf v1 net 33.4444.0000.3333.00 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router isis6 1 vrf v1 net 33.6666.0000.3333.00 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis050.tst000066400000000000000000000105141471627602100170440ustar00rootroot00000000000000description isis with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 bier index 1 exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 bier index 2 exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 2 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 bier index 3 exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo2 r3 tping 0 20 4321::1 vrf v1 sou lo2 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-isis051.tst000066400000000000000000000105241471627602100170460ustar00rootroot00000000000000description isis inter-level with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level2 bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 is-type level2 bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 bier index 1 exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 is-type both bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 bier index 2 exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 2 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 is-type level1 bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 bier index 3 exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo2 r3 tping 0 20 4321::1 vrf v1 sou lo2 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-isis052.tst000066400000000000000000000105331471627602100170470ustar00rootroot00000000000000description isis multi-topology with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 bier index 1 exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 multi-topology bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 multi-topology bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 bier index 2 exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 2 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 multi-topology bier 256 10 both bier red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 multi-topology bier 256 10 both bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 bier index 3 exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 bier index 3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo2 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo2 r3 tping 0 20 4321::1 vrf v1 sou lo2 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-isis053.tst000066400000000000000000000056011471627602100170500ustar00rootroot00000000000000description isis autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ int ser3 ser 0000.0000.1111 $3a$ $3b$ int ser4 ser 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 router isis4 1 ena ipv4 access-group-in test4 exit int ser2 vrf for v1 ipv6 addr 9999::1 ffff:: router isis6 1 ena ipv6 access-group-in test6 exit int ser3 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv4 autoroute isis4 1 2.2.2.2 9.9.8.2 exit int ser4 vrf for v1 ipv6 addr 9998::1 ffff:: ipv6 autoroute isis6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ int ser3 ser 0000.0000.2222 $3b$ $3a$ int ser4 ser 0000.0000.2222 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 router isis4 1 ena ipv4 access-group-in test4 exit int ser2 vrf for v1 ipv6 addr 9999::2 ffff:: router isis6 1 ena ipv6 access-group-in test6 exit int ser3 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv4 autoroute isis4 1 2.2.2.1 9.9.8.1 exit int ser4 vrf for v1 ipv6 addr 9998::2 ffff:: ipv6 autoroute isis6 1 4321::1 9998::1 exit ! r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 9.9.9.2 vrf v1 r1 tping 0 20 9999::2 vrf v1 r2 tping 0 20 9.9.9.1 vrf v1 r2 tping 0 20 9999::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis054.tst000066400000000000000000000030201471627602100170420ustar00rootroot00000000000000description isis lsp text authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 both lsp-pass tester red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 both lsp-pass tester red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis055.tst000066400000000000000000000067521471627602100170620ustar00rootroot00000000000000description isis change in tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1000 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn both route-map-from rm1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn both route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis056.tst000066400000000000000000000071311471627602100170530ustar00rootroot00000000000000description isis multi-topology change in tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1000 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 multi-topology red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 multi-topology red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 multi-topology red conn both route-map-from rm1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 multi-topology red conn both route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 multi-topology red conn exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 multi-topology red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis057.tst000066400000000000000000000115271471627602100170600ustar00rootroot00000000000000description isis with php sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node router isis6 1 segrout pop exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo2 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 traffeng 4.4.4.2 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node router isis6 1 segrout pop exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node router isis4 1 segrout pop exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node router isis6 1 segrout pop exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo2 pweompls 4321::1 1234 exit ! r1 tping 0 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 4321::2 vrf v1 sou lo2 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo2 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 tping 0 20 4321::1 vrf v1 sou lo2 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo2 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo2 r3 tping 0 20 2.2.2.2 vrf v1 sou lo1 r3 tping 0 20 4321::2 vrf v1 sou lo2 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis058.tst000066400000000000000000000103701471627602100170540ustar00rootroot00000000000000description isis with srgb sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 base 100 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 traffeng 6.6.6.1 segrout 10 base 200 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 traffeng 4.4.4.2 segrout 10 base 100 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 base 200 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 base 100 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 traffeng 6.6.6.3 segrout 10 base 200 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 mpls enable router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo2 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo2 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo2 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo2 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo2 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis059.tst000066400000000000000000000030001471627602100170450ustar00rootroot00000000000000description isis over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis060.tst000066400000000000000000000027611471627602100170520ustar00rootroot00000000000000description isis with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis061.tst000066400000000000000000000055251471627602100170540ustar00rootroot00000000000000description isis narrow metric with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide is-type level2 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 no metric-wide is-type level2 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 no metric-wide is-type level2 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 no metric-wide is-type level2 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.3 vrf v1 r3 send conf t r3 send router isis4 1 r3 send no metric-wide r3 send end r3 send conf t r3 send router isis6 1 r3 send no metric-wide r3 send end r3 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis062.tst000066400000000000000000000052101471627602100170440ustar00rootroot00000000000000description isis chain of broadcast nets with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena router isis4 1 net broad exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena router isis6 1 net broad exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis063.tst000066400000000000000000000053661471627602100170610ustar00rootroot00000000000000description isis multi-topology with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 multi-topology red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 multi-topology red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 multi-topology red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn both spf-bidir exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 red conn both spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.3 vrf v1 r3 send conf t r3 send router isis4 1 r3 send multi-topology r3 send end r3 send conf t r3 send router isis6 1 r3 send multi-topology r3 send end r3 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis064.tst000066400000000000000000000076601471627602100170610ustar00rootroot00000000000000description isis ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn both spf-ecmp ecmp exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn both spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit int eth1.21 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 router isis4 1 ena exit int eth1.22 vrf for v1 ipv6 addr 1234:21::1 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:3::2 ffff:ffff:: router isis6 1 ena exit int eth2.21 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 router isis4 1 ena exit int eth2.22 vrf for v1 ipv6 addr 1234:23::2 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn both spf-ecmp ecmp exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn both spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth1.21 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 router isis4 1 ena exit int eth1.22 vrf for v1 ipv6 addr 1234:21::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena exit int eth2.21 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 router isis4 1 ena exit int eth2.22 vrf for v1 ipv6 addr 1234:22::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn both spf-ecmp ecmp exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 red conn both spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit int eth1.21 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 router isis4 1 ena exit int eth1.22 vrf for v1 ipv6 addr 1234:22::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:3::1 ffff:ffff:: router isis6 1 ena exit int eth2.21 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 router isis4 1 ena exit int eth2.22 vrf for v1 ipv6 addr 1234:23::1 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis065.tst000066400000000000000000000052651471627602100170610ustar00rootroot00000000000000description isis with bgp linkstate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 justadvert lo1 exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate afi-link isis4 1 2 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 linkstate afi-link isis6 1 2 justadvert lo2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 justadvert lo1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate afi-link isis4 1 2 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 linkstate afi-link isis6 1 2 justadvert lo2 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.102 vrf v1 r2 tping 100 20 2.2.2.101 vrf v1 r1 tping 100 20 4321::102 vrf v1 r2 tping 100 20 4321::101 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r1 output show ipv4 bgp 1 uni dat r1 output show ipv6 bgp 1 uni dat r1 output show ipv4 bgp 1 links dat r1 output show ipv6 bgp 1 links dat freeRtr-24.11.16/cfg/rout-isis066.tst000066400000000000000000000024151471627602100170540ustar00rootroot00000000000000description integrated isis over ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis067.tst000066400000000000000000000025411471627602100170550ustar00rootroot00000000000000description integrated isis over hdlc addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena router isis4 1 raw-encapsulation exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.4444.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 enc hdlc vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena router isis6 1 raw-encapsulation exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis068.tst000066400000000000000000000032461471627602100170610ustar00rootroot00000000000000description integrated isis over gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.252 ipv6 addr 9999::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena router isis4 1 raw-encapsulation exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.4444.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.252 ipv6 addr 9999::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 9999::1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena router isis6 1 raw-encapsulation exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis069.tst000066400000000000000000000046331471627602100170630ustar00rootroot00000000000000description integrated isis narrow metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 no metric-wide is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 no metric-wide is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.3 vrf v1 r3 send conf t r3 send router isis4 1 r3 send no metric-wide r3 send end r3 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis070.tst000066400000000000000000000051131471627602100170450ustar00rootroot00000000000000description integrated isis attached addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level1 afi-other enable exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send router isis4 1 r1 send both set-atta r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis071.tst000066400000000000000000000043751471627602100170570ustar00rootroot00000000000000description integrated isis chain of broadcast nets addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena router isis4 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena router isis6 1 net broad exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena router isis4 1 net broad exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis072.tst000066400000000000000000000045421471627602100170540ustar00rootroot00000000000000description integrated isis broadcast subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena router isis4 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena router isis6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router isis4 1 ena router isis4 1 other-ena router isis4 1 net broad exit ! r1 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis073.tst000066400000000000000000000032761471627602100170600ustar00rootroot00000000000000description integrated isis address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 afi-other enable exit int lo11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 passive router isis4 1 other-ena router isis4 1 suppress-pref router isis4 1 other-suppress-pref exit int lo31 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 passive exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 0 20 2.2.2.2 vrf v1 r2 tping 0 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis074.tst000066400000000000000000000042721471627602100170560ustar00rootroot00000000000000description integrated isis inter-level routes addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis075.tst000066400000000000000000000062451471627602100170610ustar00rootroot00000000000000description integrated isis inter level ingress filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn both prefix-list-from p6 both other-prefix-list-from p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 0 20 2.2.2.13 vrf v1 r2 tping 0 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis076.tst000066400000000000000000000062441471627602100170610ustar00rootroot00000000000000description integrated isis inter level egress filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn both prefix-list-into p6 both other-prefix-list-into p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis077.tst000066400000000000000000000063471471627602100170660ustar00rootroot00000000000000description integrated isis inter level ingress filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn both route-map-from p6 both other-route-map-from p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 0 20 2.2.2.13 vrf v1 r2 tping 0 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis078.tst000066400000000000000000000063461471627602100170660ustar00rootroot00000000000000description integrated isis inter level egress filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn both route-map-into p6 both other-route-map-into p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis079.tst000066400000000000000000000062161471627602100170630ustar00rootroot00000000000000description integrated isis inter level ingress filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn both route-policy-from p6 both other-route-policy-from p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 0 20 2.2.2.13 vrf v1 r2 tping 0 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis080.tst000066400000000000000000000062151471627602100170520ustar00rootroot00000000000000description integrated isis inter level egress filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both red conn afi-other enable afi-other red conn both route-policy-into p6 both other-route-policy-into p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis081.tst000066400000000000000000000024211471627602100170460ustar00rootroot00000000000000description integrated isis default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 afi-other enable both default both other-default exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis082.tst000066400000000000000000000045521471627602100170560ustar00rootroot00000000000000description integrated isis multi-topology addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.6666.0000.2222.00 multi-topology red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.3 vrf v1 r3 send conf t r3 send router isis4 1 r3 send multi-topology r3 send end r3 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis083.tst000066400000000000000000000072421471627602100170560ustar00rootroot00000000000000description integrated isis with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 1 router isis4 1 segrout other-index 2 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 segrout index 3 router isis6 1 segrout other-index 4 router isis6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 5 router isis4 1 segrout other-index 6 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis084.tst000066400000000000000000000072541471627602100170620ustar00rootroot00000000000000description integrated isis inter-level with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 1 router isis4 1 segrout other-index 2 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both traffeng 6.6.6.2 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 segrout index 3 router isis6 1 segrout other-index 4 router isis6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 traffeng 4.4.4.3 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 5 router isis4 1 segrout other-index 6 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis085.tst000066400000000000000000000073411471627602100170600ustar00rootroot00000000000000description integrated isis multi-topology with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 1 router isis4 1 segrout other-index 2 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.6666.0000.2222.00 multi-topology is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 3 router isis4 1 segrout other-index 4 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 multi-topology is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 5 router isis4 1 segrout other-index 6 router isis4 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis086.tst000066400000000000000000000034521471627602100170600ustar00rootroot00000000000000description integrated isis prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 afi-other enable exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 afi-other enable exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router isis4 1 ena r1 send no router isis4 1 other-ena r1 send exit r1 send exit r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router isis4 1 ena r1 send router isis4 1 other-ena r1 send exit r1 send exit r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis087.tst000066400000000000000000000065151471627602100170640ustar00rootroot00000000000000description integrated isis change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 1000 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 red conn route-map rm1 afi-other enable afi-other red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn afi-other enable afi-other red conn both route-map-from rm1 both other-route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis088.tst000066400000000000000000000064121471627602100170610ustar00rootroot00000000000000description integrated isis aggregate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 is-type level2 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both aggregate 4321::/32 afi-other aggregate 2.2.2.0/24 red conn afi-other enable afi-other red conn both route-map-into p6 both other-route-map-into p4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 100 20 2.2.2.13 vrf v1 r1 tping 100 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 100 20 2.2.2.11 vrf v1 r3 tping 100 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis089.tst000066400000000000000000000134631471627602100170660ustar00rootroot00000000000000description integrated isis prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 afi-other enable advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 afi-other advertise 4321::1/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 afi-other enable advertise 4321::2/128 afi-other advertise 2.2.2.2/32 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router isis4 1 vrf v1 net 33.4444.0000.3333.00 afi-other enable advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 afi-other advertise 4321::3/128 route-map rm1 afi-other advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis090.tst000066400000000000000000000077041471627602100170570ustar00rootroot00000000000000description integrated isis with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 1 router isis4 1 bier other-index 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 bier index 3 router isis6 1 bier other-index 4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 5 router isis4 1 bier other-index 6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-isis091.tst000066400000000000000000000077161471627602100170630ustar00rootroot00000000000000description integrated isis inter-level with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 is-type level2 bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 1 router isis4 1 bier other-index 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 is-type both bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 bier index 3 router isis6 1 bier other-index 4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 is-type level1 bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 5 router isis4 1 bier other-index 6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-isis092.tst000066400000000000000000000077231471627602100170620ustar00rootroot00000000000000description integrated isis multi-topology with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 multi-topology bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 1 router isis4 1 bier other-index 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.6666.0000.2222.00 multi-topology bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 3 router isis4 1 bier other-index 4 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 multi-topology bier 256 10 both bier red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 bier index 5 router isis4 1 bier other-index 6 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-isis093.tst000066400000000000000000000064761471627602100170670ustar00rootroot00000000000000description integrated isis change in tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1000 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn route-map rm1 afi-other enable afi-other red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn afi-other enable afi-other red conn both route-map-from rm1 both other-route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis094.tst000066400000000000000000000103501471627602100170520ustar00rootroot00000000000000description integrated isis with php sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 1 router isis4 1 segrout other-index 2 router isis4 1 segrout node router isis4 1 segrout pop exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 segrout index 3 router isis6 1 segrout other-index 4 router isis6 1 segrout node router isis6 1 segrout pop exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:1::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 segrout index 5 router isis4 1 segrout other-index 6 router isis4 1 segrout node router isis4 1 segrout pop exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 access-group-in test4 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 access-group-in test6 mpls enable router isis4 1 ena router isis4 1 other-ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::1 1234 exit ! r1 tping 0 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 4321::2 vrf v1 sou lo1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 tping 0 20 4321::1 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r3 tping 0 20 2.2.2.2 vrf v1 sou lo1 r3 tping 0 20 4321::2 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis095.tst000066400000000000000000000025371471627602100170630ustar00rootroot00000000000000description integrated isis over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis096.tst000066400000000000000000000070731471627602100170640ustar00rootroot00000000000000description integrated isis ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn afi-other enable afi-other red conn afi-other ecmp both spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn afi-other enable afi-other red conn afi-other ecmp both spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router isis6 1 ena router isis6 1 other-ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn afi-other enable afi-other red conn afi-other ecmp both spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis097.tst000066400000000000000000000035221471627602100170600ustar00rootroot00000000000000description asymmetric integrated isis addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router isis4 1 ena router isis4 1 other-ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router isis4 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis098.tst000066400000000000000000000110621471627602100170570ustar00rootroot00000000000000description isis with polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 mpls enable polka enable 1 65536 10 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router isis6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback2 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 traffeng 4.4.4.2 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 mpls enable polka enable 2 65536 10 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 mpls enable polka enable 2 65536 10 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable polka enable 2 65536 10 router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 mpls enable polka enable 3 65536 10 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router isis6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback2 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo2 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo2 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo2 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo2 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis099.tst000066400000000000000000000043101471627602100170560ustar00rootroot00000000000000description isis default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both suppress-pref exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both suppress-pref exit int lo11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo22 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo31 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo32 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo11 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.111 vrf v1 r1 tping 100 20 4321::111 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 0 20 2.2.2.2 vrf v1 r2 tping 0 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.3 vrf v1 r2 tping 0 20 4321::3 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis100.tst000066400000000000000000000036571471627602100170520ustar00rootroot00000000000000description integrated isis default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both suppress-pref both other-suppress-pref afi-other enable exit int lo11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 passive router isis4 1 other-ena exit int lo31 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 passive exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo11 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 passive exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.111 vrf v1 r1 tping 100 20 4321::111 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 0 20 2.2.2.2 vrf v1 r2 tping 0 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.3 vrf v1 r2 tping 0 20 4321::3 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis101.tst000066400000000000000000000043741471627602100170500ustar00rootroot00000000000000description isis address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both suppress-pref exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both suppress-pref exit int lo11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 passive router isis4 1 unsuppress exit int lo22 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive router isis6 1 unsuppress exit int lo31 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo32 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo11 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 router isis4 1 ena router isis4 1 passive exit int lo12 vrf for v1 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 passive exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.111 vrf v1 r1 tping 100 20 4321::111 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.3 vrf v1 r2 tping 0 20 4321::3 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis102.tst000066400000000000000000000037511471627602100170470ustar00rootroot00000000000000description integrated isis address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both suppress-pref both other-suppress-pref afi-other enable exit int lo11 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 passive exit int lo21 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 passive router isis4 1 other-ena router isis4 1 unsuppress router isis4 1 other-unsuppress exit int lo31 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis4 1 ena router isis4 1 other-ena router isis4 1 passive exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn afi-other enable afi-other red conn exit int lo11 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 other-ena router isis6 1 passive exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.111 vrf v1 r1 tping 100 20 4321::111 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.3 vrf v1 r2 tping 0 20 4321::3 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis103.tst000066400000000000000000000031631471627602100170450ustar00rootroot00000000000000description isis md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth1.12 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 password tester router isis4 1 authen-type md5 exit int eth1.12 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 password tester router isis6 1 authen-type md5 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis104.tst000066400000000000000000000031471471627602100170500ustar00rootroot00000000000000description isis lsp md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 both lsp-pass tester both authen-type md5 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 both lsp-pass tester both authen-type md5 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 both lsp-pass tester both authen-type md5 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis105.tst000066400000000000000000000044631471627602100170530ustar00rootroot00000000000000description isis dynamic icmp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 metric 100 exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 metric 100 exit int eth3 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena router isis4 1 metric 1 exit int eth4 vrf for v1 ipv6 addr 1235::1 ffff:: router isis6 1 ena router isis6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ int eth3 eth 0000.0000.2222 $3b$ $3a$ int eth4 eth 0000.0000.2222 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis4 1 ena router isis4 1 metric 2 router isis4 1 dynamic-met mod icm exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 metric 2 router isis6 1 dynamic-met mod icm exit int eth3 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router isis4 1 ena router isis4 1 metric 200 router isis4 1 dynamic-met mod icm exit int eth4 vrf for v1 ipv6 addr 1235::2 ffff:: router isis6 1 ena router isis6 1 metric 200 router isis6 1 dynamic-met mod icm exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis106.tst000066400000000000000000000045161471627602100170530ustar00rootroot00000000000000description isis dynamic udp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit server echo e vrf v1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 metric 100 exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 metric 100 exit int eth3 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena router isis4 1 metric 1 exit int eth4 vrf for v1 ipv6 addr 1235::1 ffff:: router isis6 1 ena router isis6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ int eth3 eth 0000.0000.2222 $3b$ $3a$ int eth4 eth 0000.0000.2222 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis4 1 ena router isis4 1 metric 2 router isis4 1 dynamic-met mod udp exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 metric 2 router isis6 1 dynamic-met mod udp exit int eth3 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router isis4 1 ena router isis4 1 metric 200 router isis4 1 dynamic-met mod udp exit int eth4 vrf for v1 ipv6 addr 1235::2 ffff:: router isis6 1 ena router isis6 1 metric 200 router isis6 1 dynamic-met mod udp exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis107.tst000066400000000000000000000045211471627602100170500ustar00rootroot00000000000000description isis dynamic twamp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit server twamp t vrf v1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 metric 100 exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 metric 100 exit int eth3 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 router isis4 1 ena router isis4 1 metric 1 exit int eth4 vrf for v1 ipv6 addr 1235::1 ffff:: router isis6 1 ena router isis6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ int eth3 eth 0000.0000.2222 $3b$ $3a$ int eth4 eth 0000.0000.2222 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis4 1 ena router isis4 1 metric 2 router isis4 1 dynamic-met mod twa exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 metric 2 router isis6 1 dynamic-met mod twa exit int eth3 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router isis4 1 ena router isis4 1 metric 200 router isis4 1 dynamic-met mod twa exit int eth4 vrf for v1 ipv6 addr 1235::2 ffff:: router isis6 1 ena router isis6 1 metric 200 router isis6 1 dynamic-met mod twa exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-isis108.tst000066400000000000000000000112371471627602100170530ustar00rootroot00000000000000description isis with mpolka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 traffeng 4.4.4.1 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 traffeng 6.6.6.1 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 1 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 1 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 mpls enable polka enable 1 65536 10 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router isis6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 , 2.2.2.3 2.2.2.3 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback2 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 , 4321::3 4321::3 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 traffeng 4.4.4.2 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 traffeng 6.6.6.2 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 2 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 2 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 mpls enable polka enable 2 65536 10 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 mpls enable polka enable 2 65536 10 router isis4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable polka enable 2 65536 10 router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 traffeng 4.4.4.3 segrout 10 both segrout red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 traffeng 6.6.6.3 segrout 10 both segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena router isis4 1 segrout index 3 router isis4 1 segrout node exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena router isis6 1 segrout index 3 router isis6 1 segrout node exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 mpls enable polka enable 3 65536 10 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router isis6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback2 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo2 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo2 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo2 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo2 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo2 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-isis109.tst000066400000000000000000000033011471627602100170450ustar00rootroot00000000000000description isis flexalgo addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 segrout 10 both segrout flexalgo 128 v2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 segrout 10 both segrout flexalgo 128 v2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 segrout 10 both segrout flexalgo 128 v2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 segrout 10 both segrout flexalgo 128 v2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 route v2 r2 output show ipv6 route v2 freeRtr-24.11.16/cfg/rout-isis110.tst000066400000000000000000000027121471627602100170420ustar00rootroot00000000000000description integrated isis flexalgo addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn segrout 10 both segrout afi-other enable afi-other red conn flexalgo 128 v2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router isis4 1 ena router isis4 1 other-ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn segrout 10 both segrout afi-other enable afi-other red conn flexalgo 128 v2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 other-ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 route v2 r2 output show ipv6 route v2 freeRtr-24.11.16/cfg/rout-isis111.tst000066400000000000000000000031231471627602100170400ustar00rootroot00000000000000description isis with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 router isis4 1 ena router isis4 1 ipinfo pmtud 512 1024 666 exit int eth2 vrf for v1 ipv6 addr 1234::1 ffff:: router isis6 1 ena router isis6 1 ipinfo pmtud 512 1024 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 router isis4 1 ena router isis4 1 ipinfo pmtud 512 1024 666 exit int eth2 vrf for v1 ipv6 addr 1234::2 ffff:: router isis6 1 ena router isis6 1 ipinfo pmtud 512 1024 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 isis 1 nei r2 output show ipv6 isis 1 nei r2 output show ipv4 isis 1 dat 2 r2 output show ipv6 isis 1 dat 2 r2 output show ipv4 isis 1 tre 2 r2 output show ipv6 isis 1 tre 2 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp01.tst000066400000000000000000000024051471627602100167710ustar00rootroot00000000000000description lsrp point2point connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp02.tst000066400000000000000000000060511471627602100167730ustar00rootroot00000000000000description lsrp point2multipoint connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router lsrp4 1 vrf v1 router 4.4.4.4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp03.tst000066400000000000000000000071601471627602100167760ustar00rootroot00000000000000description lsrp point2point chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-lsrp.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here is the ipv4 tree:
show:4
here is the ipv6 tree:
show:5
here are the ipv4 routes:
show:6
here are the ipv6 routes:
show:7
! freeRtr-24.11.16/cfg/rout-lsrp04.tst000066400000000000000000000063641471627602100170040ustar00rootroot00000000000000description lsrp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 exit router lsrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 exit router lsrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp05.tst000066400000000000000000000033241471627602100167760ustar00rootroot00000000000000description lsrp address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 exit router lsrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp4 1 suppress router lsrp6 1 ena router lsrp6 1 passiv router lsrp6 1 suppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 exit router lsrp6 1 vrf v1 router 6.6.6.2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp06.tst000066400000000000000000000043171471627602100170020ustar00rootroot00000000000000description lsrp route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn prefix-list p4 exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn prefix-list p6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp07.tst000066400000000000000000000044211471627602100167770ustar00rootroot00000000000000description lsrp route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router lsrp4 1 vrf v1 router 4.4.4.1 route-map p4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 route-map p6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp08.tst000066400000000000000000000042701471627602100170020ustar00rootroot00000000000000description lsrp route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router lsrp4 1 vrf v1 router 4.4.4.1 route-policy p4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 route-policy p6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp09.tst000066400000000000000000000045031471627602100170020ustar00rootroot00000000000000description lsrp tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny match tag 1234 sequence 20 act perm exit router lsrp4 1 vrf v1 router 4.4.4.2 route-map rm1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 route-map rm1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp10.tst000066400000000000000000000024161471627602100167730ustar00rootroot00000000000000description lsrp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 default exit router lsrp6 1 vrf v1 router 6.6.6.1 default exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp11.tst000066400000000000000000000046111471627602100167730ustar00rootroot00000000000000description lsrp with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd router lsrp4 1 metric 100 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd router lsrp6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd router lsrp4 1 metric 100 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd router lsrp6 1 metric 100 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp12.tst000066400000000000000000000026111471627602100167720ustar00rootroot00000000000000description lsrp authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router lsrp4 1 ena router lsrp4 1 password test ipv6 addr 1234:1::1 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 password test exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router lsrp4 1 ena router lsrp4 1 password test ipv6 addr 1234:1::2 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 password test exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp13.tst000066400000000000000000000036771471627602100170100ustar00rootroot00000000000000description lsrp ssh encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router lsrp4 1 ena router lsrp4 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::1 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router lsrp4 1 ena router lsrp4 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::2 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp14.tst000066400000000000000000000036771471627602100170110ustar00rootroot00000000000000description lsrp tls encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router lsrp4 1 ena router lsrp4 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::1 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router lsrp4 1 ena router lsrp4 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::2 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp15.tst000066400000000000000000000027221471627602100170000ustar00rootroot00000000000000description lsrp peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: temp temp1 exit int temp1 router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp16.tst000066400000000000000000000061251471627602100170020ustar00rootroot00000000000000description lsrp with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp17.tst000066400000000000000000000033751471627602100170070ustar00rootroot00000000000000description lsrp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 exit router lsrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 exit router lsrp6 1 vrf v1 router 6.6.6.2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router lsrp4 1 ena r1 send no router lsrp6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router lsrp4 1 ena r1 send router lsrp6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp18.tst000066400000000000000000000064441471627602100170100ustar00rootroot00000000000000description lsrp change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 1000 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp19.tst000066400000000000000000000064251471627602100170100ustar00rootroot00000000000000description lsrp change in tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1000 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp20.tst000066400000000000000000000041741471627602100167770ustar00rootroot00000000000000description lsrp auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn automesh all exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn automesh all exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 40 9.9.9.2 vrf v1 r1 tping 100 40 9999::2 vrf v1 r2 tping 100 40 9.9.9.1 vrf v1 r2 tping 100 40 9999::1 vrf v1 r1 tping 0 40 2.2.2.2 vrf v1 r1 tping 0 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp21.tst000066400000000000000000000056071471627602100170020ustar00rootroot00000000000000description lsrp triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp22.tst000066400000000000000000000134031471627602100167740ustar00rootroot00000000000000description lsrp prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router lsrp4 1 vrf v1 router 4.4.4.1 advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.1 advertise 4321::1/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 advertise 2.2.2.2/32 exit router lsrp6 1 vrf v1 router 6.6.6.2 advertise 4321::2/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router lsrp4 1 vrf v1 router 4.4.4.3 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router lsrp6 1 vrf v1 router 6.6.6.3 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp23.tst000066400000000000000000000070561471627602100170040ustar00rootroot00000000000000description lsrp with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-lsrp24.tst000066400000000000000000000051151471627602100167770ustar00rootroot00000000000000description lsrp autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute lsrp4 1 2.2.2.2 9.9.8.2 ipv6 autoroute lsrp6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute lsrp4 1 2.2.2.1 9.9.8.1 ipv6 autoroute lsrp6 1 4321::1 9998::1 exit ! r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 tping 0 40 9.9.9.2 vrf v1 r1 tping 0 40 9999::2 vrf v1 r2 tping 0 40 9.9.9.1 vrf v1 r2 tping 0 40 9999::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp25.tst000066400000000000000000000061141471627602100170000ustar00rootroot00000000000000description lsrp stub node addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 stub red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 stub red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 0 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r1 tping 0 40 4321::4 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 0 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 0 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp26.tst000066400000000000000000000062311471627602100170010ustar00rootroot00000000000000description lsrp stub interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 stub router lsrp6 1 ena router lsrp6 1 stub exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 stub router lsrp6 1 ena router lsrp6 1 stub exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 0 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r1 tping 0 40 4321::4 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 0 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 0 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp27.tst000066400000000000000000000062771471627602100170140ustar00rootroot00000000000000description lsrp unstub interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 stub red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 stub red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 unstub router lsrp6 1 ena router lsrp6 1 unstub exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp4 1 unstub router lsrp6 1 ena router lsrp6 1 unstub exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.4 red conn exit router lsrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp28.tst000066400000000000000000000031761471627602100170100ustar00rootroot00000000000000description lsrp default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 suppress justadv lo1 exit router lsrp6 1 vrf v1 router 6.6.6.1 suppress justadv lo1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 exit router lsrp6 1 vrf v1 router 6.6.6.2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp29.tst000066400000000000000000000032621471627602100170050ustar00rootroot00000000000000description lsrp address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 suppress justadv lo1 exit router lsrp6 1 vrf v1 router 6.6.6.1 suppress justadv lo1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp6 1 ena router lsrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp4 1 passiv router lsrp4 1 unsuppress router lsrp6 1 ena router lsrp6 1 passiv router lsrp6 1 unsuppress exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 exit router lsrp6 1 vrf v1 router 6.6.6.2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp30.tst000066400000000000000000000071371471627602100170020ustar00rootroot00000000000000description lsrp with php sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 pop red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 pop red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 pop red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 pop red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 pop red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 pop red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::1 1234 exit ! r1 tping 0 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 0 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 4321::2 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 4321::1 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r3 tping 0 20 4321::2 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp31.tst000066400000000000000000000062201471627602100167730ustar00rootroot00000000000000description lsrp with srgb sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 base 100 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 base 200 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 base 100 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 base 200 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 base 100 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 base 200 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp32.tst000066400000000000000000000025161471627602100170000ustar00rootroot00000000000000description lsrp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp33.tst000066400000000000000000000065551471627602100170100ustar00rootroot00000000000000description lsrp with selective sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 0 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 0 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 segrou 1 router lsrp6 1 segrou 1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 0 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 0 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 segrou 2 router lsrp6 1 segrou 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 0 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 0 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 segrou 3 router lsrp6 1 segrou 3 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp34.tst000066400000000000000000000075061471627602100170060ustar00rootroot00000000000000description lsrp with selective bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 0 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 0 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 bier 1 3 router lsrp6 1 bier 1 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 0 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 0 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 bier 2 3 router lsrp6 1 bier 2 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 0 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 0 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 bier 3 3 router lsrp6 1 bier 3 3 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router lsrp4 1 ena router lsrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-lsrp35.tst000066400000000000000000000040721471627602100170020ustar00rootroot00000000000000description lsrp peer metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: mpls enable router lsrp4 1 ena router lsrp4 1 metric 1 router lsrp6 1 ena router lsrp6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router lsrp4 1 ena router lsrp4 1 metric 2 router lsrp4 1 accept-met router lsrp6 1 ena router lsrp6 1 metric 2 router lsrp6 1 accept-met exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router lsrp4 1 ena router lsrp4 1 metric 200 router lsrp4 1 accept-met router lsrp6 1 ena router lsrp6 1 metric 200 router lsrp6 1 accept-met exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp36.tst000066400000000000000000000025021471627602100167770ustar00rootroot00000000000000description lsrp point2point connection with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn spf-bidir exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn spf-bidir exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp37.tst000066400000000000000000000062221471627602100170030ustar00rootroot00000000000000description lsrp point2multipoint connection with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn spf-bidir exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn spf-bidir exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn spf-bidir exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router lsrp4 1 vrf v1 router 4.4.4.4 red conn spf-bidir exit router lsrp6 1 vrf v1 router 6.6.6.4 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp38.tst000066400000000000000000000067461471627602100170170ustar00rootroot00000000000000description lsrp ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn spf-ecmp ecmp exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn spf-ecmp ecmp exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn spf-ecmp ecmp exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp39.tst000066400000000000000000000050031471627602100170010ustar00rootroot00000000000000description lsrp with bgp linkstate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.1 justadvert lo1 exit router lsrp6 1 vrf v1 router 6.6.6.1 justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate afi-link lsrp4 1 0 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 linkstate afi-link lsrp6 1 0 justadvert lo2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router lsrp4 1 vrf v1 router 4.4.4.2 justadvert lo1 exit router lsrp6 1 vrf v1 router 6.6.6.2 justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate afi-link lsrp4 1 0 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 linkstate afi-link lsrp6 1 0 justadvert lo2 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.102 vrf v1 r2 tping 100 20 2.2.2.101 vrf v1 r1 tping 100 20 4321::102 vrf v1 r2 tping 100 20 4321::101 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r1 output show ipv4 bgp 1 uni dat r1 output show ipv6 bgp 1 uni dat r1 output show ipv4 bgp 1 links dat r1 output show ipv6 bgp 1 links dat freeRtr-24.11.16/cfg/rout-lsrp40.tst000066400000000000000000000026121471627602100167740ustar00rootroot00000000000000description lsrp no authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router lsrp4 1 ena router lsrp4 1 password test router lsrp4 1 disable-pass ipv6 addr 1234:1::1 ffff:ffff:: router lsrp6 1 ena router lsrp6 1 password test router lsrp6 1 disable-pass exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router lsrp4 1 ena ipv6 addr 1234:1::2 ffff:ffff:: router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp41.tst000066400000000000000000000025521471627602100170000ustar00rootroot00000000000000description lsrp database authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 database-pass test red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 database-pass test red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router lsrp4 1 ena ipv6 addr 1234:1::1 ffff:ffff:: router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 database-pass test red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 database-pass test red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router lsrp4 1 ena ipv6 addr 1234:1::2 ffff:ffff:: router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp42.tst000066400000000000000000000046721471627602100170060ustar00rootroot00000000000000description lsrp with strict bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd strict ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd strict exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd strict router lsrp4 1 metric 100 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd strict router lsrp6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd strict ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd strict exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router lsrp4 1 ena router lsrp4 1 bfd router lsrp4 1 metric 100 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router lsrp6 1 ena router lsrp6 1 bfd router lsrp6 1 metric 100 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp43.tst000066400000000000000000000065461471627602100170110ustar00rootroot00000000000000description lsrp with polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp44.tst000066400000000000000000000037151471627602100170050ustar00rootroot00000000000000description lsrp dynamic inband metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 1 router lsrp6 1 ena router lsrp6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 2 router lsrp4 1 dynamic-met mod inb router lsrp6 1 ena router lsrp6 1 metric 2 router lsrp6 1 dynamic-met mod inb exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 200 router lsrp4 1 dynamic-met mod inb router lsrp6 1 ena router lsrp6 1 metric 200 router lsrp6 1 dynamic-met mod inb exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp45.tst000066400000000000000000000037131471627602100170040ustar00rootroot00000000000000description lsrp dynamic icmp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 1 router lsrp6 1 ena router lsrp6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 2 router lsrp4 1 dynamic-met mod icm router lsrp6 1 ena router lsrp6 1 metric 2 router lsrp6 1 dynamic-met mod icm exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 200 router lsrp4 1 dynamic-met mod icm router lsrp6 1 ena router lsrp6 1 metric 200 router lsrp6 1 dynamic-met mod icm exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp46.tst000066400000000000000000000037461471627602100170130ustar00rootroot00000000000000description lsrp dynamic udp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server echo e vrf v1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 1 router lsrp6 1 ena router lsrp6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 2 router lsrp4 1 dynamic-met mod udp router lsrp6 1 ena router lsrp6 1 metric 2 router lsrp6 1 dynamic-met mod udp exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 200 router lsrp4 1 dynamic-met mod udp router lsrp6 1 ena router lsrp6 1 metric 200 router lsrp6 1 dynamic-met mod udp exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp47.tst000066400000000000000000000037511471627602100170100ustar00rootroot00000000000000description lsrp dynamic twamp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server twamp t vrf v1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 100 router lsrp6 1 ena router lsrp6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router lsrp4 1 ena router lsrp4 1 metric 1 router lsrp6 1 ena router lsrp6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 2 router lsrp4 1 dynamic-met mod twa router lsrp6 1 ena router lsrp6 1 metric 2 router lsrp6 1 dynamic-met mod twa exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router lsrp4 1 ena router lsrp4 1 metric 200 router lsrp4 1 dynamic-met mod twa router lsrp6 1 ena router lsrp6 1 metric 200 router lsrp6 1 dynamic-met mod twa exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-lsrp48.tst000066400000000000000000000067231471627602100170130ustar00rootroot00000000000000description lsrp with mpolka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable polka enable 1 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 , 2.2.2.3 2.2.2.3 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 , 4321::3 4321::3 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable polka enable 2 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable polka enable 3 65536 10 router lsrp4 1 ena router lsrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-lsrp49.tst000066400000000000000000000026471471627602100170150ustar00rootroot00000000000000description lsrp flexalgo addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 flexalgo 128 v2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 flexalgo 128 v2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 flexalgo 128 v2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 flexalgo 128 v2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 route v2 r2 output show ipv6 route v2 freeRtr-24.11.16/cfg/rout-lsrp50.tst000066400000000000000000000026411471627602100167770ustar00rootroot00000000000000description lsrp with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 ipinfo pmtud 512 1024 666 router lsrp6 1 ipinfo pmtud 512 1024 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router lsrp4 1 ena router lsrp6 1 ena router lsrp4 1 ipinfo pmtud 512 1024 666 router lsrp6 1 ipinfo pmtud 512 1024 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 lsrp 1 nei r2 output show ipv6 lsrp 1 nei r2 output show ipv4 lsrp 1 dat r2 output show ipv6 lsrp 1 dat r2 output show ipv4 lsrp 1 tre r2 output show ipv6 lsrp 1 tre r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-mcast01.tst000066400000000000000000000050071471627602100171210ustar00rootroot00000000000000description multicast routing with static flooding addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.1.1 ipv6 multi static ff06::1 1234:1::1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.1.1 ipv6 multi static ff06::1 1234:1::1 exit int eth3 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.1.1 ipv6 multi static ff06::1 1234:1::1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 route v1 :: :: 1234:3::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 mroute v1 :: :: 1234:3::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.9 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:3::1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.9 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:3::1 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r1 tping 200 5 232.2.2.2 vrf v1 sou eth1 multi r1 tping 200 5 ff06::1 vrf v1 sou eth1 multi r2 output show ipv4 mroute v1 r2 output show ipv6 mroute v1 output ../binTmp/rout-mcast.html here is the ipv4 route:
show:0
here is the ipv6 route:
show:1
! freeRtr-24.11.16/cfg/rout-mcast02.tst000066400000000000000000000042361471627602100171250ustar00rootroot00000000000000description multicast routing with pim ssm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth3 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 route v1 :: :: 1234:3::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 mroute v1 :: :: 1234:3::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.9 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:3::1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.9 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:3::1 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r1 tping 200 5 232.2.2.2 vrf v1 sou eth1 multi r1 tping 200 5 ff06::1 vrf v1 sou eth1 multi freeRtr-24.11.16/cfg/rout-mcast03.tst000066400000000000000000000047571471627602100171360ustar00rootroot00000000000000description multicast routing with igmp/mld addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit int eth3 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 route v1 :: :: 1234:3::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 mroute v1 :: :: 1234:3::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.9 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:3::1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.9 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:3::1 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r1 tping 200 5 232.2.2.2 vrf v1 sou eth1 multi r1 tping 200 5 ff06::1 vrf v1 sou eth1 multi freeRtr-24.11.16/cfg/rout-mcast04.tst000066400000000000000000000045771471627602100171370ustar00rootroot00000000000000description multicast routing with mldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int eth3 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 route v1 :: :: 1234:3::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 mroute v1 :: :: 1234:3::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.9 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:3::1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.9 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:3::1 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r1 tping 200 5 232.2.2.2 vrf v1 sou eth1 multi r1 tping 200 5 ff06::1 vrf v1 sou eth1 multi freeRtr-24.11.16/cfg/rout-mcast05.tst000066400000000000000000000077501471627602100171340ustar00rootroot00000000000000description multicast between pim and mldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.10 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 ipv4 multi mldp mpls ldp6 ipv6 multi mldp exit int eth2 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.9 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.14 ipv6 route v1 :: :: 1234:4::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.14 ipv6 mroute v1 :: :: 1234:4::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 2.2.2.1 vrf v1 r1 tping 100 60 4321::1 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r5 tping 100 60 2.2.2.3 vrf v1 r5 tping 100 60 4321::3 vrf v1 r5 tping 100 60 2.2.2.1 vrf v1 r5 tping 100 60 4321::1 vrf v1 r1 tping 100 60 1.1.1.13 vrf v1 r1 tping 100 60 1234:4::1 vrf v1 r5 tping 100 60 1.1.1.1 vrf v1 r5 tping 100 60 1234:1::1 vrf v1 r1 tping 100 10 232.2.2.2 vrf v1 sou eth1 r1 tping 100 10 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast06.tst000066400000000000000000000122641471627602100171310ustar00rootroot00000000000000description multicast vpn routing with mldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.5 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.4 remote-as 1 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::4 remote-as 1 neigh 4321::4 update lo0 neigh 4321::4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth3 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.10 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.14 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.9 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 router bgp4 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ipv4 multi v2 join 232.2.2.2 3.3.3.1 ipv6 multi v2 join ff06::1 3333::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.13 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 router bgp4 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ipv4 multi v2 join 232.2.2.2 3.3.3.1 ipv6 multi v2 join ff06::1 3333::1 ! r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v2 r1 tping 100 60 3333::3 vrf v2 r1 tping 100 60 3.3.3.4 vrf v2 r1 tping 100 60 3333::4 vrf v2 r3 tping 100 60 3.3.3.1 vrf v2 r3 tping 100 60 3333::1 vrf v2 r4 tping 100 60 3.3.3.1 vrf v2 r4 tping 100 60 3333::1 vrf v2 r1 tping 200 10 232.2.2.2 vrf v2 sou lo1 multi r1 tping 200 10 ff06::1 vrf v2 sou lo1 multi freeRtr-24.11.16/cfg/rout-mcast07.tst000066400000000000000000000106541471627602100171330ustar00rootroot00000000000000description multicast vpn between pim and mldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.10 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.9 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 router bgp4 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.14 ipv6 route v1 :: :: 1234:4::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.14 ipv6 mroute v1 :: :: 1234:4::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3333::1 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r5 tping 100 60 3.3.3.3 vrf v1 r5 tping 100 60 3333::3 vrf v1 r5 tping 100 60 3.3.3.1 vrf v1 r5 tping 100 60 3333::1 vrf v1 r1 tping 100 60 1.1.1.13 vrf v1 r1 tping 100 60 1234:4::1 vrf v1 r5 tping 100 60 1.1.1.1 vrf v1 r5 tping 100 60 1234:1::1 vrf v1 r1 tping 100 10 232.2.2.2 vrf v1 sou eth1 r1 tping 100 10 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast08.tst000066400000000000000000000124371471627602100171350ustar00rootroot00000000000000description multicast othervpn routing with mldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.5 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both neigh 2.2.2.4 remote-as 1 neigh 2.2.2.4 update lo0 neigh 2.2.2.4 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both neigh 4321::4 remote-as 1 neigh 4321::4 update lo0 neigh 4321::4 send-comm both exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth3 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.10 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ipv4 route v1 2.2.2.4 255.255.255.255 1.1.1.14 ipv6 route v1 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.9 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 router bgp4 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both exit ipv4 multi v2 join 232.2.2.2 3.3.3.1 ipv6 multi v2 join ff06::1 3333::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.4 255.255.255.255 ipv6 addr 3333::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.13 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:4::1 router bgp4 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both exit ipv4 multi v2 join 232.2.2.2 3.3.3.1 ipv6 multi v2 join ff06::1 3333::1 ! r1 tping 100 60 2.2.2.3 vrf v1 sou lo0 r1 tping 100 60 4321::3 vrf v1 sou lo0 r1 tping 100 60 2.2.2.4 vrf v1 sou lo0 r1 tping 100 60 4321::4 vrf v1 sou lo0 r3 tping 100 60 2.2.2.1 vrf v1 sou lo0 r3 tping 100 60 4321::1 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.3 vrf v2 r1 tping 100 60 3333::3 vrf v2 r1 tping 100 60 3.3.3.4 vrf v2 r1 tping 100 60 3333::4 vrf v2 r3 tping 100 60 3.3.3.1 vrf v2 r3 tping 100 60 3333::1 vrf v2 r4 tping 100 60 3.3.3.1 vrf v2 r4 tping 100 60 3333::1 vrf v2 r1 tping 200 10 232.2.2.2 vrf v2 sou lo1 multi r1 tping 200 10 ff06::1 vrf v2 sou lo1 multi freeRtr-24.11.16/cfg/rout-mcast09.tst000066400000000000000000000107651471627602100171400ustar00rootroot00000000000000description multicast othervpn between pim and mldp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.1 255.255.255.255 ipv6 addr 3333::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.5 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 router bgp4 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 4.4.4.1 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo0 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 6.6.6.1 neigh 4321::3 remote-as 1 neigh 4321::3 update lo0 neigh 4321::3 send-comm both exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.6 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.10 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::2 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 mdt4 mdt6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v2 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: mpls ena mpls ldp4 mpls ldp6 exit int eth2 vrf for v2 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 2.2.2.1 255.255.255.255 1.1.1.9 ipv6 route v1 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::1 router bgp4 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 4.4.4.3 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo0 neigh 2.2.2.1 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni vpnmlt ovpnuni ovpnmlt local-as 1 router-id 6.6.6.3 neigh 4321::1 remote-as 1 neigh 4321::1 update lo0 neigh 4321::1 send-comm both exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.14 ipv6 route v1 :: :: 1234:4::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.14 ipv6 mroute v1 :: :: 1234:4::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 60 2.2.2.3 vrf v1 sou lo0 r2 tping 100 60 4321::3 vrf v1 sou lo0 r4 tping 100 60 2.2.2.1 vrf v1 sou lo0 r4 tping 100 60 4321::1 vrf v1 sou lo0 r1 tping 100 60 3.3.3.1 vrf v1 r1 tping 100 60 3333::1 vrf v1 r1 tping 100 60 3.3.3.3 vrf v1 r1 tping 100 60 3333::3 vrf v1 r5 tping 100 60 3.3.3.3 vrf v1 r5 tping 100 60 3333::3 vrf v1 r5 tping 100 60 3.3.3.1 vrf v1 r5 tping 100 60 3333::1 vrf v1 r1 tping 100 60 1.1.1.13 vrf v1 r1 tping 100 60 1234:4::1 vrf v1 r5 tping 100 60 1.1.1.1 vrf v1 r5 tping 100 60 1234:1::1 vrf v1 r1 tping 100 10 232.2.2.2 vrf v1 sou eth1 r1 tping 100 10 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast10.tst000066400000000000000000000032531471627602100171220ustar00rootroot00000000000000description multicast routing ttl treshold addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.1.1 ipv6 multi static ff06::1 1234:1::1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 multi static 232.2.2.2 1.1.1.1 ipv6 multi static ff06::1 1234:1::1 ipv4 multi ttl 123 ipv6 multi ttl 123 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 232.2.2.2 vrf v1 sou eth1 ttl 150 r1 tping 100 5 ff06::1 vrf v1 sou eth1 ttl 150 r1 tping 0 5 232.2.2.2 vrf v1 sou eth1 ttl 50 r1 tping 0 5 ff06::1 vrf v1 sou eth1 ttl 50 r1 tping 100 5 232.2.2.2 vrf v1 sou eth1 ttl 150 r1 tping 100 5 ff06::1 vrf v1 sou eth1 ttl 150 freeRtr-24.11.16/cfg/rout-mcast11.tst000066400000000000000000000034461471627602100171270ustar00rootroot00000000000000description multicast routing decoupled from unicast addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ int eth3 eth 0000.0000.2222 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.10 ipv6 mroute v1 :: :: 1234:3::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.9 vrf v1 r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:3::1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r1 tping 100 5 1.1.1.9 vrf v1 r1 tping 100 5 1234:3::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 232.2.2.2 vrf v1 sou eth1 r1 tping 100 5 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast12.tst000066400000000000000000000036331471627602100171260ustar00rootroot00000000000000description multicast routing with pim join source addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r2 tping 100 5 1.1.1.5 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234:2::1 vrf v1 r2 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 232.2.2.2 vrf v1 sou eth1 r1 tping 100 5 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast13.tst000066400000000000000000000163161471627602100171310ustar00rootroot00000000000000description multicast routing with pim over bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 1 ipv6 pim bier 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 1 ipv6 pim bier 1 exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 1 neigh 2.2.2.4 update lo1 neigh 2.2.2.5 remote-as 1 neigh 2.2.2.5 update lo1 red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 neigh 4321::4 remote-as 1 neigh 4321::4 update lo1 neigh 4321::5 remote-as 1 neigh 4321::5 update lo1 red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ int eth3 eth 0000.0000.3333 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit int eth3 vrf for v1 ipv4 addr 1.1.4.3 255.255.255.0 ipv6 addr 1237::3 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 4 ipv6 pim bier 4 exit int lo2 vrf for v1 ipv4 addr 2.2.2.14 255.255.255.255 ipv6 addr 4321::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 4 ipv6 pim bier 4 exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn exit ipv4 multi v1 join 232.2.2.2 2.2.2.1 ipv6 multi v1 join ff06::1 4321::1 ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.5 bier 256 10 5 exit router lsrp6 1 vrf v1 router 6.6.6.5 bier 256 10 5 exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 5 ipv6 pim bier 5 exit int lo2 vrf for v1 ipv4 addr 2.2.2.15 255.255.255.255 ipv6 addr 4321::15 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.4.5 255.255.255.0 ipv6 addr 1237::5 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 5 ipv6 pim bier 5 exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.5 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.5 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn exit ipv4 multi v1 join 232.2.2.2 2.2.2.1 ipv6 multi v1 join ff06::1 4321::1 ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r1 tping 100 20 2.2.2.5 vrf v1 sou lo1 r1 tping 100 20 4321::5 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.5 vrf v1 sou lo1 r2 tping 100 20 4321::5 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.5 vrf v1 sou lo1 r3 tping 100 20 4321::5 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r4 tping 100 20 2.2.2.5 vrf v1 sou lo1 r4 tping 100 20 4321::5 vrf v1 sou lo1 r5 tping 100 20 2.2.2.1 vrf v1 sou lo1 r5 tping 100 20 4321::1 vrf v1 sou lo1 r5 tping 100 20 2.2.2.2 vrf v1 sou lo1 r5 tping 100 20 4321::2 vrf v1 sou lo1 r5 tping 100 20 2.2.2.3 vrf v1 sou lo1 r5 tping 100 20 4321::3 vrf v1 sou lo1 r5 tping 100 20 2.2.2.4 vrf v1 sou lo1 r5 tping 100 20 4321::4 vrf v1 sou lo1 r1 tping 100 20 2.2.2.14 vrf v1 sou lo2 r1 tping 100 20 4321::14 vrf v1 sou lo2 r1 tping 100 20 2.2.2.15 vrf v1 sou lo2 r1 tping 100 20 4321::15 vrf v1 sou lo2 r4 tping 100 20 2.2.2.11 vrf v1 sou lo2 r4 tping 100 20 4321::11 vrf v1 sou lo2 r5 tping 100 20 2.2.2.11 vrf v1 sou lo2 r5 tping 100 20 4321::11 vrf v1 sou lo2 r1 tping 200 10 232.2.2.2 vrf v1 sou lo1 multi r1 tping 200 10 ff06::1 vrf v1 sou lo1 multi freeRtr-24.11.16/cfg/rout-mcast14.tst000066400000000000000000000143171471627602100171310ustar00rootroot00000000000000description multicast between pim and pim over bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 1 ipv6 pim bier 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 1 ipv6 pim bier 1 exit int eth2 vrf for v1 ipv4 addr 4.4.4.2 255.255.255.252 ipv6 addr 4444::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.1 neigh 2.2.2.4 remote-as 1 neigh 2.2.2.4 update lo1 red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.1 neigh 4321::4 remote-as 1 neigh 4321::4 update lo1 red conn red stat exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 red conn exit router lsrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.3.3 255.255.255.0 ipv6 addr 1236::3 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ int eth2 eth 0000.0000.4444 $5a$ $5b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router lsrp4 1 vrf v1 router 4.4.4.4 bier 256 10 4 exit router lsrp6 1 vrf v1 router 6.6.6.4 bier 256 10 4 exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 4 ipv6 pim bier 4 exit int lo2 vrf for v1 ipv4 addr 2.2.2.14 255.255.255.255 ipv6 addr 4321::14 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.3.4 255.255.255.0 ipv6 addr 1236::4 ffff:: mpls enable mpls ldp4 mpls ldp6 router lsrp4 1 ena router lsrp6 1 ena ipv4 pim ena ipv6 pim ena ipv4 pim join lo1 ipv6 pim join lo1 ipv4 pim bier 4 ipv6 pim bier 4 exit int eth2 vrf for v1 ipv4 addr 5.5.5.2 255.255.255.252 ipv6 addr 5555::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit router bgp4 1 vrf v1 address uni multi local-as 1 router-id 4.4.4.4 neigh 2.2.2.1 remote-as 1 neigh 2.2.2.1 update lo1 red conn red stat exit router bgp6 1 vrf v1 address uni multi local-as 1 router-id 6.6.6.4 neigh 4321::1 remote-as 1 neigh 4321::1 update lo1 red conn red stat exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 4.4.4.1 255.255.255.252 ipv6 addr 4444::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 4.4.4.2 ipv6 route v1 :: :: 4444::2 ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 5.5.5.1 255.255.255.252 ipv6 addr 5555::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 5.5.5.2 ipv6 route v1 :: :: 5555::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 5.5.5.2 ipv6 mroute v1 :: :: 5555::2 ipv4 multi v1 join 232.2.2.2 4.4.4.1 ipv6 multi v1 join ff06::1 4444::1 ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.4 vrf v1 sou lo1 r1 tping 100 20 4321::4 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.4 vrf v1 sou lo1 r2 tping 100 20 4321::4 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r3 tping 100 20 2.2.2.4 vrf v1 sou lo1 r3 tping 100 20 4321::4 vrf v1 sou lo1 r4 tping 100 20 2.2.2.1 vrf v1 sou lo1 r4 tping 100 20 4321::1 vrf v1 sou lo1 r4 tping 100 20 2.2.2.2 vrf v1 sou lo1 r4 tping 100 20 4321::2 vrf v1 sou lo1 r4 tping 100 20 2.2.2.3 vrf v1 sou lo1 r4 tping 100 20 4321::3 vrf v1 sou lo1 r1 tping 100 20 2.2.2.14 vrf v1 sou lo2 r1 tping 100 20 4321::14 vrf v1 sou lo2 r4 tping 100 20 2.2.2.11 vrf v1 sou lo2 r4 tping 100 20 4321::11 vrf v1 sou lo2 r5 tping 100 20 2.2.2.11 vrf v1 sou eth1 r5 tping 100 20 4321::11 vrf v1 sou eth1 r5 tping 100 20 2.2.2.14 vrf v1 sou eth1 r5 tping 100 20 4321::14 vrf v1 sou eth1 r6 tping 100 20 2.2.2.11 vrf v1 sou eth1 r6 tping 100 20 4321::11 vrf v1 sou eth1 r6 tping 100 20 2.2.2.14 vrf v1 sou eth1 r6 tping 100 20 4321::14 vrf v1 sou eth1 r5 tping 100 10 232.2.2.2 vrf v1 sou eth1 r5 tping 100 10 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast15.tst000066400000000000000000000031501471627602100171230ustar00rootroot00000000000000description multicast routing with pim snooping addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! bridge 1 mac-learn block-unicast block-multicast exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 pim ena ipv6 pim ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 232.2.2.2 vrf v1 sou eth1 r1 tping 100 5 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-mcast16.tst000066400000000000000000000034431471627602100171310ustar00rootroot00000000000000description multicast routing with igmp/mld snooping addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 multi host-ena ipv6 multi host-ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! bridge 1 mac-learn block-unicast block-multicast exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 multi host-ena ipv4 multi host-pro ipv6 multi host-ena ipv6 multi host-pro exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 mroute v1 :: :: 1234:2::2 ipv4 multi v1 join 232.2.2.2 1.1.1.1 ipv6 multi v1 join ff06::1 1234:1::1 ! r3 tping 100 5 1.1.1.5 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234:2::1 vrf v1 r3 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 1.1.1.5 vrf v1 r1 tping 100 5 1234:2::1 vrf v1 r4 tping 100 5 1.1.1.1 vrf v1 r4 tping 100 5 1234:1::1 vrf v1 r1 tping 100 5 232.2.2.2 vrf v1 sou eth1 r1 tping 100 5 ff06::1 vrf v1 sou eth1 freeRtr-24.11.16/cfg/rout-olsr01.tst000066400000000000000000000054361471627602100167770ustar00rootroot00000000000000description olsr on one subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 2.2.2.4 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 4321::4 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 2.2.2.4 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r2 tping 100 130 4321::4 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 2.2.2.4 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r3 tping 100 130 4321::4 vrf v1 r4 tping 100 130 2.2.2.1 vrf v1 r4 tping 100 130 2.2.2.2 vrf v1 r4 tping 100 130 2.2.2.3 vrf v1 r4 tping 100 130 4321::1 vrf v1 r4 tping 100 130 4321::2 vrf v1 r4 tping 100 130 4321::3 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr02.tst000066400000000000000000000065441471627602100170010ustar00rootroot00000000000000description olsr in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 2.2.2.4 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 4321::4 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 2.2.2.4 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r2 tping 100 130 4321::4 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 2.2.2.4 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r3 tping 100 130 4321::4 vrf v1 r4 tping 100 130 2.2.2.1 vrf v1 r4 tping 100 130 2.2.2.2 vrf v1 r4 tping 100 130 2.2.2.3 vrf v1 r4 tping 100 130 4321::1 vrf v1 r4 tping 100 130 4321::2 vrf v1 r4 tping 100 130 4321::3 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-olsr.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-olsr03.tst000066400000000000000000000042111471627602100167670ustar00rootroot00000000000000description olsr ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 prefix-list-in p4 router olsr6 1 prefix-list-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr04.tst000066400000000000000000000042121471627602100167710ustar00rootroot00000000000000description olsr egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 prefix-list-out p4 router olsr6 1 prefix-list-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr05.tst000066400000000000000000000043131471627602100167740ustar00rootroot00000000000000description olsr ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-in p4 router olsr6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr06.tst000066400000000000000000000043141471627602100167760ustar00rootroot00000000000000description olsr egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-out p4 router olsr6 1 route-map-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr07.tst000066400000000000000000000041621471627602100170000ustar00rootroot00000000000000description olsr ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-policy-in p4 router olsr6 1 route-policy-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr08.tst000066400000000000000000000041631471627602100170020ustar00rootroot00000000000000description olsr egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-policy-out p4 router olsr6 1 route-policy-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr09.tst000066400000000000000000000044061471627602100170030ustar00rootroot00000000000000description olsr max metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 set metric +200 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-in rm1 router olsr6 1 route-map-in rm1 router olsr4 1 route-map-out rm1 router olsr6 1 route-map-out rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-in rm1 router olsr6 1 route-map-in rm1 router olsr4 1 route-map-out rm1 router olsr6 1 route-map-out rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 0 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 4321::3 vrf v1 r3 tping 0 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 0 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr10.tst000066400000000000000000000040521471627602100167700ustar00rootroot00000000000000description olsr address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena router olsr4 1 suppress-prefix router olsr6 1 suppress-prefix exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr11.tst000066400000000000000000000036641471627602100170010ustar00rootroot00000000000000description olsr default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 default-originate router olsr6 1 default-originate exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr12.tst000066400000000000000000000057121471627602100167760ustar00rootroot00000000000000description olsr incoming interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 metric-in 200 router olsr6 1 metric-in 200 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr13.tst000066400000000000000000000057141471627602100170010ustar00rootroot00000000000000description olsr outgoing interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 metric-out 200 router olsr6 1 metric-out 200 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr14.tst000066400000000000000000000057711471627602100170050ustar00rootroot00000000000000description olsr incoming metric with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 set metric +200 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-in rm1 router olsr6 1 route-map-in rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr15.tst000066400000000000000000000057731471627602100170100ustar00rootroot00000000000000description olsr outgoing metric with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit route-map rm1 set metric +200 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-out rm1 router olsr6 1 route-map-out rm1 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr16.tst000066400000000000000000000060131471627602100167750ustar00rootroot00000000000000description olsr incoming metric with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy rm1 set metric +200 pass exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-policy-in rm1 router olsr6 1 route-policy-in rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr17.tst000066400000000000000000000060151471627602100170000ustar00rootroot00000000000000description olsr outgoing metric with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit route-policy rm1 set metric +200 pass exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-policy-out rm1 router olsr6 1 route-policy-out rm1 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr18.tst000066400000000000000000000044131471627602100170010ustar00rootroot00000000000000description olsr with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router olsr4 1 ena router olsr4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router olsr6 1 ena router olsr6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router olsr4 1 ena router olsr4 1 bfd router olsr4 1 dista 150 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router olsr6 1 ena router olsr6 1 bfd router olsr6 1 dista 150 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router olsr4 1 ena router olsr4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router olsr6 1 ena router olsr6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router olsr4 1 ena router olsr4 1 bfd router olsr4 1 dista 150 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router olsr6 1 ena router olsr6 1 bfd router olsr6 1 dista 150 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr19.tst000066400000000000000000000025531471627602100170050ustar00rootroot00000000000000description olsr peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: temp temp1 exit int temp1 router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr20.tst000066400000000000000000000032121471627602100167660ustar00rootroot00000000000000description olsr prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r1 send conf t r1 send int lo0 r1 send no router olsr4 1 ena r1 send no router olsr6 1 ena r1 send end r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r1 send conf t r1 send int lo0 r1 send router olsr4 1 ena r1 send router olsr6 1 ena r1 send end r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr21.tst000066400000000000000000000043401471627602100167720ustar00rootroot00000000000000description olsr aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-in p4 router olsr6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 aggregate 2.2.2.0/24 red conn exit router olsr6 1 vrf v1 aggregate 4321::/32 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr22.tst000066400000000000000000000040061471627602100167720ustar00rootroot00000000000000description olsr auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router olsr4 1 vrf v1 red conn automesh all exit router olsr6 1 vrf v1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router olsr4 1 ena router olsr6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router olsr4 1 vrf v1 red conn automesh all exit router olsr6 1 vrf v1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router olsr4 1 ena router olsr6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 130 9.9.9.2 vrf v1 r1 tping 100 130 9999::2 vrf v1 r2 tping 100 130 9.9.9.1 vrf v1 r2 tping 100 130 9999::1 vrf v1 r1 tping 0 130 2.2.2.2 vrf v1 r1 tping 0 130 4321::2 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr23.tst000066400000000000000000000053651471627602100170040ustar00rootroot00000000000000description olsr triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 metric-in 200 router olsr6 1 metric-in 200 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 metric-in 200 router olsr6 1 metric-in 200 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr24.tst000066400000000000000000000047331471627602100170030ustar00rootroot00000000000000description olsr autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router olsr4 1 ena router olsr6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute olsr4 1 2.2.2.2 9.9.8.2 ipv6 autoroute olsr6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router olsr4 1 ena router olsr6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute olsr4 1 2.2.2.1 9.9.8.1 ipv6 autoroute olsr6 1 4321::1 9998::1 exit ! r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r1 tping 0 130 9.9.9.2 vrf v1 r1 tping 0 130 9999::2 vrf v1 r2 tping 0 130 9.9.9.1 vrf v1 r2 tping 0 130 9999::1 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr25.tst000066400000000000000000000024021471627602100167730ustar00rootroot00000000000000description olsr over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 exit router olsr6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr26.tst000066400000000000000000000064141471627602100170030ustar00rootroot00000000000000description olsr ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn ecmp exit router olsr6 1 vrf v1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn ecmp exit router olsr6 1 vrf v1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn ecmp exit router olsr6 1 vrf v1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr27.tst000066400000000000000000000037761471627602100170140ustar00rootroot00000000000000description olsr default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 suppress exit router olsr6 1 vrf v1 suppress exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 0 130 2.2.2.21 vrf v1 r2 tping 0 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr28.tst000066400000000000000000000040621471627602100170020ustar00rootroot00000000000000description olsr address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 suppress exit router olsr6 1 vrf v1 suppress exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena router olsr4 1 unsuppress router olsr6 1 unsuppress exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router olsr4 1 ena router olsr6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 0 130 2.2.2.21 vrf v1 r2 tping 0 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-olsr29.tst000066400000000000000000000054311471627602100170040ustar00rootroot00000000000000description olsr auto summarization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena router olsr4 1 route-map-in p4 router olsr6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 autosumm red conn exit router olsr6 1 vrf v1 autosumm red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router olsr4 1 ena router olsr6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 olsr 1 sum r2 output show ipv6 olsr 1 sum r2 output show ipv4 olsr 1 dat r2 output show ipv6 olsr 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf01.tst000066400000000000000000000024751471627602100167670ustar00rootroot00000000000000description ospf point2point connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf02.tst000066400000000000000000000070611471627602100167640ustar00rootroot00000000000000description ospf point2multipoint connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 resend-packet ipv6 resend-packet router ospf4 1 ena router ospf4 1 net point2multi router ospf6 1 ena router ospf6 1 net point2multi exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 resend-packet ipv6 resend-packet router ospf4 1 ena router ospf4 1 net point2multi router ospf6 1 ena router ospf6 1 net point2multi exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: ipv4 resend-packet ipv6 resend-packet router ospf4 1 ena router ospf4 1 net point2multi router ospf6 1 ena router ospf6 1 net point2multi exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: ipv4 resend-packet ipv6 resend-packet router ospf4 1 ena router ospf4 1 net point2multi router ospf6 1 ena router ospf6 1 net point2multi exit ! r1 tping 100 80 2.2.2.2 vrf v1 r1 tping 100 80 2.2.2.3 vrf v1 r1 tping 100 80 2.2.2.4 vrf v1 r1 tping 100 80 4321::2 vrf v1 r1 tping 100 80 4321::3 vrf v1 r1 tping 100 80 4321::4 vrf v1 r2 tping 100 80 2.2.2.1 vrf v1 r2 tping 100 80 2.2.2.3 vrf v1 r2 tping 100 80 2.2.2.4 vrf v1 r2 tping 100 80 4321::1 vrf v1 r2 tping 100 80 4321::3 vrf v1 r2 tping 100 80 4321::4 vrf v1 r3 tping 100 80 2.2.2.1 vrf v1 r3 tping 100 80 2.2.2.2 vrf v1 r3 tping 100 80 2.2.2.4 vrf v1 r3 tping 100 80 4321::1 vrf v1 r3 tping 100 80 4321::2 vrf v1 r3 tping 100 80 4321::4 vrf v1 r4 tping 100 80 2.2.2.1 vrf v1 r4 tping 100 80 2.2.2.2 vrf v1 r4 tping 100 80 2.2.2.3 vrf v1 r4 tping 100 80 4321::1 vrf v1 r4 tping 100 80 4321::2 vrf v1 r4 tping 100 80 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf03.tst000066400000000000000000000071521471627602100167660ustar00rootroot00000000000000description ospf point2multipoint nonbroadcast connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf4 1 net point2non router ospf6 1 ena router ospf6 1 net point2non exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf4 1 net point2non router ospf6 1 ena router ospf6 1 net point2non exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router ospf4 1 ena router ospf4 1 net point2non router ospf6 1 ena router ospf6 1 net point2non exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router ospf4 1 ena router ospf4 1 net point2non router ospf6 1 ena router ospf6 1 net point2non ipv4 resend-packet ipv6 resend-packet router ospf4 1 neigh 1.1.1.1 router ospf4 1 neigh 1.1.1.2 router ospf4 1 neigh 1.1.1.3 router ospf6 1 neigh 1234::1 router ospf6 1 neigh 1234::2 router ospf6 1 neigh 1234::3 exit ! r1 tping 100 80 2.2.2.2 vrf v1 r1 tping 100 80 2.2.2.3 vrf v1 r1 tping 100 80 2.2.2.4 vrf v1 r1 tping 100 80 4321::2 vrf v1 r1 tping 100 80 4321::3 vrf v1 r1 tping 100 80 4321::4 vrf v1 r2 tping 100 80 2.2.2.1 vrf v1 r2 tping 100 80 2.2.2.3 vrf v1 r2 tping 100 80 2.2.2.4 vrf v1 r2 tping 100 80 4321::1 vrf v1 r2 tping 100 80 4321::3 vrf v1 r2 tping 100 80 4321::4 vrf v1 r3 tping 100 80 2.2.2.1 vrf v1 r3 tping 100 80 2.2.2.2 vrf v1 r3 tping 100 80 2.2.2.4 vrf v1 r3 tping 100 80 4321::1 vrf v1 r3 tping 100 80 4321::2 vrf v1 r3 tping 100 80 4321::4 vrf v1 r4 tping 100 80 2.2.2.1 vrf v1 r4 tping 100 80 2.2.2.2 vrf v1 r4 tping 100 80 2.2.2.3 vrf v1 r4 tping 100 80 4321::1 vrf v1 r4 tping 100 80 4321::2 vrf v1 r4 tping 100 80 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf04.tst000066400000000000000000000066101471627602100167650ustar00rootroot00000000000000description ospf broadcast connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf05.tst000066400000000000000000000071771471627602100167770ustar00rootroot00000000000000description ospf nonbroadcast connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf4 1 net nonbroad router ospf6 1 ena router ospf6 1 net nonbroad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf4 1 net nonbroad router ospf6 1 ena router ospf6 1 net nonbroad exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router ospf4 1 ena router ospf4 1 net nonbroad router ospf6 1 ena router ospf6 1 net nonbroad exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router ospf4 1 ena router ospf4 1 net nonbroad router ospf6 1 ena router ospf6 1 net nonbroad ipv4 resend-packet ipv6 resend-packet router ospf4 1 prio 1 router ospf6 1 prio 1 router ospf4 1 neigh 1.1.1.1 router ospf4 1 neigh 1.1.1.2 router ospf4 1 neigh 1.1.1.3 router ospf6 1 neigh 1234::1 router ospf6 1 neigh 1234::2 router ospf6 1 neigh 1234::3 exit ! r1 tping 100 80 2.2.2.2 vrf v1 r1 tping 100 80 2.2.2.3 vrf v1 r1 tping 100 80 2.2.2.4 vrf v1 r1 tping 100 80 4321::2 vrf v1 r1 tping 100 80 4321::3 vrf v1 r1 tping 100 80 4321::4 vrf v1 r2 tping 100 80 2.2.2.1 vrf v1 r2 tping 100 80 2.2.2.3 vrf v1 r2 tping 100 80 2.2.2.4 vrf v1 r2 tping 100 80 4321::1 vrf v1 r2 tping 100 80 4321::3 vrf v1 r2 tping 100 80 4321::4 vrf v1 r3 tping 100 80 2.2.2.1 vrf v1 r3 tping 100 80 2.2.2.2 vrf v1 r3 tping 100 80 2.2.2.4 vrf v1 r3 tping 100 80 4321::1 vrf v1 r3 tping 100 80 4321::2 vrf v1 r3 tping 100 80 4321::4 vrf v1 r4 tping 100 80 2.2.2.1 vrf v1 r4 tping 100 80 2.2.2.2 vrf v1 r4 tping 100 80 2.2.2.3 vrf v1 r4 tping 100 80 4321::1 vrf v1 r4 tping 100 80 4321::2 vrf v1 r4 tping 100 80 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf06.tst000066400000000000000000000073301471627602100167670ustar00rootroot00000000000000description ospf point2point chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-ospf.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here is the ipv4 tree:
show:4
here is the ipv6 tree:
show:5
here are the ipv4 routes:
show:6
here are the ipv6 routes:
show:7
! freeRtr-24.11.16/cfg/rout-ospf07.tst000066400000000000000000000072001471627602100167640ustar00rootroot00000000000000description ospf broadcast chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf08.tst000066400000000000000000000052021471627602100167650ustar00rootroot00000000000000description ospf stub area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena area 1 stub red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena area 1 stub red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena area 1 stub red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena area 1 stub red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.33 255.255.255.255 ipv6 addr 4321::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.33 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r1 tping 100 40 4321::33 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.33 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 tping 100 40 4321::33 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf09.tst000066400000000000000000000052121471627602100167670ustar00rootroot00000000000000description ospf nssa area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena area 1 nssa red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena area 1 nssa red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena area 1 nssa red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena area 1 nssa red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.33 255.255.255.255 ipv6 addr 4321::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.33 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::33 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.33 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::33 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf10.tst000066400000000000000000000051311471627602100167570ustar00rootroot00000000000000description ospf transit area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.33 255.255.255.255 ipv6 addr 4321::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.33 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::33 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.33 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::33 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf11.tst000066400000000000000000000065131471627602100167650ustar00rootroot00000000000000description ospf intra area metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf12.tst000066400000000000000000000066301471627602100167660ustar00rootroot00000000000000description ospf intra area vs inter area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena area 1 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena area 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf4 1 passiv router ospf6 1 ena router ospf6 1 area 1 router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf13.tst000066400000000000000000000063761471627602100167760ustar00rootroot00000000000000description ospf inter area vs external addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena area 1 ena exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena area 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 passiv router ospf6 1 area 1 exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf14.tst000066400000000000000000000064411471627602100167700ustar00rootroot00000000000000description ospf external1 vs external2 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set origin 111 exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn route-map rm1 prefix p4 exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn route-map rm1 prefix p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf15.tst000066400000000000000000000065531471627602100167750ustar00rootroot00000000000000description ospf external1 metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set origin 111 set metric 200 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn route-map rm1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set origin 111 exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn route-map rm1 prefix p4 exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn route-map rm1 prefix p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf16.tst000066400000000000000000000064321471627602100167720ustar00rootroot00000000000000description ospf external2 metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 50 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn route-map rm1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.222/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::222/128 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn prefix p4 exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn prefix p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf17.tst000066400000000000000000000034141471627602100167700ustar00rootroot00000000000000description ospf address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf4 1 suppress router ospf6 1 ena router ospf6 1 passiv router ospf6 1 suppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf18.tst000066400000000000000000000026161471627602100167740ustar00rootroot00000000000000description ospf text authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf19.tst000066400000000000000000000064541471627602100170010ustar00rootroot00000000000000description ospf inter area ingress filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn area 0 prefix-list-from p4 area 1 prefix-list-from p4 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn area 0 prefix-list-from p6 area 1 prefix-list-from p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 0 40 2.2.2.13 vrf v1 r1 tping 0 40 4321::13 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 0 40 2.2.2.13 vrf v1 r2 tping 0 40 4321::13 vrf v1 r3 tping 0 40 2.2.2.11 vrf v1 r3 tping 0 40 4321::11 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf20.tst000066400000000000000000000065521471627602100167700ustar00rootroot00000000000000description ospf inter area ingress filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn area 0 route-map-from p4 area 1 route-map-from p4 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn area 0 route-map-from p6 area 1 route-map-from p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 0 40 2.2.2.13 vrf v1 r1 tping 0 40 4321::13 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 0 40 2.2.2.13 vrf v1 r2 tping 0 40 4321::13 vrf v1 r3 tping 0 40 2.2.2.11 vrf v1 r3 tping 0 40 4321::11 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf21.tst000066400000000000000000000064531471627602100167710ustar00rootroot00000000000000description ospf inter area egress filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn area 0 prefix-list-into p4 area 1 prefix-list-into p4 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn area 0 prefix-list-into p6 area 1 prefix-list-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf22.tst000066400000000000000000000065511471627602100167710ustar00rootroot00000000000000description ospf inter area egress filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn area 0 route-map-into p4 area 1 route-map-into p4 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn area 0 route-map-into p6 area 1 route-map-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf23.tst000066400000000000000000000064271471627602100167740ustar00rootroot00000000000000description ospf inter area ingress filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn area 0 route-policy-from p4 area 1 route-policy-from p4 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn area 0 route-policy-from p6 area 1 route-policy-from p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 0 40 2.2.2.13 vrf v1 r1 tping 0 40 4321::13 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 0 40 2.2.2.13 vrf v1 r2 tping 0 40 4321::13 vrf v1 r3 tping 0 40 2.2.2.11 vrf v1 r3 tping 0 40 4321::11 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf24.tst000066400000000000000000000064261471627602100167740ustar00rootroot00000000000000description ospf inter area egress filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 1 ena red conn area 0 route-policy-into p4 area 1 route-policy-into p4 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 1 ena red conn area 0 route-policy-into p6 area 1 route-policy-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 0 20 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf25.tst000066400000000000000000000025241471627602100167700ustar00rootroot00000000000000description ospf default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena area 0 default exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena area 0 default exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf26.tst000066400000000000000000000046651471627602100170010ustar00rootroot00000000000000description ospf with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router ospf4 1 ena router ospf4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router ospf6 1 ena router ospf6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router ospf4 1 ena router ospf4 1 bfd router ospf4 1 cost 10 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router ospf6 1 ena router ospf6 1 bfd router ospf6 1 cost 10 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router ospf4 1 ena router ospf4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router ospf6 1 ena router ospf6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router ospf4 1 ena router ospf4 1 bfd router ospf4 1 cost 10 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router ospf6 1 ena router ospf6 1 bfd router ospf6 1 cost 10 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf27.tst000066400000000000000000000027021471627602100167700ustar00rootroot00000000000000description ospf with te addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 traffeng 4.4.4.1 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.1 traffeng 6.6.6.1 area 0 ena area 0 traff red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router ospf4 1 ena ipv6 addr 1234:1::1 ffff:ffff:: router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 traffeng 4.4.4.2 area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router 6.6.6.2 traffeng 6.6.6.2 area 0 ena area 0 traff red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router ospf4 1 ena ipv6 addr 1234:1::2 ffff:ffff:: router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf28.tst000066400000000000000000000030121471627602100167640ustar00rootroot00000000000000description ospf peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: temp temp1 exit int temp1 router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf29.tst000066400000000000000000000074061471627602100170000ustar00rootroot00000000000000description ospf with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 1 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 2 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 3 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 3 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-ospf30.tst000066400000000000000000000075711471627602100167730ustar00rootroot00000000000000description ospf transit area with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 1 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 segrout 10 area 0 ena area 0 segrout area 1 ena area 1 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 segrout 10 area 0 ena area 0 segrout area 1 ena area 1 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 2 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 segrout 10 area 1 ena area 1 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 segrout 10 area 1 ena area 1 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 3 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 3 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-ospf31.tst000066400000000000000000000034651471627602100167720ustar00rootroot00000000000000description ospf prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router ospf4 1 ena r1 send no router ospf6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router ospf4 1 ena r1 send router ospf6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf32.tst000066400000000000000000000066141471627602100167720ustar00rootroot00000000000000description ospf change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 1000 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn route-map rm1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn area 0 route-map-from rm1 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn area 0 route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf33.tst000066400000000000000000000065751471627602100170010ustar00rootroot00000000000000description ospf change in tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1000 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn route-map rm1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn area 0 route-map-from rm1 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn area 0 route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf34.tst000066400000000000000000000065741471627602100170010ustar00rootroot00000000000000description ospf aggregate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.2 aggregate 2.2.2.0/24 area 0 ena area 1 ena red conn area 0 route-map-into p4 area 1 route-map-into p4 exit router ospf6 1 vrf v1 router 6.6.6.2 aggregate 4321::/32 area 0 ena area 1 ena red conn area 0 route-map-into p6 area 1 route-map-into p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 0 20 4321::13 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 4321::13 vrf v1 r3 tping 100 20 2.2.2.11 vrf v1 r3 tping 100 20 4321::11 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 4321::12 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf35.tst000066400000000000000000000042641471627602100167740ustar00rootroot00000000000000description ospf auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn automesh all exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router ospf4 1 ena router ospf6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn automesh all exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router ospf4 1 ena router ospf6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 20 9.9.9.2 vrf v1 r1 tping 100 20 9999::2 vrf v1 r2 tping 100 20 9.9.9.1 vrf v1 r2 tping 100 20 9999::1 vrf v1 r1 tping 0 20 2.2.2.2 vrf v1 r1 tping 0 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf36.tst000066400000000000000000000057171471627602100170010ustar00rootroot00000000000000description ospf triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf37.tst000066400000000000000000000135231471627602100167740ustar00rootroot00000000000000description ospf prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena advertise 4321::1/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena advertise 2.2.2.2/32 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena advertise 4321::2/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf38.tst000066400000000000000000000077761471627602100170120ustar00rootroot00000000000000description ospf with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 bier 256 10 area 0 ena area 0 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.1 bier 256 10 area 0 ena area 0 bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 bier index 1 router ospf6 1 ena router ospf6 1 bier index 1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 bier 256 10 area 0 ena area 0 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.2 bier 256 10 area 0 ena area 0 bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 bier index 2 router ospf6 1 ena router ospf6 1 bier index 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 bier 256 10 area 0 ena area 0 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.3 bier 256 10 area 0 ena area 0 bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 bier index 3 router ospf6 1 ena router ospf6 1 bier index 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 40 2.2.2.3 vrf v1 sou lo1 r3 tping 0 40 2.2.2.1 vrf v1 sou lo1 r1 tping 0 40 4321::3 vrf v1 sou lo1 r3 tping 0 40 4321::1 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r1 tping 100 40 4321::1112 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r3 tping 100 40 4321::1111 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-ospf39.tst000066400000000000000000000101531471627602100167720ustar00rootroot00000000000000description ospf transit area with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 bier 256 10 area 0 ena area 0 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.1 bier 256 10 area 0 ena area 0 bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 bier index 1 router ospf6 1 ena router ospf6 1 bier index 1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 bier 256 10 area 0 ena area 0 bier area 1 ena area 1 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.2 bier 256 10 area 0 ena area 0 bier area 1 ena area 1 bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 bier index 2 router ospf6 1 ena router ospf6 1 bier index 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 bier 256 10 area 1 ena area 1 bier red conn exit router ospf6 1 vrf v1 router 6.6.6.3 bier 256 10 area 1 ena area 1 bier red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 bier index 3 router ospf6 1 ena router ospf6 1 bier index 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 40 2.2.2.3 vrf v1 sou lo1 r3 tping 0 40 2.2.2.1 vrf v1 sou lo1 r1 tping 0 40 4321::3 vrf v1 sou lo1 r3 tping 0 40 4321::1 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r1 tping 100 40 4321::1112 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r3 tping 100 40 4321::1111 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 bier v1 r2 output show ipv6 bier v1 freeRtr-24.11.16/cfg/rout-ospf40.tst000066400000000000000000000052051471627602100167640ustar00rootroot00000000000000description ospf autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router ospf4 1 ena router ospf6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute ospf4 1 2.2.2.2 9.9.8.2 ipv6 autoroute ospf6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router ospf4 1 ena router ospf6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute ospf4 1 2.2.2.1 9.9.8.1 ipv6 autoroute ospf6 1 4321::1 9998::1 exit ! r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 tping 0 40 9.9.9.2 vrf v1 r1 tping 0 40 9999::2 vrf v1 r2 tping 0 40 9.9.9.1 vrf v1 r2 tping 0 40 9999::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf41.tst000066400000000000000000000106401471627602100167640ustar00rootroot00000000000000description ospf with php sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 1 router ospf6 1 segrout node router ospf6 1 segrout pop exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 2 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node router ospf6 1 segrout pop exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 3 router ospf4 1 segrout node router ospf4 1 segrout pop router ospf6 1 ena router ospf6 1 segrout index 3 router ospf6 1 segrout node router ospf6 1 segrout pop exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::1 1234 exit ! r1 tping 0 40 2.2.2.2 vrf v1 sou lo1 r1 tping 0 40 2.2.2.3 vrf v1 sou lo1 r1 tping 0 40 4321::2 vrf v1 sou lo1 r1 tping 0 40 4321::3 vrf v1 sou lo1 r2 tping 0 40 2.2.2.1 vrf v1 sou lo1 r2 tping 0 40 2.2.2.3 vrf v1 sou lo1 r2 tping 0 40 4321::1 vrf v1 sou lo1 r2 tping 0 40 4321::3 vrf v1 sou lo1 r3 tping 0 40 2.2.2.1 vrf v1 sou lo1 r3 tping 0 40 2.2.2.2 vrf v1 sou lo1 r3 tping 0 40 4321::1 vrf v1 sou lo1 r3 tping 0 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-ospf42.tst000066400000000000000000000075011471627602100167670ustar00rootroot00000000000000description ospf with srgb sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.1 segrout 10 base 100 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 segrout 10 base 200 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 1 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.2 segrout 10 base 100 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 segrout 10 base 200 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 2 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router ospf4 1 vrf v1 router 4.4.4.3 segrout 10 base 100 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 segrout 10 base 200 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 3 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 3 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-ospf43.tst000066400000000000000000000026061471627602100167710ustar00rootroot00000000000000description ospf over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf44.tst000066400000000000000000000072071471627602100167740ustar00rootroot00000000000000description ospf multi area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 2 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 2 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 2 router ospf6 1 ena router ospf6 1 area 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 router ospf6 1 ena router ospf6 1 area 1 2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 1 ena area 2 ena exit router ospf6 1 vrf v1 router 6.6.6.2 area 1 ena area 2 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 2 router ospf6 1 ena router ospf6 1 area 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 router ospf6 1 ena router ospf6 1 area 1 2 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 router ospf6 1 ena router ospf6 1 area 1 2 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena area 2 ena exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena area 2 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.33 255.255.255.255 ipv6 addr 4321::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 2 router ospf6 1 ena router ospf6 1 area 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 router ospf6 1 ena router ospf6 1 area 1 2 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.33 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::33 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.33 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::33 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::22 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf45.tst000066400000000000000000000072721471627602100167770ustar00rootroot00000000000000description ospf asymmetric multi area addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 1 ena area 2 ena exit router ospf6 1 vrf v1 router 6.6.6.1 area 1 ena area 2 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 2 router ospf6 1 ena router ospf6 1 area 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 router ospf6 1 ena router ospf6 1 area 1 2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 1 ena area 2 ena area 3 ena exit router ospf6 1 vrf v1 router 6.6.6.2 area 1 ena area 2 ena area 3 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 2 3 router ospf6 1 ena router ospf6 1 area 1 2 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 3 router ospf6 1 ena router ospf6 1 area 1 2 3 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 2 3 router ospf6 1 ena router ospf6 1 area 1 2 3 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 1 ena area 3 ena exit router ospf6 1 vrf v1 router 6.6.6.3 area 1 ena area 3 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 1 router ospf6 1 ena router ospf6 1 area 1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.33 255.255.255.255 ipv6 addr 4321::33 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 area 3 router ospf6 1 ena router ospf6 1 area 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 area 1 3 router ospf6 1 ena router ospf6 1 area 1 3 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.33 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::33 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.33 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::33 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::22 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf46.tst000066400000000000000000000065411471627602100167760ustar00rootroot00000000000000description ospf point2point chain with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf47.tst000066400000000000000000000074411471627602100167770ustar00rootroot00000000000000description ospf broadcast chain with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf6 1 ena router ospf6 1 net broad exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.4 area 0 ena area 0 spf-bidir red conn exit router ospf6 1 vrf v1 router 6.6.6.4 area 0 ena area 0 spf-bidir red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 net broad router ospf4 1 prio 1 router ospf6 1 ena router ospf6 1 net broad router ospf6 1 prio 1 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf48.tst000066400000000000000000000071401471627602100167740ustar00rootroot00000000000000description ospf ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn area 0 spf-ecmp ecmp exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn area 0 spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn area 0 spf-ecmp ecmp exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn area 0 spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn area 0 spf-ecmp ecmp exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn area 0 spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf49.tst000066400000000000000000000051001471627602100167670ustar00rootroot00000000000000description ospf with bgp linkstate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena justadvert lo1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate afi-link ospf4 1 0 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 linkstate afi-link ospf6 1 0 justadvert lo2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena justadvert lo1 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate afi-link ospf4 1 0 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 linkstate afi-link ospf6 1 0 justadvert lo2 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 tping 100 20 2.2.2.102 vrf v1 r2 tping 100 20 2.2.2.101 vrf v1 r1 tping 100 20 4321::102 vrf v1 r2 tping 100 20 4321::101 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r1 output show ipv4 bgp 1 uni dat r1 output show ipv6 bgp 1 uni dat r1 output show ipv4 bgp 1 links dat r1 output show ipv6 bgp 1 links dat freeRtr-24.11.16/cfg/rout-ospf50.tst000066400000000000000000000100271471627602100167630ustar00rootroot00000000000000description ospf with polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 1 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router ospf4 1 ena router ospf6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 2 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable polka enable 2 65536 10 router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 3 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 3 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router ospf4 1 ena router ospf6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-ospf51.tst000066400000000000000000000040201471627602100167600ustar00rootroot00000000000000description ospf default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena area 0 suppress exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena area 0 suppress exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.111 vrf v1 r1 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf52.tst000066400000000000000000000041041471627602100167640ustar00rootroot00000000000000description ospf address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena area 0 suppress exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena area 0 suppress exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf4 1 unsuppress router ospf6 1 ena router ospf6 1 passiv router ospf6 1 unsuppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 passiv router ospf6 1 ena router ospf6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.111 vrf v1 r1 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf53.tst000066400000000000000000000054061471627602100167730ustar00rootroot00000000000000description ospf maximum metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 20 2.2.2.2 vrf v1 r2 send conf t r2 send router ospf4 1 r2 send area 0 max-met r2 send end r2 send conf t r2 send router ospf6 1 r2 send area 0 max-met r2 send end r2 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf54.tst000066400000000000000000000030111471627602100167620ustar00rootroot00000000000000description ospf md5 authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf4 1 authen-id 123 router ospf4 1 authen-type md5 router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router ospf4 1 ena router ospf4 1 password tester router ospf4 1 authen-id 123 router ospf4 1 authen-type md5 router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf55.tst000066400000000000000000000037611471627602100167770ustar00rootroot00000000000000description ospf dynamic icmp cost addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router ospf4 1 ena router ospf4 1 cost 1 router ospf6 1 ena router ospf6 1 cost 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf4 1 cost 2 router ospf4 1 dynamic-met mod icm router ospf6 1 ena router ospf6 1 cost 2 router ospf6 1 dynamic-met mod icm exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router ospf4 1 ena router ospf4 1 cost 200 router ospf4 1 dynamic-met mod icm router ospf6 1 ena router ospf6 1 cost 200 router ospf6 1 dynamic-met mod icm exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf56.tst000066400000000000000000000040141471627602100167700ustar00rootroot00000000000000description ospf dynamic udp cost addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server echo e vrf v1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router ospf4 1 ena router ospf4 1 cost 1 router ospf6 1 ena router ospf6 1 cost 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf4 1 cost 2 router ospf4 1 dynamic-met mod udp router ospf6 1 ena router ospf6 1 cost 2 router ospf6 1 dynamic-met mod udp exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router ospf4 1 ena router ospf4 1 cost 200 router ospf4 1 dynamic-met mod udp router ospf6 1 ena router ospf6 1 cost 200 router ospf6 1 dynamic-met mod udp exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf57.tst000066400000000000000000000040171471627602100167740ustar00rootroot00000000000000description ospf dynamic twamp cost addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server twamp t vrf v1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf4 1 cost 100 router ospf6 1 ena router ospf6 1 cost 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router ospf4 1 ena router ospf4 1 cost 1 router ospf6 1 ena router ospf6 1 cost 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf4 1 cost 2 router ospf4 1 dynamic-met mod twa router ospf6 1 ena router ospf6 1 cost 2 router ospf6 1 dynamic-met mod twa exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router ospf4 1 ena router ospf4 1 cost 200 router ospf4 1 dynamic-met mod twa router ospf6 1 ena router ospf6 1 cost 200 router ospf6 1 dynamic-met mod twa exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-ospf58.tst000066400000000000000000000102041471627602100167700ustar00rootroot00000000000000description ospf with mpolka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 1 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 1 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: mpls enable polka enable 1 65536 10 router ospf4 1 ena router ospf6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 2.2.2.3 , 2.2.2.3 2.2.2.3 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 4321::3 , 4321::3 4321::3 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 2 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 2 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: mpls enable polka enable 2 65536 10 router ospf4 1 ena router ospf6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable polka enable 2 65536 10 router ospf4 1 ena router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 segrout 10 area 0 ena area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.3 segrout 10 area 0 ena area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router ospf4 1 ena router ospf4 1 segrout index 3 router ospf4 1 segrout node router ospf6 1 ena router ospf6 1 segrout index 3 router ospf6 1 segrout node exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable polka enable 3 65536 10 router ospf4 1 ena router ospf6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 2.2.2.1 , 2.2.2.1 2.2.2.1 tunnel mode mpolka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 4321::1 , 4321::1 4321::1 tunnel mode mpolka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 segrou v1 r2 output show ipv6 segrou v1 freeRtr-24.11.16/cfg/rout-ospf59.tst000066400000000000000000000031171471627602100167760ustar00rootroot00000000000000description ospf flexalgo addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 flexalgo 128 v2 area 0 ena segrout 10 area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.1 flexalgo 128 v2 area 0 ena segrout 10 area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 flexalgo 128 v2 area 0 ena segrout 10 area 0 segrout red conn exit router ospf6 1 vrf v1 router 6.6.6.2 flexalgo 128 v2 area 0 ena segrout 10 area 0 segrout red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 r2 output show ipv4 route v2 r2 output show ipv6 route v2 freeRtr-24.11.16/cfg/rout-ospf60.tst000066400000000000000000000027311471627602100167670ustar00rootroot00000000000000description ospf with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router ospf4 1 ena router ospf6 1 ena router ospf4 1 ipinfo pmtud 512 1024 666 router ospf6 1 ipinfo pmtud 512 1024 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router ospf4 1 ena router ospf6 1 ena router ospf4 1 ipinfo pmtud 512 1024 666 router ospf6 1 ipinfo pmtud 512 1024 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 ospf 1 nei r2 output show ipv6 ospf 1 nei r2 output show ipv4 ospf 1 dat 0 r2 output show ipv6 ospf 1 dat 0 r2 output show ipv4 ospf 1 tre 0 r2 output show ipv6 ospf 1 tre 0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pbr01.tst000066400000000000000000000053061471627602100165770ustar00rootroot00000000000000description policy routing with nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 next 1.1.1.2 ipv6 pbr v1 a2b6 v1 next 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 next 1.1.1.5 ipv6 pbr v1 a2b6 v1 next 1234:2::1 ipv4 pbr v1 b2a4 v1 next 1.1.1.1 ipv6 pbr v1 b2a6 v1 next 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 b2a4 v1 next 1.1.1.6 ipv6 pbr v1 b2a6 v1 next 1234:2::2 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 r1 tping 0 5 4321::201 vrf v1 r3 tping 0 5 2.2.2.101 vrf v1 r3 tping 0 5 4321::101 vrf v1 r2 output show ipv4 pbr v1 r2 output show ipv6 pbr v1 output ../binTmp/rout-pbr.html here are the ipv4 forwarding:
show:0
here are the ipv6 forwarding:
show:1
! freeRtr-24.11.16/cfg/rout-pbr02.tst000066400000000000000000000050241471627602100165750ustar00rootroot00000000000000description policy routing with interface and nexthop between vrfs addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 int eth1 next 1.1.1.2 ipv6 pbr v1 a2b6 v1 int eth1 next 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v2 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v2 int eth2 next 1.1.1.5 ipv6 pbr v1 a2b6 v2 int eth2 next 1234:2::1 ipv4 pbr v2 b2a4 v1 int eth1 next 1.1.1.1 ipv6 pbr v2 b2a6 v1 int eth1 next 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 b2a4 v1 int eth1 next 1.1.1.6 ipv6 pbr v1 b2a6 v1 int eth1 next 1234:2::2 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 r1 tping 0 5 4321::201 vrf v1 r3 tping 0 5 2.2.2.101 vrf v1 r3 tping 0 5 4321::101 vrf v1 freeRtr-24.11.16/cfg/rout-pbr03.tst000066400000000000000000000047561471627602100166110ustar00rootroot00000000000000description policy routing with interface and nexthop addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 int eth1 next 1.1.1.2 ipv6 pbr v1 a2b6 v1 int eth1 next 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 int eth2 next 1.1.1.5 ipv6 pbr v1 a2b6 v1 int eth2 next 1234:2::1 ipv4 pbr v1 b2a4 v1 int eth1 next 1.1.1.1 ipv6 pbr v1 b2a6 v1 int eth1 next 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 b2a4 v1 int eth1 next 1.1.1.6 ipv6 pbr v1 b2a6 v1 int eth1 next 1234:2::2 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 r1 tping 0 5 4321::201 vrf v1 r3 tping 0 5 2.2.2.101 vrf v1 r3 tping 0 5 4321::101 vrf v1 freeRtr-24.11.16/cfg/rout-pbr04.tst000066400000000000000000000052361471627602100166040ustar00rootroot00000000000000description policy routing between vrfs with routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 int eth1 next 1.1.1.2 ipv6 pbr v1 a2b6 v1 int eth1 next 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v2 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v2 2.2.2.201 255.255.255.255 1.1.1.5 ipv6 route v2 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v2 ipv6 pbr v1 a2b6 v2 ipv4 pbr v2 b2a4 v1 ipv6 pbr v2 b2a6 v1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 b2a4 v1 int eth1 next 1.1.1.6 ipv6 pbr v1 b2a6 v1 int eth1 next 1234:2::2 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 r1 tping 0 5 4321::201 vrf v1 r3 tping 0 5 2.2.2.101 vrf v1 r3 tping 0 5 4321::101 vrf v1 freeRtr-24.11.16/cfg/rout-pbr05.tst000066400000000000000000000046351471627602100166070ustar00rootroot00000000000000description policy routing with nexthop on interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 next 1.1.1.2 ipv6 pbr v1 a2b6 v1 next 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pbr a2b4 v1 next 1.1.1.5 ipv6 pbr a2b6 v1 next 1234:2::1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 pbr b2a4 v1 next 1.1.1.1 ipv6 pbr b2a6 v1 next 1234:1::1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 b2a4 v1 next 1.1.1.6 ipv6 pbr v1 b2a6 v1 next 1234:2::2 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 r1 tping 0 5 4321::201 vrf v1 r3 tping 0 5 2.2.2.101 vrf v1 r3 tping 0 5 4321::101 vrf v1 freeRtr-24.11.16/cfg/rout-pbr06.tst000066400000000000000000000047031471627602100166040ustar00rootroot00000000000000description policy routing with nexthop on interface between vrfs addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 a2b4 v1 next 1.1.1.2 ipv6 pbr v1 a2b6 v1 next 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit access-list a2b4 permit all 2.2.2.101 255.255.255.255 all 2.2.2.201 255.255.255.255 all exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list a2b6 permit all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 pbr a2b4 v2 next 1.1.1.5 ipv6 pbr a2b6 v2 next 1234:2::1 exit int eth2 vrf for v2 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 pbr b2a4 v1 next 1.1.1.1 ipv6 pbr b2a6 v1 next 1234:1::1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit access-list b2a4 permit all 2.2.2.201 255.255.255.255 all 2.2.2.101 255.255.255.255 all exit access-list b2a6 permit all 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff all exit ipv4 pbr v1 b2a4 v1 next 1.1.1.6 ipv6 pbr v1 b2a6 v1 next 1234:2::2 ! r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 0 5 2.2.2.201 vrf v1 r1 tping 0 5 4321::201 vrf v1 r3 tping 0 5 2.2.2.101 vrf v1 r3 tping 0 5 4321::101 vrf v1 freeRtr-24.11.16/cfg/rout-pvrp01.tst000066400000000000000000000023071471627602100170010ustar00rootroot00000000000000description pvrp point2point connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp02.tst000066400000000000000000000057531471627602100170120ustar00rootroot00000000000000description pvrp point2multipoint connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit bridge 1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit bridge 1 exit router pvrp4 1 vrf v1 router 4.4.4.4 red conn exit router pvrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 bridge-gr 1 exit int bvi1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp03.tst000066400000000000000000000067261471627602100170140ustar00rootroot00000000000000description pvrp point2point chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 red conn exit router pvrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-pvrp.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-pvrp04.tst000066400000000000000000000063171471627602100170110ustar00rootroot00000000000000description pvrp incoming interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp05.tst000066400000000000000000000063211471627602100170050ustar00rootroot00000000000000description pvrp outgoing interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 metric-out 100 router pvrp6 1 ena router pvrp6 1 metric-out 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp06.tst000066400000000000000000000063711471627602100170130ustar00rootroot00000000000000description pvrp incoming routemap metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit route-map rm1 set metric +100 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 route-map-in rm1 router pvrp6 1 ena router pvrp6 1 route-map-in rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp07.tst000066400000000000000000000063731471627602100170160ustar00rootroot00000000000000description pvrp outgoing routemap metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit route-map rm1 set metric +100 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 route-map-out rm1 router pvrp6 1 ena router pvrp6 1 route-map-out rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp08.tst000066400000000000000000000064131471627602100170120ustar00rootroot00000000000000description pvrp incoming routepolicy metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit route-policy rm1 set metric +100 pass exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 route-policy-in rm1 router pvrp6 1 ena router pvrp6 1 route-policy-in rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp09.tst000066400000000000000000000064151471627602100170150ustar00rootroot00000000000000description pvrp outgoing routepolicy metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit route-policy rm1 set metric +100 pass exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 route-policy-out rm1 router pvrp6 1 ena router pvrp6 1 route-policy-out rm1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 exit router pvrp6 1 vrf v1 router 6.6.6.3 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp10.tst000066400000000000000000000032261471627602100170020ustar00rootroot00000000000000description pvrp address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp4 1 suppress router pvrp6 1 ena router pvrp6 1 passiv router pvrp6 1 suppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 exit router pvrp6 1 vrf v1 router 6.6.6.2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp11.tst000066400000000000000000000042751471627602100170100ustar00rootroot00000000000000description pvrp ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 prefix-list-in p4 router pvrp6 1 prefix-list-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp12.tst000066400000000000000000000042761471627602100170120ustar00rootroot00000000000000description pvrp egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 prefix-list-out p4 router pvrp6 1 prefix-list-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp13.tst000066400000000000000000000043771471627602100170150ustar00rootroot00000000000000description pvrp ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-map-in p4 router pvrp6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp14.tst000066400000000000000000000044001471627602100170010ustar00rootroot00000000000000description pvrp egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-map-out p4 router pvrp6 1 route-map-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp15.tst000066400000000000000000000042461471627602100170120ustar00rootroot00000000000000description pvrp ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-policy-in p4 router pvrp6 1 route-policy-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp16.tst000066400000000000000000000042471471627602100170140ustar00rootroot00000000000000description pvrp egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-policy-out p4 router pvrp6 1 route-policy-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 2.2.2.11 vrf v1 r2 tping 0 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp17.tst000066400000000000000000000045671471627602100170220ustar00rootroot00000000000000description pvrp tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn route-map rm1 exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act deny match tag 1234 sequence 20 act perm exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-map-out rm1 router pvrp6 1 route-map-out rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-map-out rm1 router pvrp6 1 route-map-out rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn route-map rm1 exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp18.tst000066400000000000000000000023561471627602100170150ustar00rootroot00000000000000description pvrp default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 default router pvrp6 1 ena router pvrp6 1 default exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp19.tst000066400000000000000000000045271471627602100170200ustar00rootroot00000000000000description pvrp with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd router pvrp4 1 metric-in 100 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd router pvrp6 1 metric-in 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd router pvrp4 1 metric-in 100 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd router pvrp6 1 metric-in 100 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp20.tst000066400000000000000000000025131471627602100170010ustar00rootroot00000000000000description pvrp authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router pvrp4 1 ena router pvrp4 1 password test ipv6 addr 1234:1::1 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 password test exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router pvrp4 1 ena router pvrp4 1 password test ipv6 addr 1234:1::2 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 password test exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp21.tst000066400000000000000000000036011471627602100170010ustar00rootroot00000000000000description pvrp ssh encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router pvrp4 1 ena router pvrp4 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::1 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router pvrp4 1 ena router pvrp4 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::2 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 encryption ssh rsa dsa ecdsa rsa dsa ecdsa exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp22.tst000066400000000000000000000036011471627602100170020ustar00rootroot00000000000000description pvrp tls encryption addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router pvrp4 1 ena router pvrp4 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::1 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 crypto certificate dsa generate dsa dsa crypto certificate rsa generate rsa rsa crypto certificate ecdsa generate ecdsa ecdsa vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router pvrp4 1 ena router pvrp4 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa ipv6 addr 1234:1::2 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 encryption tls rsa dsa ecdsa rsa dsa ecdsa exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp23.tst000066400000000000000000000026241471627602100170070ustar00rootroot00000000000000description pvrp peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: temp temp1 exit int temp1 router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp24.tst000066400000000000000000000070031471627602100170040ustar00rootroot00000000000000description pvrp with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::1 1234 exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp25.tst000066400000000000000000000032761471627602100170150ustar00rootroot00000000000000description pvrp prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 exit router pvrp6 1 vrf v1 router 6.6.6.1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 exit router pvrp6 1 vrf v1 router 6.6.6.2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router pvrp4 1 ena r1 send no router pvrp6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router pvrp4 1 ena r1 send router pvrp6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp26.tst000066400000000000000000000044241471627602100170120ustar00rootroot00000000000000description pvrp aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-map-in p4 router pvrp6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 aggregate 2.2.2.0/24 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 aggregate 4321::/32 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp27.tst000066400000000000000000000040761471627602100170160ustar00rootroot00000000000000description pvrp auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn automesh all exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn automesh all exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 40 9.9.9.2 vrf v1 r1 tping 100 40 9999::2 vrf v1 r2 tping 100 40 9.9.9.1 vrf v1 r2 tping 100 40 9999::1 vrf v1 r1 tping 0 40 2.2.2.2 vrf v1 r1 tping 0 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp28.tst000066400000000000000000000055251471627602100170170ustar00rootroot00000000000000description pvrp triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp29.tst000066400000000000000000000133051471627602100170130ustar00rootroot00000000000000description pvrp prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router pvrp4 1 vrf v1 router 4.4.4.1 advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router pvrp6 1 vrf v1 router 6.6.6.1 advertise 4321::1/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 advertise 2.2.2.2/32 exit router pvrp6 1 vrf v1 router 6.6.6.2 advertise 4321::2/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router pvrp4 1 vrf v1 router 4.4.4.3 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router pvrp6 1 vrf v1 router 6.6.6.3 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp30.tst000066400000000000000000000050161471627602100170030ustar00rootroot00000000000000description pvrp autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute pvrp4 1 2.2.2.2 9.9.8.2 ipv6 autoroute pvrp6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute pvrp4 1 2.2.2.1 9.9.8.1 ipv6 autoroute pvrp6 1 4321::1 9998::1 exit ! r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 tping 0 40 9.9.9.2 vrf v1 r1 tping 0 40 9999::2 vrf v1 r2 tping 0 40 9.9.9.1 vrf v1 r2 tping 0 40 9999::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp31.tst000066400000000000000000000031001471627602100167740ustar00rootroot00000000000000description pvrp default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router pvrp4 1 vrf v1 router 4.4.4.1 justadv lo1 suppress exit router pvrp6 1 vrf v1 router 6.6.6.1 justadv lo1 suppress exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 exit router pvrp6 1 vrf v1 router 6.6.6.2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp32.tst000066400000000000000000000031641471627602100170070ustar00rootroot00000000000000description pvrp address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router pvrp4 1 vrf v1 router 4.4.4.1 justadv lo1 suppress exit router pvrp6 1 vrf v1 router 6.6.6.1 justadv lo1 suppress exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp6 1 ena router pvrp6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp4 1 passiv router pvrp4 1 unsuppress router pvrp6 1 ena router pvrp6 1 passiv router pvrp6 1 unsuppress exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 exit router pvrp6 1 vrf v1 router 6.6.6.2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp33.tst000066400000000000000000000072741471627602100170160ustar00rootroot00000000000000description pvrp with php labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp4 1 label-pop router pvrp6 1 ena router pvrp6 1 label-pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.3 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.1 255.255.255.0 pseudo v1 lo1 pweompls 4321::3 1234 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp4 1 label-pop router pvrp6 1 ena router pvrp6 1 label-pop exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp4 1 label-pop router pvrp6 1 ena router pvrp6 1 label-pop exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp4 1 label-pop router pvrp6 1 ena router pvrp6 1 label-pop exit int pweth1 vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 pseudo v1 lo1 pweompls 2.2.2.1 1234 exit int pweth2 vrf for v1 ipv4 addr 3.3.4.2 255.255.255.0 pseudo v1 lo1 pweompls 4321::1 1234 exit ! r1 tping 0 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r2 tping 0 20 2.2.2.1 vrf v1 sou lo1 r2 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r3 tping 0 20 2.2.2.2 vrf v1 sou lo1 r1 tping 0 20 4321::2 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r2 tping 0 20 4321::1 vrf v1 sou lo1 r2 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r3 tping 0 20 4321::2 vrf v1 sou lo1 r1 tping 100 40 3.3.3.2 vrf v1 r3 tping 100 40 3.3.3.1 vrf v1 r1 tping 100 40 3.3.4.2 vrf v1 r3 tping 100 40 3.3.4.1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp34.tst000066400000000000000000000047001471627602100170060ustar00rootroot00000000000000description ingress label filtering with pvrp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit prefix-list p4 sequence 10 deny 2.2.2.3/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::3/128 sequence 20 permit ::/0 le 128 exit router pvrp4 1 vrf v1 router 4.4.4.1 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 label red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp4 1 label-in p4 router pvrp6 1 ena router pvrp6 1 label-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 label red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp35.tst000066400000000000000000000047011471627602100170100ustar00rootroot00000000000000description egress label filtering with pvrp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 label red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit prefix-list p4 sequence 10 deny 2.2.2.3/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::3/128 sequence 20 permit ::/0 le 128 exit router pvrp4 1 vrf v1 router 4.4.4.2 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 label red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp4 1 label-out p4 router pvrp6 1 ena router pvrp6 1 label-out p6 exit ! r2 tping 100 10 2.2.2.1 vrf v1 sou lo0 r2 tping 100 10 4321::1 vrf v1 sou lo0 r1 tping 0 10 1.1.1.2 vrf v1 r2 tping 0 10 1.1.1.1 vrf v1 r1 tping 100 10 2.2.2.2 vrf v1 sou lo0 r1 tping 100 10 4321::2 vrf v1 sou lo0 r1 tping 0 10 2.2.2.3 vrf v1 sou lo0 r1 tping 0 10 4321::3 vrf v1 sou lo0 r1 tping 100 10 2.2.2.4 vrf v1 sou lo0 r1 tping 100 10 4321::4 vrf v1 sou lo0 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp36.tst000066400000000000000000000060161471627602100170120ustar00rootroot00000000000000description pvrp stub node addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 stub red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 stub red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 red conn exit router pvrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 0 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r1 tping 0 40 4321::4 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 0 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 0 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp37.tst000066400000000000000000000061331471627602100170130ustar00rootroot00000000000000description pvrp stub interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 stub router pvrp6 1 ena router pvrp6 1 stub exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 stub router pvrp6 1 ena router pvrp6 1 stub exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 red conn exit router pvrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 0 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r1 tping 0 40 4321::4 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 0 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 0 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp38.tst000066400000000000000000000062011471627602100170100ustar00rootroot00000000000000description pvrp unstub interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 stub red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 stub red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 unstub router pvrp6 1 ena router pvrp6 1 unstub exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp4 1 unstub router pvrp6 1 ena router pvrp6 1 unstub exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.4 red conn exit router pvrp6 1 vrf v1 router 6.6.6.4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp39.tst000066400000000000000000000024201471627602100170100ustar00rootroot00000000000000description pvrp over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp40.tst000066400000000000000000000037521471627602100170110ustar00rootroot00000000000000description pvrp peer metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router pvrp4 1 vrf v1 router 4.4.4.1 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: mpls enable router pvrp4 1 ena router pvrp4 1 metric-in 1 router pvrp6 1 ena router pvrp6 1 metric-in 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit router pvrp4 1 vrf v1 router 4.4.4.2 label red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 label red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable router pvrp4 1 ena router pvrp4 1 metric-in 2 router pvrp4 1 accept-met router pvrp6 1 ena router pvrp6 1 metric-in 2 router pvrp6 1 accept-met exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable router pvrp4 1 ena router pvrp4 1 metric-in 200 router pvrp4 1 accept-met router pvrp6 1 ena router pvrp6 1 metric-in 200 router pvrp6 1 accept-met exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp41.tst000066400000000000000000000065541471627602100170150ustar00rootroot00000000000000description pvrp ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn ecmp exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn ecmp exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn ecmp exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp42.tst000066400000000000000000000025141471627602100170060ustar00rootroot00000000000000description pvrp no authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router pvrp4 1 ena router pvrp4 1 password test router pvrp4 1 disable-pass ipv6 addr 1234:1::1 ffff:ffff:: router pvrp6 1 ena router pvrp6 1 password test router pvrp6 1 disable-pass exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router pvrp4 1 ena ipv6 addr 1234:1::2 ffff:ffff:: router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp43.tst000066400000000000000000000046101471627602100170060ustar00rootroot00000000000000description pvrp with strict bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd strict ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd strict exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd strict router pvrp4 1 metric-in 100 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd strict router pvrp6 1 metric-in 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd strict ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd strict exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router pvrp4 1 ena router pvrp4 1 bfd router pvrp4 1 metric-in 100 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router pvrp6 1 ena router pvrp6 1 bfd router pvrp6 1 metric-in 100 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp44.tst000066400000000000000000000036471471627602100170200ustar00rootroot00000000000000description pvrp dynamic inband metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 1 router pvrp6 1 ena router pvrp6 1 metric-in 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 2 router pvrp4 1 dynamic-met mod inb router pvrp6 1 ena router pvrp6 1 metric-in 2 router pvrp6 1 dynamic-met mod inb exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 200 router pvrp4 1 dynamic-met mod inb router pvrp6 1 ena router pvrp6 1 metric-in 200 router pvrp6 1 dynamic-met mod inb exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp45.tst000066400000000000000000000036451471627602100170170ustar00rootroot00000000000000description pvrp dynamic icmp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 1 router pvrp6 1 ena router pvrp6 1 metric-in 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 2 router pvrp4 1 dynamic-met mod icm router pvrp6 1 ena router pvrp6 1 metric-in 2 router pvrp6 1 dynamic-met mod icm exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 200 router pvrp4 1 dynamic-met mod icm router pvrp6 1 ena router pvrp6 1 metric-in 200 router pvrp6 1 dynamic-met mod icm exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp46.tst000066400000000000000000000037001471627602100170100ustar00rootroot00000000000000description pvrp dynamic udp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server echo e vrf v1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 1 router pvrp6 1 ena router pvrp6 1 metric-in 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 2 router pvrp4 1 dynamic-met mod udp router pvrp6 1 ena router pvrp6 1 metric-in 2 router pvrp6 1 dynamic-met mod udp exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 200 router pvrp4 1 dynamic-met mod udp router pvrp6 1 ena router pvrp6 1 metric-in 200 router pvrp6 1 dynamic-met mod udp exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp47.tst000066400000000000000000000036461471627602100170220ustar00rootroot00000000000000description pvrp dynamic twamp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 100 router pvrp6 1 ena router pvrp6 1 metric-in 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 1 router pvrp6 1 ena router pvrp6 1 metric-in 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 2 router pvrp4 1 dynamic-met mod twa router pvrp6 1 ena router pvrp6 1 metric-in 2 router pvrp6 1 dynamic-met mod twa exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router pvrp4 1 ena router pvrp4 1 metric-in 200 router pvrp4 1 dynamic-met mod twa router pvrp6 1 ena router pvrp6 1 metric-in 200 router pvrp6 1 dynamic-met mod twa exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp48.tst000066400000000000000000000057331471627602100170220ustar00rootroot00000000000000description pvrp with sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp49.tst000066400000000000000000000066701471627602100170240ustar00rootroot00000000000000description pvrp with bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 bier 256 10 1 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 bier 256 10 1 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 bier 256 10 2 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 bier 256 10 2 # red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 bier 256 10 3 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 bier 256 10 3 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp50.tst000066400000000000000000000060261471627602100170070ustar00rootroot00000000000000description pvrp with srgb sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 base 100 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 base 200 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 base 100 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 base 200 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 base 100 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 base 200 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp51.tst000066400000000000000000000063631471627602100170140ustar00rootroot00000000000000description pvrp with selective sr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 segrout 10 0 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 segrout 10 0 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 segrou 1 router pvrp6 1 segrou 1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 segrout 10 0 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 segrout 10 0 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 segrou 2 router pvrp6 1 segrou 2 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 segrout 10 0 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 segrout 10 0 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 segrou 3 router pvrp6 1 segrou 3 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp52.tst000066400000000000000000000073201471627602100170070ustar00rootroot00000000000000description pvrp with selective bier addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.1 bier 256 10 0 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 bier 256 10 0 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 bier 1 3 router pvrp6 1 bier 1 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv4 addr 3.3.3.1 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::3 tun vrf v1 tun key 1 tun mod bier vrf for v1 ipv6 addr 4321::1111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.2 bier 256 10 0 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 bier 256 10 0 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 bier 2 3 router pvrp6 1 bier 2 3 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit router pvrp4 1 vrf v1 router 4.4.4.3 bier 256 10 0 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 bier 256 10 0 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 bier 3 3 router pvrp6 1 bier 3 3 exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable router pvrp4 1 ena router pvrp6 1 ena exit int tun1 tun sou lo1 tun dest 9.9.9.9 tun doma 2.2.2.1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv4 addr 3.3.3.2 255.255.255.252 exit int tun2 tun sou lo1 tun dest 9999::9 tun doma 4321::1 tun vrf v1 tun key 3 tun mod bier vrf for v1 ipv6 addr 4321::1112 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 exit ! r1 tping 0 20 2.2.2.3 vrf v1 sou lo1 r3 tping 0 20 2.2.2.1 vrf v1 sou lo1 r1 tping 0 20 4321::3 vrf v1 sou lo1 r3 tping 0 20 4321::1 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 r1 tping 100 20 4321::1112 vrf v1 r3 tping 100 20 3.3.3.1 vrf v1 r3 tping 100 20 4321::1111 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp53.tst000066400000000000000000000063541471627602100170160ustar00rootroot00000000000000description pvrp with polka addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 segrout 10 1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 segrout 10 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: mpls enable polka enable 1 65536 10 router pvrp4 1 ena router pvrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.3 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.1 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::3 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 segrout 10 2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 segrout 10 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: mpls enable polka enable 2 65536 10 router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: mpls enable polka enable 2 65536 10 router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 segrout 10 3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 segrout 10 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.2.3 255.255.255.0 ipv6 addr 1235::3 ffff:: mpls enable polka enable 3 65536 10 router pvrp4 1 ena router pvrp6 1 ena exit interface tun1 tunnel vrf v1 tunnel source loopback1 tunnel destination 2.2.2.1 tunnel domain-name 2.2.2.2 tunnel mode polka vrf forwarding v1 ipv4 address 3.3.3.2 255.255.255.252 exit interface tun2 tunnel vrf v1 tunnel source loopback1 tunnel destination 4321::1 tunnel domain-name 4321::2 tunnel mode polka vrf forwarding v1 ipv6 address 3333::2 ffff:: exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 2.2.2.3 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r2 tping 100 20 2.2.2.3 vrf v1 sou lo1 r3 tping 100 20 2.2.2.1 vrf v1 sou lo1 r3 tping 100 20 2.2.2.2 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 4321::3 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 tping 100 20 4321::3 vrf v1 sou lo1 r3 tping 100 20 4321::1 vrf v1 sou lo1 r3 tping 100 20 4321::2 vrf v1 sou lo1 r1 tping 100 20 3.3.3.2 vrf v1 sou tun1 r3 tping 100 20 3.3.3.1 vrf v1 sou tun1 r1 tping 100 20 3333::2 vrf v1 sou tun2 r3 tping 100 20 3333::1 vrf v1 sou tun2 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp54.tst000066400000000000000000000055551471627602100170210ustar00rootroot00000000000000description pvrp auto summarization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 route-map-in p4 router pvrp6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 autosumm red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 autosumm red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp4 1 ena router pvrp6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 4321::12 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-pvrp55.tst000066400000000000000000000025431471627602100170140ustar00rootroot00000000000000description pvrp with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 ipinfo pmtud 512 1024 666 router pvrp6 1 ipinfo pmtud 512 1024 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router pvrp4 1 ena router pvrp6 1 ena router pvrp4 1 ipinfo pmtud 512 1024 666 router pvrp6 1 ipinfo pmtud 512 1024 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 pvrp 1 sum r2 output show ipv6 pvrp 1 sum r2 output show ipv4 pvrp 1 rou r2 output show ipv6 pvrp 1 rou r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-redist01.tst000066400000000000000000000075301471627602100173070ustar00rootroot00000000000000description redistribution with isis addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn red isis4 2 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn red isis6 2 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn red isis4 1 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 100 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist02.tst000066400000000000000000000074401471627602100173100ustar00rootroot00000000000000description redistribution with ospf addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red ospf4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red ospf6 1 exit router ospf4 1 vrf v1 router 4.4.4.2 area 0 ena red conn red isis4 1 exit router ospf6 1 vrf v1 router 6.6.6.2 area 0 ena red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router ospf4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router ospf6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router ospf4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router ospf6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist03.tst000066400000000000000000000072451471627602100173140ustar00rootroot00000000000000description redistribution with rip addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red rip4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red rip6 1 exit router rip4 1 vrf v1 red conn red isis4 1 exit router rip6 1 vrf v1 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router rip4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router rip4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router rip6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist04.tst000066400000000000000000000076451471627602100173210ustar00rootroot00000000000000description redistribution with bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red bgp4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red bgp6 1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router 4.4.4.2 neigh 1.1.1.6 remote-as 2 red conn red isis4 1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router 6.6.6.2 neigh 1234:2::2 remote-as 2 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 2.2.2.23 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::13 vrf v1 r2 tping 100 60 4321::23 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.21 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 2.2.2.22 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::21 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::12 vrf v1 r3 tping 100 60 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist05.tst000066400000000000000000000105151471627602100173100ustar00rootroot00000000000000description redistribution with bgp vpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v2 net 48.4444.0000.2222.00 is-type level2 red conn red bgp4 1 exit router isis6 1 vrf v2 net 48.6666.0000.2222.00 is-type level2 red conn red bgp6 1 exit router bgp4 1 vrf v1 address vpnuni local-as 1 router 4.4.4.2 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red isis4 1 exit router bgp6 1 vrf v1 address vpnuni local-as 1 router 6.6.6.2 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 neigh 4321::3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red isis6 1 exit int lo2 vrf for v2 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v2 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v2 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni local-as 1 router 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo1 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni local-as 1 router 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo1 neigh 4321::2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn exit int lo2 vrf for v2 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v2 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v2 r2 tping 100 60 2.2.2.11 vrf v2 r2 tping 100 60 2.2.2.21 vrf v2 r2 tping 100 60 2.2.2.13 vrf v2 r2 tping 100 60 2.2.2.23 vrf v2 r2 tping 100 60 4321::1 vrf v2 r2 tping 100 60 4321::11 vrf v2 r2 tping 100 60 4321::21 vrf v2 r2 tping 100 60 4321::13 vrf v2 r2 tping 100 60 4321::23 vrf v2 r3 tping 100 60 2.2.2.1 vrf v2 r3 tping 100 60 2.2.2.11 vrf v2 r3 tping 100 60 2.2.2.21 vrf v2 r3 tping 100 60 2.2.2.12 vrf v2 r3 tping 100 60 2.2.2.22 vrf v2 r3 tping 100 60 4321::1 vrf v2 r3 tping 100 60 4321::11 vrf v2 r3 tping 100 60 4321::21 vrf v2 r3 tping 100 60 4321::12 vrf v2 r3 tping 100 60 4321::22 vrf v2 freeRtr-24.11.16/cfg/rout-redist06.tst000066400000000000000000000105671471627602100173200ustar00rootroot00000000000000description redistribution with bgp othervpn addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v2 net 48.4444.0000.2222.00 is-type level2 red conn red bgp4 1 exit router isis6 1 vrf v2 net 48.6666.0000.2222.00 is-type level2 red conn red bgp4 1 exit router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router 4.4.4.2 neigh 2.2.2.3 remote-as 1 neigh 2.2.2.3 update lo1 neigh 2.2.2.3 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-vrf v2 red isis4 1 afi-ovrf v2 ena afi-ovrf v2 red conn afi-ovrf v2 red isis6 1 exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router 6.6.6.2 neigh 4321::3 remote-as 1 neigh 4321::3 update lo1 neigh 4321::3 send-comm both exit int lo2 vrf for v2 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v2 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v2 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v2 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.3 255.255.255.255 1.1.1.6 ipv6 route v1 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::2 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit vrf def v2 rd 1:2 rt-both 1:2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router bgp4 1 vrf v1 address vpnuni ovpnuni local-as 1 router 4.4.4.3 neigh 2.2.2.2 remote-as 1 neigh 2.2.2.2 update lo1 neigh 2.2.2.2 send-comm both afi-vrf v2 ena afi-vrf v2 red conn afi-ovrf v2 ena afi-ovrf v2 red conn exit router bgp6 1 vrf v1 address vpnuni ovpnuni local-as 1 router 6.6.6.3 neigh 4321::2 remote-as 1 neigh 4321::2 update lo1 neigh 4321::2 send-comm both exit int lo2 vrf for v2 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v2 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable mpls ldp4 mpls ldp6 exit ipv4 route v1 2.2.2.2 255.255.255.255 1.1.1.5 ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v2 r2 tping 100 60 2.2.2.11 vrf v2 r2 tping 100 60 2.2.2.21 vrf v2 r2 tping 100 60 2.2.2.13 vrf v2 r2 tping 100 60 2.2.2.23 vrf v2 r2 tping 100 60 4321::1 vrf v2 r2 tping 100 60 4321::11 vrf v2 r2 tping 100 60 4321::21 vrf v2 r2 tping 100 60 4321::13 vrf v2 r2 tping 100 60 4321::23 vrf v2 r3 tping 100 60 2.2.2.1 vrf v2 r3 tping 100 60 2.2.2.11 vrf v2 r3 tping 100 60 2.2.2.21 vrf v2 r3 tping 100 60 2.2.2.12 vrf v2 r3 tping 100 60 2.2.2.22 vrf v2 r3 tping 100 60 4321::1 vrf v2 r3 tping 100 60 4321::11 vrf v2 r3 tping 100 60 4321::21 vrf v2 r3 tping 100 60 4321::12 vrf v2 r3 tping 100 60 4321::22 vrf v2 freeRtr-24.11.16/cfg/rout-redist07.tst000066400000000000000000000073601471627602100173160ustar00rootroot00000000000000description redistribution with pvrp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red pvrp4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red pvrp6 1 exit router pvrp4 1 vrf v1 router 4.4.4.2 red conn red isis4 1 exit router pvrp6 1 vrf v1 router 6.6.6.2 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router pvrp4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router pvrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.3 red conn exit router pvrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router pvrp4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router pvrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist08.tst000066400000000000000000000074231471627602100173170ustar00rootroot00000000000000description redistribution with eigrp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red eigrp4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red eigrp6 1 exit router eigrp4 1 vrf v1 router 4.4.4.2 as 1 red conn red isis4 1 exit router eigrp6 1 vrf v1 router 6.6.6.2 as 1 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router eigrp4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router eigrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.3 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.3 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router eigrp4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router eigrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist09.tst000066400000000000000000000074531471627602100173230ustar00rootroot00000000000000description redistribution with babel addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red babel4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red babel6 1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn red isis4 1 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router babel4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router babel6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0002 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0002 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router babel4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router babel6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist10.tst000066400000000000000000000072601471627602100173070ustar00rootroot00000000000000description redistribution with olsr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red olsr4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red olsr6 1 exit router olsr4 1 vrf v1 red conn red isis4 1 exit router olsr6 1 vrf v1 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router olsr4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router olsr6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router olsr4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router olsr6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist11.tst000066400000000000000000000073601471627602100173110ustar00rootroot00000000000000description redistribution with lsrp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red lsrp4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red lsrp6 1 exit router lsrp4 1 vrf v1 router 4.4.4.2 red conn red isis4 1 exit router lsrp6 1 vrf v1 router 6.6.6.2 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router lsrp4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router lsrp6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.3 red conn exit router lsrp6 1 vrf v1 router 6.6.6.3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router lsrp4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router lsrp6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist12.tst000066400000000000000000000102061471627602100173030ustar00rootroot00000000000000description redistribution filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.8/29 le 32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::10/124 le 128 sequence 20 permit ::/0 le 128 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn prefix-list p4 red isis4 2 prefix-list p4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn prefix-list p6 red isis6 2 prefix-list p6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn prefix-list p4 red isis4 1 prefix-list p4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn prefix-list p6 red isis6 1 prefix-list p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist13.tst000066400000000000000000000102741471627602100173110ustar00rootroot00000000000000description redistribution filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-map p4 red isis4 2 route-map p4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-map p6 red isis6 2 route-map p6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-map p4 red isis4 1 route-map p4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-map p6 red isis6 1 route-map p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist14.tst000066400000000000000000000104271471627602100173120ustar00rootroot00000000000000description redistribution filtering with hierarchical routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit route-map h4 match route-map p4 exit route-map h6 match route-map p6 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-map h4 red isis4 2 route-map h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-map h6 red isis6 2 route-map h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-map h4 red isis4 1 route-map h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-map h6 red isis6 1 route-map h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist15.tst000066400000000000000000000101651471627602100173120ustar00rootroot00000000000000description redistribution filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-policy p4 red isis4 2 route-policy p4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-policy p6 red isis6 2 route-policy p6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-policy p4 red isis4 1 route-policy p4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-policy p6 red isis6 1 route-policy p6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist16.tst000066400000000000000000000103601471627602100173100ustar00rootroot00000000000000description redistribution filtering with hierarchical routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit route-policy h4 if route-policy p4 pass enif exit route-policy h6 if route-policy p6 pass enif exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-policy h4 red isis4 2 route-policy h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-policy h6 red isis6 2 route-policy h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-policy h4 red isis4 1 route-policy h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-policy h6 red isis6 1 route-policy h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist17.tst000066400000000000000000000041001471627602100173040ustar00rootroot00000000000000description redistribution with prefixes addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 advertise 2.2.2.1/32 advertise 2.2.2.21/32 exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 advertise 4321::1/128 advertise 4321::21/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 advertise 2.2.2.2/32 advertise 2.2.2.22/32 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 advertise 4321::2/128 advertise 4321::22/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-redist18.tst000066400000000000000000000514631471627602100173230ustar00rootroot00000000000000description redistribution with everything addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ int eth5 eth 0000.0000.1111 $5a$ $5b$ int eth6 eth 0000.0000.1111 $6a$ $6b$ int eth7 eth 0000.0000.1111 $7a$ $7b$ int eth8 eth 0000.0000.1111 $8a$ $8b$ int eth9 eth 0000.0000.1111 $9a$ $9b$ int eth10 eth 0000.0000.1111 $10a$ $10b$ int eth11 eth 0000.0000.1111 $11a$ $11b$ ! vrf def v1 rd 1:1 rt-both 1:2 exit vrf def v2 rd 1:2 label-mode per-prefix exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn red ospf4 1 red rip4 1 red babel4 1 red olsr4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn red ospf6 1 red rip6 1 red babel6 1 red olsr6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router ospf4 1 vrf v1 router 4.4.4.1 area 0 ena red conn red isis4 1 red rip4 1 red babel4 1 red olsr4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router ospf6 1 vrf v1 router 6.6.6.1 area 0 ena red conn red isis6 1 red rip6 1 red babel6 1 red olsr6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router pvrp4 1 vrf v1 router 4.4.4.1 red conn red isis4 1 red ospf4 1 red rip4 1 red babel4 1 red olsr4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router pvrp6 1 vrf v1 router 6.6.6.1 red conn red isis6 1 red ospf6 1 red rip6 1 red babel6 1 red olsr6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router lsrp4 1 vrf v1 router 4.4.4.1 red conn red isis4 1 red ospf4 1 red rip4 1 red babel4 1 red olsr4 1 red pvrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router lsrp6 1 vrf v1 router 6.6.6.1 red conn red isis6 1 red ospf6 1 red rip6 1 red babel6 1 red olsr6 1 red pvrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router eigrp4 1 vrf v1 router 4.4.4.1 as 1 red conn red isis4 1 red ospf4 1 red rip4 1 red babel4 1 red olsr4 1 red pvrp4 1 red lsrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router eigrp6 1 vrf v1 router 6.6.6.1 as 1 red conn red isis6 1 red ospf6 1 red rip6 1 red babel6 1 red olsr6 1 red pvrp6 1 red lsrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router rip4 1 vrf v1 red conn red isis4 1 red ospf4 1 red babel4 1 red olsr4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router rip6 1 vrf v1 red conn red isis6 1 red ospf6 1 red babel6 1 red olsr6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router babel4 1 vrf v1 router 1111-2222-3333-0001 red conn red isis4 1 red ospf4 1 red rip4 1 red olsr4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router babel6 1 vrf v1 router 1111-2222-3333-0001 red conn red isis6 1 red ospf6 1 red rip6 1 red olsr6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router olsr4 1 vrf v1 red conn red isis4 1 red ospf4 1 red rip4 1 red babel4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red rift4 1 exit router olsr6 1 vrf v1 red conn red isis6 1 red ospf6 1 red rip6 1 red babel6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red rift6 1 exit router rift4 1 vrf v1 router 41 red conn red isis4 1 red ospf4 1 red rip4 1 red babel4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 1 red bgp4 2 red olsr4 1 exit router rift6 1 vrf v1 router 61 red conn red isis6 1 red ospf6 1 red rip6 1 red babel6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 1 red bgp6 2 red olsr6 1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router 4.4.4.1 neigh 1.1.1.14 remote-as 2 red conn red isis4 1 red ospf4 1 red rip4 1 red babel4 1 red olsr4 1 red pvrp4 1 red lsrp4 1 red eigrp4 1 red bgp4 2 red rift4 1 exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router 6.6.6.1 neigh 1234:4::2 remote-as 2 red conn red isis6 1 red ospf6 1 red rip6 1 red babel6 1 red olsr6 1 red pvrp6 1 red lsrp6 1 red eigrp6 1 red bgp6 2 red rift6 1 exit router bgp4 2 vrf v2 no safe-ebgp address vpnuni local-as 1 router 4.4.4.1 neigh 1.1.1.18 remote-as 3 neigh 1.1.1.18 send-comm both afi-vrf v1 ena afi-vrf v1 red conn afi-vrf v1 red isis4 1 afi-vrf v1 red ospf4 1 afi-vrf v1 red rip4 1 afi-vrf v1 red babel4 1 afi-vrf v1 red olsr4 1 afi-vrf v1 red pvrp4 1 afi-vrf v1 red lsrp4 1 afi-vrf v1 red eigrp4 1 afi-vrf v1 red bgp4 1 afi-vrf v1 red rift4 1 exit router bgp6 2 vrf v2 no safe-ebgp address vpnuni local-as 1 router 6.6.6.2 neigh 1234:5::2 remote-as 3 neigh 1234:5::2 send-comm both afi-vrf v1 ena afi-vrf v1 red conn afi-vrf v1 red isis6 1 afi-vrf v1 red ospf6 1 afi-vrf v1 red rip6 1 afi-vrf v1 red babel6 1 afi-vrf v1 red olsr6 1 afi-vrf v1 red pvrp6 1 afi-vrf v1 red lsrp6 1 afi-vrf v1 red eigrp6 1 afi-vrf v1 red bgp6 1 afi-vrf v1 red rift6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router ospf4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router ospf6 1 ena exit int eth3.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 router rip4 1 ena exit int eth3.12 vrf for v1 ipv6 addr 1234:3::1 ffff:ffff:: router rip6 1 ena exit int eth4.11 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 exit int eth4.12 vrf for v1 ipv6 addr 1234:4::1 ffff:ffff:: exit int eth5.11 vrf for v2 ipv4 addr 1.1.1.17 255.255.255.252 mpls enable exit int eth5.12 vrf for v2 ipv6 addr 1234:5::1 ffff:ffff:: mpls enable exit int eth6.11 vrf for v1 ipv4 addr 1.1.1.21 255.255.255.252 router pvrp4 1 ena exit int eth6.12 vrf for v1 ipv6 addr 1234:6::1 ffff:ffff:: router pvrp6 1 ena exit int eth7.11 vrf for v1 ipv4 addr 1.1.1.25 255.255.255.252 router eigrp4 1 ena exit int eth7.12 vrf for v1 ipv6 addr 1234:7::1 ffff:ffff:: router eigrp6 1 ena exit int eth8.11 vrf for v1 ipv4 addr 1.1.1.29 255.255.255.252 router babel4 1 ena exit int eth8.12 vrf for v1 ipv6 addr 1234:8::1 ffff:ffff:: router babel6 1 ena exit int eth9.11 vrf for v1 ipv4 addr 1.1.1.33 255.255.255.252 router lsrp4 1 ena exit int eth9.12 vrf for v1 ipv6 addr 1234:9::1 ffff:ffff:: router lsrp6 1 ena exit int eth10.11 vrf for v1 ipv4 addr 1.1.1.37 255.255.255.252 router olsr4 1 ena exit int eth10.12 vrf for v1 ipv6 addr 1234:10::1 ffff:ffff:: router olsr6 1 ena exit int eth11.11 vrf for v1 ipv4 addr 1.1.1.41 255.255.255.252 router rift4 1 ena exit int eth11.12 vrf for v1 ipv6 addr 1234:11::1 ffff:ffff:: router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red isis4 2 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red isis6 2 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router ospf4 1 vrf v1 router 4.4.4.3 area 0 ena red conn exit router ospf6 1 vrf v1 router 6.6.6.3 area 0 ena red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router ospf4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router ospf6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 router rip4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:3::2 ffff:ffff:: router rip6 1 ena exit ! addrouter r5 int eth1 eth 0000.0000.5555 $4b$ $4a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router 4.4.4.5 neigh 1.1.1.13 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router 6.6.6.5 neigh 1234:4::1 remote-as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.5 255.255.255.255 ipv6 addr 4321::5 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 exit int eth1.12 vrf for v1 ipv6 addr 1234:4::2 ffff:ffff:: exit ! addrouter r6 int eth1 eth 0000.0000.6666 $5b$ $5a$ ! vrf def v1 rd 1:1 rt-both 1:2 exit vrf def v2 rd 1:2 label-mode per-prefix exit router bgp4 2 vrf v2 no safe-ebgp address vpnuni local-as 3 router 4.4.4.6 neigh 1.1.1.17 remote-as 1 neigh 1.1.1.17 send-comm both afi-vrf v1 ena afi-vrf v1 red conn exit router bgp6 2 vrf v2 no safe-ebgp address vpnuni local-as 3 router 6.6.6.6 neigh 1234:5::1 remote-as 1 neigh 1234:5::1 send-comm both afi-vrf v1 ena afi-vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.6 255.255.255.255 ipv6 addr 4321::6 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v2 ipv4 addr 1.1.1.18 255.255.255.252 mpls enable exit int eth1.12 vrf for v2 ipv6 addr 1234:5::2 ffff:ffff:: mpls enable exit ! addrouter r7 int eth1 eth 0000.0000.7777 $6b$ $6a$ ! vrf def v1 rd 1:1 exit router pvrp4 1 vrf v1 router 4.4.4.7 red conn exit router pvrp6 1 vrf v1 router 6.6.6.7 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.7 255.255.255.255 ipv6 addr 4321::7 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.22 255.255.255.252 router pvrp4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:6::2 ffff:ffff:: router pvrp6 1 ena exit ! addrouter r8 int eth1 eth 0000.0000.8888 $7b$ $7a$ ! vrf def v1 rd 1:1 exit router eigrp4 1 vrf v1 router 4.4.4.8 as 1 red conn exit router eigrp6 1 vrf v1 router 6.6.6.8 as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.8 255.255.255.255 ipv6 addr 4321::8 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.26 255.255.255.252 router eigrp4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:7::2 ffff:ffff:: router eigrp6 1 ena exit ! addrouter r9 int eth1 eth 0000.0000.9999 $8b$ $8a$ ! vrf def v1 rd 1:1 exit router babel4 1 vrf v1 router 1111-2222-3333-0009 red conn exit router babel6 1 vrf v1 router 1111-2222-3333-0009 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.9 255.255.255.255 ipv6 addr 4321::9 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.30 255.255.255.252 router babel4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:8::2 ffff:ffff:: router babel6 1 ena exit ! addrouter r10 int eth1 eth 0000.0000.aaaa $9b$ $9a$ ! vrf def v1 rd 1:1 exit router lsrp4 1 vrf v1 router 4.4.4.10 red conn exit router lsrp6 1 vrf v1 router 6.6.6.10 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.10 255.255.255.255 ipv6 addr 4321::10 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.34 255.255.255.252 router lsrp4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:9::2 ffff:ffff:: router lsrp6 1 ena exit ! addrouter r11 int eth1 eth 0000.0000.bbbb $10b$ $10a$ ! vrf def v1 rd 1:1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.38 255.255.255.252 router olsr4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:10::2 ffff:ffff:: router olsr6 1 ena exit ! addrouter r12 int eth1 eth 0000.0000.cccc $11b$ $11a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.42 255.255.255.252 router rift4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:11::2 ffff:ffff:: router rift6 1 ena exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 2.2.2.5 vrf v1 r1 tping 100 60 2.2.2.6 vrf v1 r1 tping 100 60 2.2.2.7 vrf v1 r1 tping 100 60 2.2.2.8 vrf v1 r1 tping 100 60 2.2.2.9 vrf v1 r1 tping 100 60 2.2.2.10 vrf v1 r1 tping 100 60 2.2.2.11 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::4 vrf v1 r1 tping 100 60 4321::5 vrf v1 r1 tping 100 60 4321::6 vrf v1 r1 tping 100 60 4321::7 vrf v1 r1 tping 100 60 4321::8 vrf v1 r1 tping 100 60 4321::9 vrf v1 r1 tping 100 60 4321::10 vrf v1 r1 tping 100 60 4321::11 vrf v1 r1 tping 100 60 4321::12 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2.2.2.5 vrf v1 r2 tping 100 60 2.2.2.6 vrf v1 r2 tping 100 60 2.2.2.7 vrf v1 r2 tping 100 60 2.2.2.8 vrf v1 r2 tping 100 60 2.2.2.9 vrf v1 r2 tping 100 60 2.2.2.10 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.12 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::4 vrf v1 r2 tping 100 60 4321::5 vrf v1 r2 tping 100 60 4321::6 vrf v1 r2 tping 100 60 4321::7 vrf v1 r2 tping 100 60 4321::8 vrf v1 r2 tping 100 60 4321::9 vrf v1 r2 tping 100 60 4321::10 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::12 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.5 vrf v1 r3 tping 100 60 2.2.2.6 vrf v1 r3 tping 100 60 2.2.2.7 vrf v1 r3 tping 100 60 2.2.2.8 vrf v1 r3 tping 100 60 2.2.2.9 vrf v1 r3 tping 100 60 2.2.2.10 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::4 vrf v1 r3 tping 100 60 4321::5 vrf v1 r3 tping 100 60 4321::6 vrf v1 r3 tping 100 60 4321::7 vrf v1 r3 tping 100 60 4321::8 vrf v1 r3 tping 100 60 4321::9 vrf v1 r3 tping 100 60 4321::10 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::12 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.5 vrf v1 r4 tping 100 60 2.2.2.6 vrf v1 r4 tping 100 60 2.2.2.7 vrf v1 !r4 tping 100 60 2.2.2.8 vrf v1 !r4 tping 100 60 2.2.2.9 vrf v1 r4 tping 100 60 2.2.2.10 vrf v1 r4 tping 100 60 2.2.2.11 vrf v1 r4 tping 100 60 2.2.2.12 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 4321::3 vrf v1 r4 tping 100 60 4321::5 vrf v1 r4 tping 100 60 4321::6 vrf v1 r4 tping 100 60 4321::7 vrf v1 !r4 tping 100 60 4321::8 vrf v1 !r4 tping 100 60 4321::9 vrf v1 r4 tping 100 60 4321::10 vrf v1 r4 tping 100 60 4321::11 vrf v1 r4 tping 100 60 4321::12 vrf v1 r5 tping 100 60 2.2.2.1 vrf v1 r5 tping 100 60 2.2.2.2 vrf v1 r5 tping 100 60 2.2.2.3 vrf v1 r5 tping 100 60 2.2.2.4 vrf v1 r5 tping 100 60 2.2.2.6 vrf v1 r5 tping 100 60 2.2.2.7 vrf v1 r5 tping 100 60 2.2.2.8 vrf v1 r5 tping 100 60 2.2.2.9 vrf v1 r5 tping 100 60 2.2.2.10 vrf v1 r5 tping 100 60 2.2.2.11 vrf v1 r5 tping 100 60 2.2.2.12 vrf v1 r5 tping 100 60 4321::1 vrf v1 r5 tping 100 60 4321::2 vrf v1 r5 tping 100 60 4321::3 vrf v1 r5 tping 100 60 4321::4 vrf v1 r5 tping 100 60 4321::6 vrf v1 r5 tping 100 60 4321::7 vrf v1 r5 tping 100 60 4321::8 vrf v1 r5 tping 100 60 4321::9 vrf v1 r5 tping 100 60 4321::10 vrf v1 r5 tping 100 60 4321::11 vrf v1 r5 tping 100 60 4321::12 vrf v1 r6 tping 100 60 2.2.2.1 vrf v1 r6 tping 100 60 2.2.2.2 vrf v1 r6 tping 100 60 2.2.2.3 vrf v1 r6 tping 100 60 2.2.2.4 vrf v1 r6 tping 100 60 2.2.2.5 vrf v1 r6 tping 100 60 2.2.2.7 vrf v1 r6 tping 100 60 2.2.2.8 vrf v1 r6 tping 100 60 2.2.2.9 vrf v1 r6 tping 100 60 2.2.2.10 vrf v1 r6 tping 100 60 2.2.2.11 vrf v1 r6 tping 100 60 2.2.2.12 vrf v1 r6 tping 100 60 4321::1 vrf v1 r6 tping 100 60 4321::2 vrf v1 r6 tping 100 60 4321::3 vrf v1 r6 tping 100 60 4321::4 vrf v1 r6 tping 100 60 4321::5 vrf v1 r6 tping 100 60 4321::7 vrf v1 r6 tping 100 60 4321::8 vrf v1 r6 tping 100 60 4321::9 vrf v1 r6 tping 100 60 4321::10 vrf v1 r6 tping 100 60 4321::11 vrf v1 r6 tping 100 60 4321::12 vrf v1 r7 tping 100 60 2.2.2.1 vrf v1 r7 tping 100 60 2.2.2.2 vrf v1 r7 tping 100 60 2.2.2.3 vrf v1 r7 tping 100 60 2.2.2.4 vrf v1 r7 tping 100 60 2.2.2.5 vrf v1 r7 tping 100 60 2.2.2.6 vrf v1 r7 tping 100 60 2.2.2.8 vrf v1 r7 tping 100 60 2.2.2.9 vrf v1 r7 tping 100 60 2.2.2.10 vrf v1 r7 tping 100 60 2.2.2.11 vrf v1 r7 tping 100 60 2.2.2.12 vrf v1 r7 tping 100 60 4321::1 vrf v1 r7 tping 100 60 4321::2 vrf v1 r7 tping 100 60 4321::3 vrf v1 r7 tping 100 60 4321::4 vrf v1 r7 tping 100 60 4321::5 vrf v1 r7 tping 100 60 4321::6 vrf v1 r7 tping 100 60 4321::8 vrf v1 r7 tping 100 60 4321::9 vrf v1 r7 tping 100 60 4321::10 vrf v1 r7 tping 100 60 4321::11 vrf v1 r7 tping 100 60 4321::12 vrf v1 r8 tping 100 60 2.2.2.1 vrf v1 r8 tping 100 60 2.2.2.2 vrf v1 r8 tping 100 60 2.2.2.3 vrf v1 r8 tping 100 60 2.2.2.4 vrf v1 r8 tping 100 60 2.2.2.5 vrf v1 r8 tping 100 60 2.2.2.6 vrf v1 r8 tping 100 60 2.2.2.7 vrf v1 r8 tping 100 60 2.2.2.9 vrf v1 r8 tping 100 60 2.2.2.10 vrf v1 r8 tping 100 60 2.2.2.11 vrf v1 r8 tping 100 60 2.2.2.12 vrf v1 r8 tping 100 60 4321::1 vrf v1 r8 tping 100 60 4321::2 vrf v1 r8 tping 100 60 4321::3 vrf v1 r8 tping 100 60 4321::4 vrf v1 r8 tping 100 60 4321::5 vrf v1 r8 tping 100 60 4321::6 vrf v1 r8 tping 100 60 4321::7 vrf v1 r8 tping 100 60 4321::9 vrf v1 r8 tping 100 60 4321::10 vrf v1 r8 tping 100 60 4321::11 vrf v1 r8 tping 100 60 4321::12 vrf v1 r9 tping 100 60 2.2.2.1 vrf v1 r9 tping 100 60 2.2.2.2 vrf v1 r9 tping 100 60 2.2.2.3 vrf v1 r9 tping 100 60 2.2.2.4 vrf v1 r9 tping 100 60 2.2.2.5 vrf v1 r9 tping 100 60 2.2.2.6 vrf v1 r9 tping 100 60 2.2.2.7 vrf v1 !r9 tping 100 60 2.2.2.8 vrf v1 r9 tping 100 60 2.2.2.10 vrf v1 r9 tping 100 60 2.2.2.11 vrf v1 r9 tping 100 60 2.2.2.12 vrf v1 r9 tping 100 60 4321::1 vrf v1 r9 tping 100 60 4321::2 vrf v1 r9 tping 100 60 4321::3 vrf v1 r9 tping 100 60 4321::4 vrf v1 r9 tping 100 60 4321::5 vrf v1 r9 tping 100 60 4321::6 vrf v1 r9 tping 100 60 4321::7 vrf v1 !r9 tping 100 60 4321::8 vrf v1 r9 tping 100 60 4321::10 vrf v1 r9 tping 100 60 4321::11 vrf v1 r9 tping 100 60 2.2.2.12 vrf v1 r10 tping 100 60 2.2.2.1 vrf v1 r10 tping 100 60 2.2.2.2 vrf v1 r10 tping 100 60 2.2.2.3 vrf v1 r10 tping 100 60 2.2.2.4 vrf v1 r10 tping 100 60 2.2.2.5 vrf v1 r10 tping 100 60 2.2.2.6 vrf v1 r10 tping 100 60 2.2.2.7 vrf v1 r10 tping 100 60 2.2.2.8 vrf v1 r10 tping 100 60 2.2.2.9 vrf v1 r10 tping 100 60 2.2.2.11 vrf v1 r10 tping 100 60 2.2.2.12 vrf v1 r10 tping 100 60 4321::1 vrf v1 r10 tping 100 60 4321::2 vrf v1 r10 tping 100 60 4321::3 vrf v1 r10 tping 100 60 4321::4 vrf v1 r10 tping 100 60 4321::5 vrf v1 r10 tping 100 60 4321::6 vrf v1 r10 tping 100 60 4321::7 vrf v1 r10 tping 100 60 4321::8 vrf v1 r10 tping 100 60 4321::9 vrf v1 r10 tping 100 60 4321::11 vrf v1 r10 tping 100 60 4321::12 vrf v1 r11 tping 100 60 2.2.2.1 vrf v1 r11 tping 100 60 2.2.2.2 vrf v1 r11 tping 100 60 2.2.2.3 vrf v1 r11 tping 100 60 2.2.2.4 vrf v1 r11 tping 100 60 2.2.2.5 vrf v1 r11 tping 100 60 2.2.2.6 vrf v1 r11 tping 100 60 2.2.2.7 vrf v1 !r11 tping 100 60 2.2.2.8 vrf v1 !r11 tping 100 60 2.2.2.9 vrf v1 r11 tping 100 60 2.2.2.10 vrf v1 r11 tping 100 60 2.2.2.12 vrf v1 r11 tping 100 60 4321::1 vrf v1 r11 tping 100 60 4321::2 vrf v1 r11 tping 100 60 4321::3 vrf v1 r11 tping 100 60 4321::4 vrf v1 r11 tping 100 60 4321::5 vrf v1 r11 tping 100 60 4321::6 vrf v1 r11 tping 100 60 4321::7 vrf v1 !r11 tping 100 60 4321::8 vrf v1 !r11 tping 100 60 4321::9 vrf v1 r11 tping 100 60 4321::10 vrf v1 r11 tping 100 60 4321::12 vrf v1 r12 tping 100 60 2.2.2.1 vrf v1 r12 tping 100 60 2.2.2.2 vrf v1 r12 tping 100 60 2.2.2.3 vrf v1 r12 tping 100 60 2.2.2.4 vrf v1 r12 tping 100 60 2.2.2.5 vrf v1 r12 tping 100 60 2.2.2.6 vrf v1 r12 tping 100 60 2.2.2.7 vrf v1 r12 tping 100 60 2.2.2.8 vrf v1 r12 tping 100 60 2.2.2.9 vrf v1 r12 tping 100 60 2.2.2.11 vrf v1 r12 tping 100 60 2.2.2.12 vrf v1 r12 tping 100 60 4321::1 vrf v1 r12 tping 100 60 4321::2 vrf v1 r12 tping 100 60 4321::3 vrf v1 r12 tping 100 60 4321::4 vrf v1 r12 tping 100 60 4321::5 vrf v1 r12 tping 100 60 4321::6 vrf v1 r12 tping 100 60 4321::7 vrf v1 r12 tping 100 60 4321::8 vrf v1 r12 tping 100 60 4321::9 vrf v1 r12 tping 100 60 4321::11 vrf v1 r12 tping 100 60 4321::12 vrf v1 freeRtr-24.11.16/cfg/rout-redist19.tst000066400000000000000000000065401471627602100173200ustar00rootroot00000000000000description redistribution prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 router isis4 1 ena exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn red isis4 2 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn red isis6 2 exit router isis4 2 vrf v1 net 22.4444.0000.2222.00 red conn red isis4 1 exit router isis6 2 vrf v1 net 22.6666.0000.2222.00 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 33.4444.0000.3333.00 exit router isis6 1 vrf v1 net 33.6666.0000.3333.00 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 router isis4 1 ena exit int lo2 vrf for v1 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router isis4 1 ena r1 send exit r1 send int lo2 r1 send no router isis6 1 ena r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send int lo1 r1 send router isis4 1 ena r1 send exit r1 send int lo2 r1 send router isis6 1 ena r1 send end r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-redist20.tst000066400000000000000000000067001471627602100173060ustar00rootroot00000000000000description redistribution change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 1000 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 red conn route-map rm1 exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn red isis4 2 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn red isis6 2 exit router isis4 2 vrf v1 net 22.4444.0000.2222.00 red conn red isis4 1 exit router isis6 2 vrf v1 net 22.6666.0000.2222.00 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router isis4 1 vrf v1 net 22.4444.0000.3333.00 red conn both route-map-from rm1 exit router isis6 1 vrf v1 net 22.6666.0000.3333.00 red conn both route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 0 20 2.2.2.1 vrf v1 r3 tping 0 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 100 20 4321::3 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 4321::3 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-redist21.tst000066400000000000000000000136171471627602100173140ustar00rootroot00000000000000description redistribution prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 advertise 4321::1/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn red isis4 2 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn red isis6 2 exit router isis4 2 vrf v1 net 22.4444.0000.2222.00 red conn red isis4 1 exit router isis6 2 vrf v1 net 22.6666.0000.2222.00 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 router isis4 1 ena exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router isis6 1 ena exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router isis4 1 vrf v1 net 33.4444.0000.3333.00 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router isis6 1 vrf v1 net 33.6666.0000.3333.00 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 freeRtr-24.11.16/cfg/rout-redist22.tst000066400000000000000000000056061471627602100173140ustar00rootroot00000000000000description redistribution with mobile addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red mobile4 1 just lo1 just lo2 just lo3 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red mobile6 1 just lo1 just lo2 just lo3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: exit router mobile4 1 vrf v1 red conn exit router mobile6 1 vrf v1 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist23.tst000066400000000000000000000056241471627602100173150ustar00rootroot00000000000000description redistribution with deaggr addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red deaggr4 1 just lo1 just lo2 just lo3 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red deaggr6 1 just lo1 just lo2 just lo3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: exit router deaggr4 1 vrf v1 just eth2.11 exit router deaggr6 1 vrf v1 just eth2.12 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 !r3 tping 100 40 2.2.2.1 vrf v1 !r3 tping 100 40 2.2.2.11 vrf v1 !r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 !r3 tping 100 40 4321::1 vrf v1 !r3 tping 100 40 4321::11 vrf v1 !r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist24.tst000066400000000000000000000034741471627602100173170ustar00rootroot00000000000000description conditional redistribution with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit track t force up exit route-map rm1 sequence 10 act perm match track t exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn route-map rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send track t r1 send force down r1 send exit r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r1 send conf t r1 send track t r1 send force up r1 send exit r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-redist25.tst000066400000000000000000000035101471627602100173070ustar00rootroot00000000000000description conditional redistribution with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit track t force up exit route-policy rm1 if track t pass else drop enif exit router isis4 1 vrf v1 net 11.4444.0000.1111.00 red conn route-policy rm1 exit router isis6 1 vrf v1 net 11.6666.0000.1111.00 red conn route-policy rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 exit int lo2 vrf for v1 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int lo2 vrf for v1 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 send conf t r1 send track t r1 send force down r1 send exit r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r1 send conf t r1 send track t r1 send force up r1 send exit r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 freeRtr-24.11.16/cfg/rout-redist26.tst000066400000000000000000000040121471627602100173060ustar00rootroot00000000000000description redistribution with interfaces addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 justadvert lo1 justadvert lo3 exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 justadvert lo1 justadvert lo3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 justadvert lo1 justadvert lo3 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 justadvert lo1 justadvert lo3 exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 0 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 0 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-redist27.tst000066400000000000000000000035541471627602100173210ustar00rootroot00000000000000description redistribution with metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 red conn metric 1000 exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 red conn metric 1000 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn both route-map-from rm1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn both route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 send conf t r1 send router isis4 1 r1 send red conn metric 3000 r1 send exit r1 send router isis6 1 r1 send red conn metric 3000 r1 send exit r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r1 send conf t r1 send router isis4 1 r1 send red conn metric 5000 r1 send exit r1 send router isis6 1 r1 send red conn metric 5000 r1 send exit r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-redist28.tst000066400000000000000000000104131471627602100173120ustar00rootroot00000000000000description redistribution filtering with hierarchical prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4a sequence 10 permit 2.2.2.8/29 le 32 exit prefix-list p6a sequence 10 permit 4321::10/124 le 128 exit prefix-list p4b sequence 10 evaluate deny p4a sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6b sequence 10 evaluate deny p6a sequence 20 permit ::/0 le 128 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn prefix-list p4b red isis4 2 prefix-list p4b exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn prefix-list p6b red isis6 2 prefix-list p6b exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn prefix-list p4b red isis4 1 prefix-list p4b exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn prefix-list p6b red isis6 1 prefix-list p6b exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist29.tst000066400000000000000000000100541471627602100173140ustar00rootroot00000000000000description redistribution with ouni bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red bgp6 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red bgp4 1 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 1 router 4.4.4.2 neigh 1.1.1.6 remote-as 2 afi-other ena no afi-other vpn afi-other red conn afi-other red isis6 1 exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 1 router 6.6.6.2 neigh 1234:2::2 remote-as 2 afi-other ena no afi-other vpn afi-other red conn afi-other red isis4 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address ouni local-as 2 router 4.4.4.3 neigh 1.1.1.5 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address ouni local-as 2 router 6.6.6.3 neigh 1234:2::1 remote-as 1 afi-other ena no afi-other vpn afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 2.2.2.23 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::13 vrf v1 r2 tping 100 60 4321::23 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.21 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 2.2.2.22 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::21 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::12 vrf v1 r3 tping 100 60 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist30.tst000066400000000000000000000077401471627602100173140ustar00rootroot00000000000000description redistribution with bgp labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red bgp4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red bgp6 1 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 1 router 4.4.4.2 neigh 1.1.1.6 remote-as 2 red conn red isis4 1 exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 1 router 6.6.6.2 neigh 1234:2::2 remote-as 2 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 mpls enable exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address lab local-as 2 router 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address lab local-as 2 router 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 mpls enable exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 2.2.2.23 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::13 vrf v1 r2 tping 100 60 4321::23 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.21 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 2.2.2.22 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::21 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::12 vrf v1 r3 tping 100 60 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist31.tst000066400000000000000000000077761471627602100173260ustar00rootroot00000000000000description redistribution with olab bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red bgp6 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red bgp4 1 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 1 router 4.4.4.2 neigh 1.1.1.6 remote-as 2 afi-other ena afi-other red conn afi-other red isis6 1 exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 1 router 6.6.6.2 neigh 1234:2::2 remote-as 2 afi-other ena afi-other red conn afi-other red isis4 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address olab local-as 2 router 4.4.4.3 neigh 1.1.1.5 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address olab local-as 2 router 6.6.6.3 neigh 1234:2::1 remote-as 1 afi-other ena afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 2.2.2.23 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::13 vrf v1 r2 tping 100 60 4321::23 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.21 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 2.2.2.22 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::21 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::12 vrf v1 r3 tping 100 60 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist32.tst000066400000000000000000000105731471627602100173140ustar00rootroot00000000000000description vrf route limit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.32 255.255.255.255 ipv6 addr 4321::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v1 ipv4 addr 2.2.2.42 255.255.255.255 ipv6 addr 4321::42 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v1 ipv4 addr 2.2.2.52 255.255.255.255 ipv6 addr 4321::52 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo6 vrf for v1 ipv4 addr 2.2.2.62 255.255.255.255 ipv6 addr 4321::62 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo7 vrf for v1 ipv4 addr 2.2.2.72 255.255.255.255 ipv6 addr 4321::72 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo8 vrf for v1 ipv4 addr 2.2.2.82 255.255.255.255 ipv6 addr 4321::82 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo9 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.255 ipv6 addr 9999::9 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r1 tping 100 60 9.9.9.9 vrf v1 r1 tping 100 60 9999::9 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 r1 send conf t r1 send vrf def v1 r1 send route4lim 5 5 5 5 r1 send route6lim 5 5 5 5 r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 9.9.9.9 vrf v1 r1 tping 0 60 9999::9 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r1 send conf t r1 send vrf def v1 r1 send no route4lim 5 5 5 5 r1 send no route6lim 5 5 5 5 r1 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r1 tping 100 60 9.9.9.9 vrf v1 r1 tping 100 60 9999::9 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-redist33.tst000066400000000000000000000077441471627602100173230ustar00rootroot00000000000000description redistribution by prefix addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn readvertise 2.2.2.3/32 readvertise 2.2.2.23/32 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn readvertise 4321::3/128 readvertise 4321::23/128 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn readvertise 2.2.2.1/32 readvertise 2.2.2.21/32 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn readvertise 4321::1/128 readvertise 4321::21/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 100 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 100 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 100 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist34.tst000066400000000000000000000035241471627602100173140ustar00rootroot00000000000000description redistribution with tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 22.4444.0000.1111.00 red conn tag 1000 exit router isis6 1 vrf v1 net 22.6666.0000.1111.00 red conn tag 1000 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router isis4 1 vrf v1 net 22.4444.0000.2222.00 red conn both route-map-from rm1 exit router isis6 1 vrf v1 net 22.6666.0000.2222.00 red conn both route-map-from rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 send conf t r1 send router isis4 1 r1 send red conn tag 3000 r1 send exit r1 send router isis6 1 r1 send red conn tag 3000 r1 send exit r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 0 20 2.2.2.1 vrf v1 r2 tping 0 20 4321::1 vrf v1 r1 send conf t r1 send router isis4 1 r1 send red conn tag 5000 r1 send exit r1 send router isis6 1 r1 send red conn tag 5000 r1 send exit r1 send end r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 4321::1 vrf v1 freeRtr-24.11.16/cfg/rout-redist35.tst000066400000000000000000000102441471627602100173120ustar00rootroot00000000000000description redistribution filtering with prefixlist in routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 deny 2.2.2.8/29 le 32 permit 0.0.0.0/0 le 32 exit prefix-list p6 deny 4321::10/124 le 128 permit ::/0 le 128 exit route-map h4 match prefix-list p4 exit route-map h6 match prefix-list p6 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-map h4 red isis4 2 route-map h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-map h6 red isis6 2 route-map h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-map h4 red isis4 1 route-map h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-map h6 red isis6 1 route-map h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist36.tst000066400000000000000000000103311471627602100173100ustar00rootroot00000000000000description redistribution filtering with prefixlist in routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit prefix-list p4 deny 2.2.2.8/29 le 32 permit 0.0.0.0/0 le 32 exit prefix-list p6 deny 4321::10/124 le 128 permit ::/0 le 128 exit route-policy h4 if prefix-list p4 pass enif exit route-policy h6 if prefix-list p6 pass enif exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-policy h4 red isis4 2 route-policy h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-policy h6 red isis6 2 route-policy h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-policy h4 red isis4 1 route-policy h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-policy h6 red isis6 1 route-policy h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist37.tst000066400000000000000000000104021471627602100173100ustar00rootroot00000000000000description redistribution filtering with accesslist in routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list p4 deny all 2.2.2.8 255.255.255.248 all 0.0.0.0 0.0.0.0 all permit all any all any all exit access-list p6 deny all 4321::10 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 all :: :: all permit all any all any all exit route-map h4 match access-list p4 exit route-map h6 match access-list p6 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-map h4 red isis4 2 route-map h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-map h6 red isis6 2 route-map h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-map h4 red isis4 1 route-map h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-map h6 red isis6 1 route-map h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist38.tst000066400000000000000000000104671471627602100173240ustar00rootroot00000000000000description redistribution filtering with accesslist in routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list p4 deny all 2.2.2.8 255.255.255.248 all 0.0.0.0 0.0.0.0 all permit all any all any all exit access-list p6 deny all 4321::10 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0 all :: :: all permit all any all any all exit route-policy h4 if access-list p4 pass enif exit route-policy h6 if access-list p6 pass enif exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-policy h4 red isis4 2 route-policy h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-policy h6 red isis6 2 route-policy h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-policy h4 red isis4 1 route-policy h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-policy h6 red isis6 1 route-policy h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist39.tst000066400000000000000000000102751471627602100173220ustar00rootroot00000000000000description redistribution filtering with routepolicy in routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.8/29 le 32 drop else pass enif exit route-policy p6 if network 4321::10/124 le 128 drop else pass enif exit route-map h4 match route-policy p4 exit route-map h6 match route-policy p6 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-map h4 red isis4 2 route-map h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-map h6 red isis6 2 route-map h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-map h4 red isis4 1 route-map h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-map h6 red isis6 1 route-map h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist40.tst000066400000000000000000000105131471627602100173050ustar00rootroot00000000000000description redistribution filtering with routemap in routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.8/29 le 32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::10/124 le 128 sequence 20 act perm match network ::/0 le 128 exit route-policy h4 if route-map p4 pass enif exit route-policy h6 if route-map p6 pass enif exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn route-policy h4 red isis4 2 route-policy h4 exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn route-policy h6 red isis6 2 route-policy h6 exit router isis4 2 vrf v1 net 48.4444.2222.2222.00 is-type level2 red conn route-policy h4 red isis4 1 route-policy h4 exit router isis6 2 vrf v1 net 48.6666.2222.2222.00 is-type level2 red conn route-policy h6 red isis6 1 route-policy h6 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router isis4 2 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router isis6 2 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.3333.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.3333.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router isis6 1 ena exit ! r2 tping 100 20 2.2.2.1 vrf v1 r2 tping 100 20 2.2.2.11 vrf v1 r2 tping 100 20 2.2.2.21 vrf v1 r2 tping 100 20 2.2.2.3 vrf v1 r2 tping 100 20 2.2.2.13 vrf v1 r2 tping 100 20 2.2.2.23 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 tping 100 20 4321::11 vrf v1 r2 tping 100 20 4321::21 vrf v1 r2 tping 100 20 4321::3 vrf v1 r2 tping 100 20 4321::13 vrf v1 r2 tping 100 20 4321::23 vrf v1 r1 tping 100 20 2.2.2.2 vrf v1 r1 tping 0 20 2.2.2.12 vrf v1 r1 tping 100 20 2.2.2.22 vrf v1 r1 tping 100 20 2.2.2.3 vrf v1 r1 tping 0 20 2.2.2.13 vrf v1 r1 tping 100 20 2.2.2.23 vrf v1 r1 tping 100 20 4321::2 vrf v1 r1 tping 0 20 4321::12 vrf v1 r1 tping 100 20 4321::22 vrf v1 r1 tping 100 20 4321::3 vrf v1 r1 tping 0 20 4321::13 vrf v1 r1 tping 100 20 4321::23 vrf v1 r3 tping 100 20 2.2.2.1 vrf v1 r3 tping 0 20 2.2.2.11 vrf v1 r3 tping 100 20 2.2.2.21 vrf v1 r3 tping 100 20 2.2.2.2 vrf v1 r3 tping 0 20 2.2.2.12 vrf v1 r3 tping 100 20 2.2.2.22 vrf v1 r3 tping 100 20 4321::1 vrf v1 r3 tping 0 20 4321::11 vrf v1 r3 tping 100 20 4321::21 vrf v1 r3 tping 100 20 4321::2 vrf v1 r3 tping 0 20 4321::12 vrf v1 r3 tping 100 20 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist41.tst000066400000000000000000000077351471627602100173220ustar00rootroot00000000000000description redistribution with bgp ctp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red bgp4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red bgp6 1 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 1 router 4.4.4.2 neigh 1.1.1.6 remote-as 2 red conn red isis4 1 exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 1 router 6.6.6.2 neigh 1234:2::2 remote-as 2 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 mpls enable exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address ctp local-as 2 router 4.4.4.3 neigh 1.1.1.5 remote-as 1 red conn exit router bgp6 1 vrf v1 no safe-ebgp address ctp local-as 2 router 6.6.6.3 neigh 1234:2::1 remote-as 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 mpls enable exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 2.2.2.23 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::13 vrf v1 r2 tping 100 60 4321::23 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.21 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 2.2.2.22 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::21 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::12 vrf v1 r3 tping 100 60 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist42.tst000066400000000000000000000077761471627602100173300ustar00rootroot00000000000000description redistribution with octp bgp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red bgp6 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red bgp4 1 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 1 router 4.4.4.2 neigh 1.1.1.6 remote-as 2 afi-other ena afi-other red conn afi-other red isis6 1 exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 1 router 6.6.6.2 neigh 1234:2::2 remote-as 2 afi-other ena afi-other red conn afi-other red isis4 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: mpls enable exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router bgp4 1 vrf v1 no safe-ebgp address octp local-as 2 router 4.4.4.3 neigh 1.1.1.5 remote-as 1 afi-other ena afi-other red conn exit router bgp6 1 vrf v1 no safe-ebgp address octp local-as 2 router 6.6.6.3 neigh 1234:2::1 remote-as 1 afi-other ena afi-other red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: mpls enable exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 2.2.2.13 vrf v1 r1 tping 100 60 2.2.2.23 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 4321::13 vrf v1 r1 tping 100 60 4321::23 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.13 vrf v1 r2 tping 100 60 2.2.2.23 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 4321::13 vrf v1 r2 tping 100 60 4321::23 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 2.2.2.11 vrf v1 r3 tping 100 60 2.2.2.21 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.12 vrf v1 r3 tping 100 60 2.2.2.22 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 4321::11 vrf v1 r3 tping 100 60 4321::21 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 4321::12 vrf v1 r3 tping 100 60 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-redist43.tst000066400000000000000000000107261471627602100173160ustar00rootroot00000000000000description redistribution route limit addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.1111.2222.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.1111.2222.00 is-type level2 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.32 255.255.255.255 ipv6 addr 4321::32 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo4 vrf for v1 ipv4 addr 2.2.2.42 255.255.255.255 ipv6 addr 4321::42 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo5 vrf for v1 ipv4 addr 2.2.2.52 255.255.255.255 ipv6 addr 4321::52 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo6 vrf for v1 ipv4 addr 2.2.2.62 255.255.255.255 ipv6 addr 4321::62 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo7 vrf for v1 ipv4 addr 2.2.2.72 255.255.255.255 ipv6 addr 4321::72 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo8 vrf for v1 ipv4 addr 2.2.2.82 255.255.255.255 ipv6 addr 4321::82 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo9 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.255 ipv6 addr 9999::9 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r1 tping 100 60 9.9.9.9 vrf v1 r1 tping 100 60 9999::9 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 r2 send conf t r2 send router isis4 1 r2 send red conn limit 5 r2 send exit r2 send router isis6 1 r2 send red conn limit 5 r2 send exit r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 0 60 9.9.9.9 vrf v1 r1 tping 0 60 9999::9 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 send conf t r2 send router isis4 1 r2 send red conn r2 send exit r2 send router isis6 1 r2 send red conn r2 send exit r2 send end r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.12 vrf v1 r1 tping 100 60 4321::12 vrf v1 r1 tping 100 60 2.2.2.22 vrf v1 r1 tping 100 60 4321::22 vrf v1 r1 tping 100 60 2.2.2.32 vrf v1 r1 tping 100 60 4321::32 vrf v1 r1 tping 100 60 2.2.2.42 vrf v1 r1 tping 100 60 4321::42 vrf v1 r1 tping 100 60 2.2.2.52 vrf v1 r1 tping 100 60 4321::52 vrf v1 r1 tping 100 60 2.2.2.62 vrf v1 r1 tping 100 60 4321::62 vrf v1 r1 tping 100 60 2.2.2.72 vrf v1 r1 tping 100 60 4321::72 vrf v1 r1 tping 100 60 2.2.2.82 vrf v1 r1 tping 100 60 4321::82 vrf v1 r1 tping 100 60 9.9.9.9 vrf v1 r1 tping 100 60 9999::9 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.11 vrf v1 r2 tping 100 60 4321::11 vrf v1 r2 tping 100 60 2.2.2.21 vrf v1 r2 tping 100 60 4321::21 vrf v1 freeRtr-24.11.16/cfg/rout-redist44.tst000066400000000000000000000073341471627602100173200ustar00rootroot00000000000000description redistribution with rift addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.1111.00 is-type level2 red conn exit router isis6 1 vrf v1 net 48.6666.0000.1111.00 is-type level2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::1 ffff:ffff:: router isis6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router isis4 1 vrf v1 net 48.4444.0000.2222.00 is-type level2 red conn red rift4 1 exit router isis6 1 vrf v1 net 48.6666.0000.2222.00 is-type level2 red conn red rift6 1 exit router rift4 1 vrf v1 router 41 red conn red isis4 1 exit router rift6 1 vrf v1 router 61 red conn red isis6 1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 router isis4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:1::2 ffff:ffff:: router isis6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 router rift4 1 ena exit int eth2.12 vrf for v1 ipv6 addr 1234:2::1 ffff:ffff:: router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 router rift4 1 ena exit int eth1.12 vrf for v1 ipv6 addr 1234:2::2 ffff:ffff:: router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.13 vrf v1 r1 tping 100 40 2.2.2.23 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::12 vrf v1 r1 tping 100 40 4321::22 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::13 vrf v1 r1 tping 100 40 4321::23 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.13 vrf v1 r2 tping 100 40 2.2.2.23 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::13 vrf v1 r2 tping 100 40 4321::23 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.11 vrf v1 r3 tping 100 40 2.2.2.21 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.12 vrf v1 r3 tping 100 40 2.2.2.22 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::11 vrf v1 r3 tping 100 40 4321::21 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::12 vrf v1 r3 tping 100 40 4321::22 vrf v1 freeRtr-24.11.16/cfg/rout-rift01.tst000066400000000000000000000023651471627602100167620ustar00rootroot00000000000000description rift point2point connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift02.tst000066400000000000000000000071141471627602100167600ustar00rootroot00000000000000description rift point2point chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 red conn exit router rift6 1 vrf v1 router 63 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 44 red conn exit router rift6 1 vrf v1 router 64 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-rift.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here is the ipv4 tree:
show:4
here is the ipv6 tree:
show:5
here are the ipv4 routes:
show:6
here are the ipv6 routes:
show:7
! freeRtr-24.11.16/cfg/rout-rift03.tst000066400000000000000000000063321471627602100167620ustar00rootroot00000000000000description rift metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 exit router rift6 1 vrf v1 router 61 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift4 1 metric 100 router rift6 1 ena router rift6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 exit router rift6 1 vrf v1 router 63 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit server telnet tel vrf v1 port 666 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.111 vrf v1 r2 tping 100 40 4321::111 vrf v1 r2 tping 0 40 2.2.2.222 vrf v1 r2 tping 0 40 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.222 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift04.tst000066400000000000000000000033041471627602100167570ustar00rootroot00000000000000description rift address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 exit router rift6 1 vrf v1 router 61 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift4 1 suppress router rift6 1 ena router rift6 1 passiv router rift6 1 suppress exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 exit router rift6 1 vrf v1 router 62 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift05.tst000066400000000000000000000042771471627602100167720ustar00rootroot00000000000000description rift route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit router rift4 1 vrf v1 router 41 red conn prefix-list p4 exit router rift6 1 vrf v1 router 61 red conn prefix-list p6 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift06.tst000066400000000000000000000044011471627602100167600ustar00rootroot00000000000000description rift route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit router rift4 1 vrf v1 router 41 route-map p4 red conn exit router rift6 1 vrf v1 router 61 route-map p6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift07.tst000066400000000000000000000042501471627602100167630ustar00rootroot00000000000000description rift route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit router rift4 1 vrf v1 router 41 route-policy p4 red conn exit router rift6 1 vrf v1 router 61 route-policy p6 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 2.2.2.12 vrf v1 r1 tping 0 40 4321::12 vrf v1 r1 tping 100 40 2.2.2.22 vrf v1 r1 tping 100 40 4321::22 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r2 tping 100 40 2.2.2.21 vrf v1 r2 tping 100 40 4321::21 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift08.tst000066400000000000000000000044511471627602100167670ustar00rootroot00000000000000description rift tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router rift4 1 vrf v1 router 41 red conn route-map rm1 exit router rift6 1 vrf v1 router 61 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny match tag 1234 sequence 20 act perm exit router rift4 1 vrf v1 router 42 route-map rm1 red conn exit router rift6 1 vrf v1 router 62 route-map rm1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router rift4 1 vrf v1 router 43 red conn route-map rm1 exit router rift6 1 vrf v1 router 63 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 0 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 0 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift09.tst000066400000000000000000000023761471627602100167740ustar00rootroot00000000000000description rift default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 default exit router rift6 1 vrf v1 router 61 default exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift10.tst000066400000000000000000000045711471627602100167630ustar00rootroot00000000000000description rift with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router rift4 1 ena router rift4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router rift6 1 ena router rift6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router rift4 1 ena router rift4 1 bfd router rift4 1 metric 100 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router rift6 1 ena router rift6 1 bfd router rift6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router rift4 1 ena router rift4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router rift6 1 ena router rift6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router rift4 1 ena router rift4 1 bfd router rift4 1 metric 100 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router rift6 1 ena router rift6 1 bfd router rift6 1 metric 100 exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift11.tst000066400000000000000000000027021471627602100167560ustar00rootroot00000000000000description rift peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router rift4 1 ena router rift6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: temp temp1 exit int temp1 router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift12.tst000066400000000000000000000033551471627602100167640ustar00rootroot00000000000000description rift prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 exit router rift6 1 vrf v1 router 61 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 exit router rift6 1 vrf v1 router 62 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send no router rift4 1 ena r1 send no router rift6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r1 send conf t r1 send int lo1 r1 send router rift4 1 ena r1 send router rift6 1 ena r1 send end r1 tping 100 40 2.2.2.2 vrf v1 r2 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift13.tst000066400000000000000000000064121471627602100167620ustar00rootroot00000000000000description rift change in metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 1000 exit router rift4 1 vrf v1 router 41 red conn route-map rm1 exit router rift6 1 vrf v1 router 61 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match metric 2000-4000 sequence 20 act perm exit router rift4 1 vrf v1 router 42 red conn route-map rm1 exit router rift6 1 vrf v1 router 62 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 red conn exit router rift6 1 vrf v1 router 63 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift14.tst000066400000000000000000000063731471627602100167710ustar00rootroot00000000000000description rift change in tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1000 exit router rift4 1 vrf v1 router 41 red conn route-map rm1 exit router rift6 1 vrf v1 router 61 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit route-map rm1 sequence 10 act deny sequence 10 match tag 2000-4000 sequence 20 act perm exit router rift4 1 vrf v1 router 42 red conn route-map rm1 exit router rift6 1 vrf v1 router 62 red conn route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 red conn exit router rift6 1 vrf v1 router 63 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 3000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 0 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 0 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set tag 5000 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift15.tst000066400000000000000000000041541471627602100167650ustar00rootroot00000000000000description rift auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router rift4 1 vrf v1 router 41 red conn automesh all exit router rift6 1 vrf v1 router 61 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router rift4 1 ena router rift6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router rift4 1 vrf v1 router 42 red conn automesh all exit router rift6 1 vrf v1 router 62 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router rift4 1 ena router rift6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 40 9.9.9.2 vrf v1 r1 tping 100 40 9999::2 vrf v1 r2 tping 100 40 9.9.9.1 vrf v1 r2 tping 100 40 9999::1 vrf v1 r1 tping 0 40 2.2.2.2 vrf v1 r1 tping 0 40 4321::2 vrf v1 r2 tping 0 40 2.2.2.1 vrf v1 r2 tping 0 40 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift16.tst000066400000000000000000000055551471627602100167740ustar00rootroot00000000000000description rift triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rift4 1 ena router rift4 1 metric 100 router rift6 1 ena router rift6 1 metric 100 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 red conn exit router rift6 1 vrf v1 router 63 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rift4 1 ena router rift4 1 metric 100 router rift6 1 ena router rift6 1 metric 100 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift17.tst000066400000000000000000000133511471627602100167660ustar00rootroot00000000000000description rift prefix movement addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 10 exit router rift4 1 vrf v1 router 41 advertise 2.2.2.1/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router rift6 1 vrf v1 router 61 advertise 4321::1/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 advertise 2.2.2.2/32 exit router rift6 1 vrf v1 router 62 advertise 4321::2/128 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set metric 20 exit router rift4 1 vrf v1 router 43 advertise 2.2.2.3/32 route-map rm1 advertise 2.2.2.222/32 route-map rm1 exit router rift6 1 vrf v1 router 63 advertise 4321::3/128 route-map rm1 advertise 4321::222/128 route-map rm1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo3 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 30 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.103 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.103 vrf v1 r1 send conf t r1 send route-map rm1 r1 send set metric 10 r1 send end r1 send clear ipv4 route v1 r1 send clear ipv6 route v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 2.2.2.222 vrf v1 r1 tping 100 40 4321::222 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 2.2.2.222 vrf v1 r2 tping 100 40 4321::222 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 2.2.2.3 vrf v1 r3 tping 100 40 4321::3 vrf v1 r3 tping 100 40 2.2.2.222 vrf v1 r3 tping 100 40 4321::222 vrf v1 r2 tping 0 40 2.2.2.101 vrf v1 r2 tping 0 40 4321::101 vrf v1 r2 tping 0 40 2.2.2.103 vrf v1 r2 tping 0 40 4321::103 vrf v1 r2 send telnet 2.2.2.222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 send telnet 4321::222 666 vrf v1 r2 tping 100 40 2.2.2.101 vrf v1 r2 send exit r2 read closed r2 tping 0 40 2.2.2.101 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift18.tst000066400000000000000000000050751471627602100167730ustar00rootroot00000000000000description rift autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router rift4 1 ena router rift6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute rift4 1 2.2.2.2 9.9.8.2 ipv6 autoroute rift6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router rift4 1 ena router rift6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute rift4 1 2.2.2.1 9.9.8.1 ipv6 autoroute rift6 1 4321::1 9998::1 exit ! r1 tping 100 40 2.2.2.12 vrf v1 r1 tping 100 40 4321::12 vrf v1 r2 tping 100 40 2.2.2.11 vrf v1 r2 tping 100 40 4321::11 vrf v1 r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 4321::2 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 4321::1 vrf v1 r1 tping 0 40 9.9.9.2 vrf v1 r1 tping 0 40 9999::2 vrf v1 r2 tping 0 40 9.9.9.1 vrf v1 r2 tping 0 40 9999::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift19.tst000066400000000000000000000031561471627602100167720ustar00rootroot00000000000000description rift default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router rift4 1 vrf v1 router 41 suppress justadv lo1 exit router rift6 1 vrf v1 router 61 suppress justadv lo1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 exit router rift6 1 vrf v1 router 62 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 0 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 0 40 4321::3 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift20.tst000066400000000000000000000032421471627602100167560ustar00rootroot00000000000000description rift address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router rift4 1 vrf v1 router 41 suppress justadv lo1 exit router rift6 1 vrf v1 router 61 suppress justadv lo1 exit int lo2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift6 1 ena router rift6 1 passiv exit int lo3 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rift4 1 ena router rift4 1 passiv router rift4 1 unsuppress router rift6 1 ena router rift6 1 passiv router rift6 1 unsuppress exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 exit router rift6 1 vrf v1 router 62 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 0 40 2.2.2.2 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 0 40 4321::2 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift21.tst000066400000000000000000000024761471627602100167670ustar00rootroot00000000000000description rift over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift22.tst000066400000000000000000000024621471627602100167630ustar00rootroot00000000000000description rift point2point connection with bidir check addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn spf-bidir exit router rift6 1 vrf v1 router 61 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn spf-bidir exit router rift6 1 vrf v1 router 62 red conn spf-bidir exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift23.tst000066400000000000000000000067141471627602100167700ustar00rootroot00000000000000description rift ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn spf-ecmp ecmp exit router rift6 1 vrf v1 router 61 red conn spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn spf-ecmp ecmp exit router rift6 1 vrf v1 router 62 red conn spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 red conn spf-ecmp ecmp exit router rift6 1 vrf v1 router 63 red conn spf-ecmp ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift24.tst000066400000000000000000000047631471627602100167730ustar00rootroot00000000000000description rift with bgp linkstate addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router rift4 1 vrf v1 router 41 justadvert lo1 exit router rift6 1 vrf v1 router 61 justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 linkstate afi-link rift4 1 0 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 1 router-id 6.6.6.1 neigh 1234::2 remote-as 2 neigh 1234::2 linkstate afi-link rift6 1 0 justadvert lo2 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit router rift4 1 vrf v1 router 42 justadvert lo1 exit router rift6 1 vrf v1 router 62 justadvert lo1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift6 1 ena exit router bgp4 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.1 linkstate afi-link rift4 1 0 justadvert lo2 exit router bgp6 1 vrf v1 no safe-ebgp address uni linkstate local-as 2 router-id 6.6.6.2 neigh 1234::1 remote-as 1 neigh 1234::1 linkstate afi-link rift6 1 0 justadvert lo2 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r1 tping 100 20 2.2.2.102 vrf v1 r2 tping 100 20 2.2.2.101 vrf v1 r1 tping 100 20 4321::102 vrf v1 r2 tping 100 20 4321::101 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 r1 output show ipv4 bgp 1 uni dat r1 output show ipv6 bgp 1 uni dat r1 output show ipv4 bgp 1 links dat r1 output show ipv6 bgp 1 links dat freeRtr-24.11.16/cfg/rout-rift25.tst000066400000000000000000000061741471627602100167720ustar00rootroot00000000000000description rift inter level chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 level 1 red conn exit router rift6 1 vrf v1 router 61 level 1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 level 2 red conn exit router rift6 1 vrf v1 router 62 level 2 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 43 level 3 red conn exit router rift6 1 vrf v1 router 63 level 3 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 44 level 4 red conn exit router rift6 1 vrf v1 router 64 level 4 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rift4 1 ena router rift6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 r1 tping 100 40 2.2.2.3 vrf v1 r1 tping 100 40 2.2.2.4 vrf v1 r1 tping 100 40 4321::2 vrf v1 r1 tping 100 40 4321::3 vrf v1 r1 tping 100 40 4321::4 vrf v1 r2 tping 100 40 2.2.2.1 vrf v1 r2 tping 100 40 2.2.2.3 vrf v1 r2 tping 100 40 2.2.2.4 vrf v1 r2 tping 100 40 4321::1 vrf v1 r2 tping 100 40 4321::3 vrf v1 r2 tping 100 40 4321::4 vrf v1 r3 tping 100 40 2.2.2.1 vrf v1 r3 tping 100 40 2.2.2.2 vrf v1 r3 tping 100 40 2.2.2.4 vrf v1 r3 tping 100 40 4321::1 vrf v1 r3 tping 100 40 4321::2 vrf v1 r3 tping 100 40 4321::4 vrf v1 r4 tping 100 40 2.2.2.1 vrf v1 r4 tping 100 40 2.2.2.2 vrf v1 r4 tping 100 40 2.2.2.3 vrf v1 r4 tping 100 40 4321::1 vrf v1 r4 tping 100 40 4321::2 vrf v1 r4 tping 100 40 4321::3 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift26.tst000066400000000000000000000036731471627602100167740ustar00rootroot00000000000000description rift dynamic icmp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift4 1 metric 100 router rift6 1 ena router rift6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router rift4 1 ena router rift4 1 metric 1 router rift6 1 ena router rift6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift4 1 metric 2 router rift4 1 dynamic-met mod icm router rift6 1 ena router rift6 1 metric 2 router rift6 1 dynamic-met mod icm exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router rift4 1 ena router rift4 1 metric 200 router rift4 1 dynamic-met mod icm router rift6 1 ena router rift6 1 metric 200 router rift6 1 dynamic-met mod icm exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift27.tst000066400000000000000000000037261471627602100167740ustar00rootroot00000000000000description rift dynamic udp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server echo e vrf v1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift4 1 metric 100 router rift6 1 ena router rift6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router rift4 1 ena router rift4 1 metric 1 router rift6 1 ena router rift6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift4 1 metric 2 router rift4 1 dynamic-met mod udp router rift6 1 ena router rift6 1 metric 2 router rift6 1 dynamic-met mod udp exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router rift4 1 ena router rift4 1 metric 200 router rift4 1 dynamic-met mod udp router rift6 1 ena router rift6 1 metric 200 router rift6 1 dynamic-met mod udp exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift28.tst000066400000000000000000000037311471627602100167710ustar00rootroot00000000000000description rift dynamic twamp metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit server twamp t vrf v1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift4 1 metric 100 router rift6 1 ena router rift6 1 metric 100 exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.0 ipv6 addr 1235::1 ffff:: router rift4 1 ena router rift4 1 metric 1 router rift6 1 ena router rift6 1 metric 1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift4 1 metric 2 router rift4 1 dynamic-met mod twa router rift6 1 ena router rift6 1 metric 2 router rift6 1 dynamic-met mod twa exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.0 ipv6 addr 1235::2 ffff:: router rift4 1 ena router rift4 1 metric 200 router rift4 1 dynamic-met mod twa router rift6 1 ena router rift6 1 metric 200 router rift6 1 dynamic-met mod twa exit ! r1 tping 100 20 2.2.2.2 vrf v1 sou lo1 r2 tping 100 20 2.2.2.1 vrf v1 sou lo1 r1 tping 100 20 4321::2 vrf v1 sou lo1 r2 tping 100 20 4321::1 vrf v1 sou lo1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rift29.tst000066400000000000000000000026211471627602100167670ustar00rootroot00000000000000description rift with pmtud addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 41 red conn exit router rift6 1 vrf v1 router 61 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rift4 1 ena router rift6 1 ena router rift4 1 ipinfo pmtud 512 1024 666 router rift6 1 ipinfo pmtud 512 1024 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rift4 1 vrf v1 router 42 red conn exit router rift6 1 vrf v1 router 62 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rift4 1 ena router rift6 1 ena router rift4 1 ipinfo pmtud 512 1024 666 router rift6 1 ipinfo pmtud 512 1024 666 exit ! r1 tping 100 20 2.2.2.2 vrf v1 r2 tping 100 20 2.2.2.1 vrf v1 r1 tping 100 20 4321::2 vrf v1 r2 tping 100 20 4321::1 vrf v1 r2 output show ipv4 rift 1 nei r2 output show ipv6 rift 1 nei r2 output show ipv4 rift 1 dat r2 output show ipv6 rift 1 dat r2 output show ipv4 rift 1 tre n r2 output show ipv6 rift 1 tre n r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip01.tst000066400000000000000000000054111471627602100166030ustar00rootroot00000000000000description rip on one subnet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit bridge 1 mac-learn exit int eth1 bridge-gr 1 exit int eth2 bridge-gr 1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int bvi1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.4 255.255.255.0 ipv6 addr 1234::4 ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 2.2.2.4 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 4321::4 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 2.2.2.4 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r2 tping 100 130 4321::4 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 2.2.2.4 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r3 tping 100 130 4321::4 vrf v1 r4 tping 100 130 2.2.2.1 vrf v1 r4 tping 100 130 2.2.2.2 vrf v1 r4 tping 100 130 2.2.2.3 vrf v1 r4 tping 100 130 4321::1 vrf v1 r4 tping 100 130 4321::2 vrf v1 r4 tping 100 130 4321::3 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip02.tst000066400000000000000000000065121471627602100166070ustar00rootroot00000000000000description rip in chain addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 2.2.2.4 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 4321::4 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 2.2.2.4 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r2 tping 100 130 4321::4 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 2.2.2.4 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r3 tping 100 130 4321::4 vrf v1 r4 tping 100 130 2.2.2.1 vrf v1 r4 tping 100 130 2.2.2.2 vrf v1 r4 tping 100 130 2.2.2.3 vrf v1 r4 tping 100 130 4321::1 vrf v1 r4 tping 100 130 4321::2 vrf v1 r4 tping 100 130 4321::3 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-rip.html here are the ipv4 neighbors:
show:0
here are the ipv6 neighbors:
show:1
here is the ipv4 database:
show:2
here is the ipv6 database:
show:3
here are the ipv4 routes:
show:4
here are the ipv6 routes:
show:5
! freeRtr-24.11.16/cfg/rout-rip03.tst000066400000000000000000000041721471627602100166100ustar00rootroot00000000000000description rip ingress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.12/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::12/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 prefix-list-in p4 router rip6 1 prefix-list-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip04.tst000066400000000000000000000041731471627602100166120ustar00rootroot00000000000000description rip egress route filtering with prefixlist addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit prefix-list p4 sequence 10 deny 2.2.2.11/32 sequence 20 permit 0.0.0.0/0 le 32 exit prefix-list p6 sequence 10 deny 4321::11/128 sequence 20 permit ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 prefix-list-out p4 router rip6 1 prefix-list-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip05.tst000066400000000000000000000042741471627602100166150ustar00rootroot00000000000000description rip ingress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in p4 router rip6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip06.tst000066400000000000000000000042751471627602100166170ustar00rootroot00000000000000description rip egress route filtering with routemap addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.11/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::11/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-out p4 router rip6 1 route-map-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip07.tst000066400000000000000000000041431471627602100166120ustar00rootroot00000000000000description rip ingress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.12/32 drop else pass enif exit route-policy p6 if network 4321::12/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-policy-in p4 router rip6 1 route-policy-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 2.2.2.12 vrf v1 r1 tping 0 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip08.tst000066400000000000000000000041441471627602100166140ustar00rootroot00000000000000description rip egress route filtering with routepolicy addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-policy p4 if network 2.2.2.11/32 drop else pass enif exit route-policy p6 if network 4321::11/128 drop else pass enif exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-policy-out p4 router rip6 1 route-policy-out p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip09.tst000066400000000000000000000043501471627602100166140ustar00rootroot00000000000000description rip hop count addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 set metric +9 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in rm1 router rip6 1 route-map-in rm1 router rip4 1 route-map-out rm1 router rip6 1 route-map-out rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in rm1 router rip6 1 route-map-in rm1 router rip4 1 route-map-out rm1 router rip6 1 route-map-out rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 0 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 4321::3 vrf v1 r3 tping 0 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 0 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip10.tst000066400000000000000000000046341471627602100166110ustar00rootroot00000000000000description rip tag addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router rip4 1 vrf v1 red conn route-map rm1 exit router rip6 1 vrf v1 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map rm1 sequence 10 act perm match tag 1234 set metric +9 sequence 20 act perm exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in rm1 router rip6 1 route-map-in rm1 router rip4 1 route-map-out rm1 router rip6 1 route-map-out rm1 exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in rm1 router rip6 1 route-map-in rm1 router rip4 1 route-map-out rm1 router rip6 1 route-map-out rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit route-map rm1 set tag 1234 exit router rip4 1 vrf v1 red conn route-map rm1 exit router rip6 1 vrf v1 red conn route-map rm1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 0 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 0 130 4321::3 vrf v1 r3 tping 0 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 0 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip11.tst000066400000000000000000000040251471627602100166040ustar00rootroot00000000000000description rip address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena router rip4 1 suppress-prefix router rip6 1 suppress-prefix exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip12.tst000066400000000000000000000036451471627602100166140ustar00rootroot00000000000000description rip default route addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 default-originate router rip6 1 default-originate exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip13.tst000066400000000000000000000022761471627602100166140ustar00rootroot00000000000000description rip authentication addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip4 1 pass tester router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip4 1 pass tester router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip14.tst000066400000000000000000000056511471627602100166150ustar00rootroot00000000000000description rip incoming interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 metric-in 9 router rip6 1 metric-in 9 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip15.tst000066400000000000000000000056531471627602100166200ustar00rootroot00000000000000description rip outgoing interface metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 metric-out 9 router rip6 1 metric-out 9 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip16.tst000066400000000000000000000057251471627602100166210ustar00rootroot00000000000000description rip incoming routemap metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit route-map rm1 set metric +9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in rm1 router rip6 1 route-map-in rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip17.tst000066400000000000000000000057271471627602100166240ustar00rootroot00000000000000description rip outgoing routemap metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit route-map rm1 set metric +9 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-out rm1 router rip6 1 route-map-out rm1 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip18.tst000066400000000000000000000057471471627602100166270ustar00rootroot00000000000000description rip incoming routepolicy metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit route-policy rm1 set metric +9 pass exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-policy-in rm1 router rip6 1 route-policy-in rm1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip19.tst000066400000000000000000000057511471627602100166230ustar00rootroot00000000000000description rip outgoing routepolicy metric addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit server telnet tel vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit route-policy rm1 set metric +9 pass exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-policy-out rm1 router rip6 1 route-policy-out rm1 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 4321::3 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 2.2.2.3 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 4321::3 vrf v1 r3 tping 100 130 2.2.2.1 vrf v1 r3 tping 100 130 2.2.2.2 vrf v1 r3 tping 100 130 4321::1 vrf v1 r3 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.111 vrf v1 r2 tping 100 130 4321::111 vrf v1 r2 tping 0 130 2.2.2.222 vrf v1 r2 tping 0 130 4321::222 vrf v1 r2 send telnet 2.2.2.111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 send telnet 4321::111 666 vrf v1 r2 tping 100 130 2.2.2.222 vrf v1 r2 send exit r2 read closed r2 tping 0 130 2.2.2.222 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip20.tst000066400000000000000000000043561471627602100166130ustar00rootroot00000000000000description rip with bfd addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv4 bfd 100 100 3 router rip4 1 ena router rip4 1 bfd ipv6 addr 1234:1::1 ffff:ffff:: ipv6 bfd 100 100 3 router rip6 1 ena router rip6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv4 bfd 100 100 3 router rip4 1 ena router rip4 1 bfd router rip4 1 dista 130 ipv6 addr 1234:2::1 ffff:ffff:: ipv6 bfd 100 100 3 router rip6 1 ena router rip6 1 bfd router rip6 1 dista 130 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv4 bfd 100 100 3 router rip4 1 ena router rip4 1 bfd ipv6 addr 1234:1::2 ffff:ffff:: ipv6 bfd 100 100 3 router rip6 1 ena router rip6 1 bfd exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv4 bfd 100 100 3 router rip4 1 ena router rip4 1 bfd router rip4 1 dista 130 ipv6 addr 1234:2::2 ffff:ffff:: ipv6 bfd 100 100 3 router rip6 1 ena router rip6 1 bfd router rip6 1 dista 130 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 sleep 3000 r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 send conf t r2 send int eth1 r2 send shut r2 send end r1 tping 100 5 2.2.2.2 vrf v1 sou lo0 r1 tping 100 5 4321::2 vrf v1 sou lo0 r2 tping 100 5 2.2.2.1 vrf v1 sou lo0 r2 tping 100 5 4321::1 vrf v1 sou lo0 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip21.tst000066400000000000000000000025361471627602100166120ustar00rootroot00000000000000description rip peer template addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: temp temp1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int temp1 vrf for v1 ipv4 addr 9.9.9.9 255.255.255.0 ipv6 addr 9999::9 ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: temp temp1 exit int temp1 router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip22.tst000066400000000000000000000037501471627602100166120ustar00rootroot00000000000000description rip prefix withdraw addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip4 1 update-time 1000 router rip4 1 hold-time 4000 router rip4 1 flush-time 4000 router rip6 1 ena router rip6 1 update-time 1000 router rip6 1 hold-time 4000 router rip6 1 flush-time 4000 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip4 1 update-time 1000 router rip4 1 hold-time 4000 router rip4 1 flush-time 4000 router rip6 1 ena router rip6 1 update-time 1000 router rip6 1 hold-time 4000 router rip6 1 flush-time 4000 exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r1 send conf t r1 send int lo0 r1 send no router rip4 1 ena r1 send no router rip6 1 ena r1 send end r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r1 send conf t r1 send int lo0 r1 send router rip4 1 ena r1 send router rip6 1 ena r1 send end r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip23.tst000066400000000000000000000043211471627602100166060ustar00rootroot00000000000000description rip aggregation addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in p4 router rip6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 aggregate 2.2.2.0/24 red conn exit router rip6 1 vrf v1 aggregate 4321::/32 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip24.tst000066400000000000000000000037711471627602100166170ustar00rootroot00000000000000description rip auto mesh tunnel addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router rip4 1 vrf v1 red conn automesh all exit router rip6 1 vrf v1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router rip4 1 ena router rip6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit prefix-list all sequence 10 permit 0.0.0.0/0 le 32 sequence 20 permit ::/0 le 128 exit router rip4 1 vrf v1 red conn automesh all exit router rip6 1 vrf v1 red conn automesh all exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router rip4 1 ena router rip6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 mpls enable mpls rsvp4 mpls rsvp6 exit ! r1 tping 100 130 9.9.9.2 vrf v1 r1 tping 100 130 9999::2 vrf v1 r2 tping 100 130 9.9.9.1 vrf v1 r2 tping 100 130 9999::1 vrf v1 r1 tping 0 130 2.2.2.2 vrf v1 r1 tping 0 130 4321::2 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip25.tst000066400000000000000000000053221471627602100166120ustar00rootroot00000000000000description rip triangle connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rip4 1 ena router rip4 1 metric-in 6 router rip6 1 ena router rip6 1 metric-in 6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rip4 1 ena router rip4 1 metric-in 6 router rip6 1 ena router rip6 1 metric-in 6 ipv4 access-group-in test4 ipv6 access-group-in test6 exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip26.tst000066400000000000000000000047121471627602100166150ustar00rootroot00000000000000description rip autoroute addrouter r1 int ser1 ser 0000.0000.1111 $1a$ $1b$ int ser2 ser 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.1 255.255.255.0 ipv6 addr 9999::1 ffff:: router rip4 1 ena router rip6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.1 255.255.255.0 ipv6 addr 9998::1 ffff:: ipv4 autoroute rip4 1 2.2.2.2 9.9.8.2 ipv6 autoroute rip6 1 4321::2 9998::2 exit ! addrouter r2 int ser1 ser 0000.0000.2222 $1b$ $1a$ int ser2 ser 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 label-mode per-prefix exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny 58 any all any all permit all any all any all exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int ser1 vrf for v1 ipv4 addr 9.9.9.2 255.255.255.0 ipv6 addr 9999::2 ffff:: router rip4 1 ena router rip6 1 ena ipv4 access-group-in test4 ipv6 access-group-in test6 exit int ser2 vrf for v1 ipv4 addr 9.9.8.2 255.255.255.0 ipv6 addr 9998::2 ffff:: ipv4 autoroute rip4 1 2.2.2.1 9.9.8.1 ipv6 autoroute rip6 1 4321::1 9998::1 exit ! r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r1 tping 0 130 9.9.9.2 vrf v1 r1 tping 0 130 9999::2 vrf v1 r2 tping 0 130 9.9.9.1 vrf v1 r2 tping 0 130 9999::1 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip27.tst000066400000000000000000000023601471627602100166130ustar00rootroot00000000000000description rip over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 exit router rip6 1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip28.tst000066400000000000000000000063511471627602100166200ustar00rootroot00000000000000description rip ecmp connection addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn ecmp exit router rip6 1 vrf v1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:21::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.10 255.255.255.252 ipv6 addr 1234:23::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn ecmp exit router rip6 1 vrf v1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:21::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.5 255.255.255.252 ipv6 addr 1234:22::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn ecmp exit router rip6 1 vrf v1 red conn ecmp exit int lo1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1.11 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth1.22 vrf for v1 ipv4 addr 1.1.2.6 255.255.255.252 ipv6 addr 1234:22::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2.11 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2.22 vrf for v1 ipv4 addr 1.1.2.9 255.255.255.252 ipv6 addr 1234:23::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 40 2.2.2.2 vrf v1 sou lo1 r1 tping 100 40 2.2.2.3 vrf v1 sou lo1 r1 tping 100 40 4321::2 vrf v1 sou lo1 r1 tping 100 40 4321::3 vrf v1 sou lo1 r2 tping 100 40 2.2.2.1 vrf v1 sou lo1 r2 tping 100 40 2.2.2.3 vrf v1 sou lo1 r2 tping 100 40 4321::1 vrf v1 sou lo1 r2 tping 100 40 4321::3 vrf v1 sou lo1 r3 tping 100 40 2.2.2.1 vrf v1 sou lo1 r3 tping 100 40 2.2.2.2 vrf v1 sou lo1 r3 tping 100 40 4321::1 vrf v1 sou lo1 r3 tping 100 40 4321::2 vrf v1 sou lo1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip29.tst000066400000000000000000000037531471627602100166240ustar00rootroot00000000000000description rip default address suppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 suppress exit router rip6 1 vrf v1 suppress exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 tping 0 130 2.2.2.11 vrf v1 r2 tping 0 130 4321::11 vrf v1 r2 tping 0 130 2.2.2.21 vrf v1 r2 tping 0 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip30.tst000066400000000000000000000040351471627602100166060ustar00rootroot00000000000000description rip address unsuppression addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 suppress exit router rip6 1 vrf v1 suppress exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena router rip4 1 unsuppress router rip6 1 unsuppress exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff router rip4 1 ena router rip6 1 ena exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.22 255.255.255.255 ipv6 addr 4321::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r1 tping 100 130 2.2.2.22 vrf v1 r1 tping 100 130 4321::22 vrf v1 r2 tping 0 130 2.2.2.1 vrf v1 r2 tping 0 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 0 130 2.2.2.21 vrf v1 r2 tping 0 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-rip31.tst000066400000000000000000000054041471627602100166100ustar00rootroot00000000000000description rip auto summarization addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.11 255.255.255.255 ipv6 addr 4321::11 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.21 255.255.255.255 ipv6 addr 4321::21 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit route-map p4 sequence 10 act deny match network 2.2.2.12/32 sequence 20 act perm match network 0.0.0.0/0 le 32 exit route-map p6 sequence 10 act deny match network 4321::12/128 sequence 20 act perm match network ::/0 le 128 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena router rip4 1 route-map-in p4 router rip6 1 route-map-in p6 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 autosumm red conn exit router rip6 1 vrf v1 autosumm red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.12 255.255.255.255 ipv6 addr 4321::12 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo2 vrf for v1 ipv4 addr 2.2.2.13 255.255.255.255 ipv6 addr 4321::13 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: router rip4 1 ena router rip6 1 ena exit ! r1 tping 100 130 2.2.2.2 vrf v1 r1 tping 100 130 4321::2 vrf v1 r1 tping 100 130 2.2.2.3 vrf v1 r1 tping 100 130 4321::3 vrf v1 r1 tping 100 130 2.2.2.12 vrf v1 r1 tping 100 130 4321::12 vrf v1 r2 tping 100 130 2.2.2.1 vrf v1 r2 tping 100 130 4321::1 vrf v1 r2 tping 100 130 2.2.2.11 vrf v1 r2 tping 100 130 4321::11 vrf v1 r2 tping 100 130 2.2.2.21 vrf v1 r2 tping 100 130 4321::21 vrf v1 r2 output show ipv4 rip 1 sum r2 output show ipv6 rip 1 sum r2 output show ipv4 rip 1 dat r2 output show ipv6 rip 1 dat r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static01.tst000066400000000000000000000035231471627602100173020ustar00rootroot00000000000000description static routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.5 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ! r2 tping 100 5 2.2.2.201 vrf v1 r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::201 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r3 tping 100 5 2.2.2.101 vrf v1 r3 tping 100 5 4321::101 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 output ../binTmp/rout-static.html here are the ipv4 routes:
show:0
here are the ipv6 routes:
show:1
! freeRtr-24.11.16/cfg/rout-static02.tst000066400000000000000000000032141471627602100173000ustar00rootroot00000000000000description static routing with distance addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 ipv6 route v1 :: :: 1234:2::2 dist 11 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 ipv6 route v1 :: :: 1234:2::1 dist 11 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static03.tst000066400000000000000000000044401471627602100173030ustar00rootroot00000000000000description static routing with icmp tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit tracker t1 vrf v1 targ 1.1.2.2 mod icmp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::2 mod icmp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit tracker t1 vrf v1 targ 1.1.2.1 mod icmp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::1 mod icmp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t2 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show tracker r2 output show ipv4 route v1 r2 output show ipv6 route v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 output ../binTmp/rout-track.html here is the tracker:
show:0
here are the ipv4 routes:
show:1
here are the ipv6 routes:
show:2
! freeRtr-24.11.16/cfg/rout-static04.tst000066400000000000000000000041001471627602100172750ustar00rootroot00000000000000description static routing with tcp tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit server tel tel vrf v1 exit tracker t1 vrf v1 targ 1.1.2.2 siz 23 mod tcp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::2 siz 23 mod tcp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit server tel tel vrf v1 exit tracker t1 vrf v1 targ 1.1.2.1 siz 23 mod tcp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::1 siz 23 mod tcp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t2 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static05.tst000066400000000000000000000051071471627602100173060ustar00rootroot00000000000000description static routing with bfd tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit server tel tel vrf v1 exit tracker t1 vrf v1 targ 1.1.2.2 mod bfd inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::2 mod bfd inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 bfd 100 100 3 ipv6 bfd 100 100 3 exit server tel tel vrf v1 exit tracker t1 vrf v1 targ 1.1.2.1 mod bfd inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::1 mod bfd inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t2 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show tracker r2 output show ipv4 bfd v1 nei r2 output show ipv6 bfd v1 nei r2 output show ipv4 route v1 r2 output show ipv6 route v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 output ../binTmp/rout-bfd.html here are the trackers:
show:0
here is the ipv4 neighbor:
show:1
here is the ipv6 neighbor:
show:2
here are the ipv4 routes:
show:3
here are the ipv6 routes:
show:4
! freeRtr-24.11.16/cfg/rout-static06.tst000066400000000000000000000051731471627602100173120ustar00rootroot00000000000000description static routing with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 mplsexp ipv6 route v1 :: :: 1234:1::2 mplsexp ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 mplsexp ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 mplsexp ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.5 mplsexp ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 mplsexp ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 mplsexp ipv6 route v1 :: :: 1234:2::2 mplsexp ! r2 tping 100 5 2.2.2.201 vrf v1 sou lo0 r2 tping 100 5 2.2.2.101 vrf v1 sou lo0 r2 tping 100 5 4321::201 vrf v1 sou lo0 r2 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static07.tst000066400000000000000000000023541471627602100173110ustar00rootroot00000000000000description static routing with interface addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:ffff:: exit ipv4 route v1 1.1.1.2 255.255.255.255 1.1.1.2 inter eth1 ipv4 route v1 1.1.1.3 255.255.255.255 1.1.1.3 inter eth2 ipv6 route v1 1234::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::2 int eth1 ipv6 route v1 1234::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234::3 int eth2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:ffff:: exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.0 ipv6 addr 1234::3 ffff:ffff:: exit ! r1 tping 100 5 1.1.1.2 vrf v1 r1 tping 100 5 1.1.1.3 vrf v1 r1 tping 100 5 1234::2 vrf v1 r1 tping 100 5 1234::3 vrf v1 r2 tping 100 5 1.1.1.1 vrf v1 r2 tping 100 5 1234::1 vrf v1 r3 tping 100 5 1.1.1.1 vrf v1 r3 tping 100 5 1234::1 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static08.tst000066400000000000000000000033531471627602100173120ustar00rootroot00000000000000description static routing over point2point ethernet addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.3 255.255.255.254 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.254 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.254 ipv6 addr 1234:2::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.3 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.7 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.7 255.255.255.254 ipv6 addr 1234:2::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ! r2 tping 100 5 2.2.2.201 vrf v1 r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::201 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r3 tping 100 5 2.2.2.101 vrf v1 r3 tping 100 5 4321::101 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static09.tst000066400000000000000000000046001471627602100173070ustar00rootroot00000000000000description recursive static routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.5 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 ipv4 route v1 2.2.2.102 255.255.255.255 2.2.2.101 recurigp ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::101 recurigp ipv4 route v1 2.2.2.202 255.255.255.255 2.2.2.201 recurigp ipv6 route v1 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::201 recurigp ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ! r2 tping 100 5 2.2.2.201 vrf v1 r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::201 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r3 tping 100 5 2.2.2.101 vrf v1 r3 tping 100 5 4321::101 vrf v1 r2 tping 100 5 2.2.2.202 vrf v1 r2 tping 100 5 2.2.2.102 vrf v1 r2 tping 100 5 4321::202 vrf v1 r2 tping 100 5 4321::102 vrf v1 r1 tping 100 5 2.2.2.202 vrf v1 r1 tping 100 5 4321::202 vrf v1 r3 tping 100 5 2.2.2.102 vrf v1 r3 tping 100 5 4321::102 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static10.tst000066400000000000000000000071661471627602100173110ustar00rootroot00000000000000description recursive static routing with labels addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 mplsexp ipv6 route v1 :: :: 1234:1::2 mplsexp ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.222 255.255.255.255 ipv6 addr 4321::222 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.111 255.255.255.255 ipv6 addr 4321::111 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 mplsexp ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::1 mplsexp ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.5 mplsexp ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::1 mplsexp ipv4 route v1 2.2.2.102 255.255.255.255 2.2.2.101 recurigp mplsexp ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::101 recurigp mplsexp ipv4 route v1 2.2.2.202 255.255.255.255 2.2.2.201 recurigp mplsexp ipv6 route v1 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4321::201 recurigp mplsexp ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit access-list test4 deny 1 any all any all permit all any all any all exit access-list test6 deny all 4321:: ffff:: all 4321:: ffff:: all permit all any all any all exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.202 255.255.255.255 ipv6 addr 4321::202 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: ipv4 access-group-in test4 ipv6 access-group-in test6 mpls ena exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 mplsexp ipv6 route v1 :: :: 1234:2::2 mplsexp ! r2 tping 100 5 2.2.2.201 vrf v1 sou lo0 r2 tping 100 5 2.2.2.101 vrf v1 sou lo0 r2 tping 100 5 4321::201 vrf v1 sou lo0 r2 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 100 5 2.2.2.201 vrf v1 sou lo0 r1 tping 100 5 4321::201 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r2 tping 100 5 2.2.2.202 vrf v1 sou lo1 r2 tping 100 5 2.2.2.102 vrf v1 sou lo1 r2 tping 100 5 4321::202 vrf v1 sou lo1 r2 tping 100 5 4321::102 vrf v1 sou lo1 r1 tping 100 5 2.2.2.202 vrf v1 sou lo1 r1 tping 100 5 4321::202 vrf v1 sou lo1 r3 tping 100 5 2.2.2.102 vrf v1 sou lo1 r3 tping 100 5 4321::102 vrf v1 sou lo1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static11.tst000066400000000000000000000026041471627602100173020ustar00rootroot00000000000000description static routing with ecmp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 id 22 ipv6 route v1 :: :: 1234:1::2 id 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 id 11 ipv6 route v1 :: :: 1234:2::2 id 11 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 id 22 ipv6 route v1 :: :: 1234:1::1 id 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 id 11 ipv6 route v1 :: :: 1234:2::1 id 11 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static12.tst000066400000000000000000000040361471627602100173040ustar00rootroot00000000000000description static routing with udp tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit server echo e vrf v1 exit tracker t1 vrf v1 targ 1.1.2.2 mod udp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::2 mod udp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit server echo e vrf v1 exit tracker t1 vrf v1 targ 1.1.2.1 mod udp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::1 mod udp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t2 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static13.tst000066400000000000000000000040521471627602100173030ustar00rootroot00000000000000description static routing with twamp tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit server twamp t vrf v1 exit tracker t1 vrf v1 targ 1.1.2.2 mod twamp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::2 mod twamp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit server twamp t vrf v1 exit tracker t1 vrf v1 targ 1.1.2.1 mod twamp inter 1000 time 500 start exit tracker t2 vrf v1 targ 1234:2::1 mod twamp inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t2 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static14.tst000066400000000000000000000035661471627602100173150ustar00rootroot00000000000000description static routing with interface tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit tracker t1 targ eth2 mod inter inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t1 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit tracker t1 targ eth2 mod inter inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t1 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static15.tst000066400000000000000000000036151471627602100173110ustar00rootroot00000000000000description static routing with prefix tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit tracker t1 vrf v1 targ 1.1.2.0/30 mod pref inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t1 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit tracker t1 vrf v1 targ 1.1.2.0/30 mod pref inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t1 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static16.tst000066400000000000000000000037661471627602100173210ustar00rootroot00000000000000description static routing with other tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit tracker t1 targ eth2 mod inter inter 1000 time 500 start exit tracker t2 targ t1 mod other inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t2 ipv6 route v1 :: :: 1234:2::2 dist 11 track t2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit tracker t1 targ eth2 mod inter inter 1000 time 500 start exit tracker t2 targ t1 mod other inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t2 ipv6 route v1 :: :: 1234:2::1 dist 11 track t2 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static17.tst000066400000000000000000000037061471627602100173140ustar00rootroot00000000000000description static routing with check tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit check c1 comm sho inter descr train exit tracker t1 targ c1 mod check inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t1 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit check c1 comm sho inter descr train exit tracker t1 targ c1 mod check inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t1 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static18.tst000066400000000000000000000040371471627602100173130ustar00rootroot00000000000000description static routing with nrpe tracker addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: shut exit int eth2 vrf for v1 ipv4 addr 1.1.2.1 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit server nrpe n vrf v1 exit check c1 comm sho inter descr train exit tracker t1 targ 2.2.2.101/c1 vrf v1 mod nrpe inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 dist 22 ipv6 route v1 :: :: 1234:1::2 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.2 dist 11 track t1 ipv6 route v1 :: :: 1234:2::2 dist 11 track t1 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.2.2 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit server nrpe n vrf v1 exit check c1 comm sho inter descr train exit tracker t1 targ 2.2.2.201/c1 vrf v1 mod nrpe inter 1000 time 500 start exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 dist 22 ipv6 route v1 :: :: 1234:1::1 dist 22 ipv4 route v1 0.0.0.0 0.0.0.0 1.1.2.1 dist 11 track t1 ipv6 route v1 :: :: 1234:2::1 dist 11 track t1 ! r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r1 send conf t r1 send int eth1 r1 send no shut r1 send exit r1 send int eth2 r1 send shut r1 send end r2 send conf t r2 send int eth2 r2 send shut r2 send end r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static19.tst000066400000000000000000000047671471627602100173260ustar00rootroot00000000000000description verify source with static routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:: ipv4 verify rx ipv6 verify rx exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:ffff:ffff:: ipv4 verify rx ipv6 verify rx exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ipv4 route v1 2.2.2.99 255.255.255.255 1.1.1.10 ipv6 route v1 4321::99 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:: ipv4 verify rx ipv6 verify rx exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:ffff:ffff:: ipv4 verify rx ipv6 verify rx exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.5 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.99 255.255.255.255 ipv6 addr 4321::99 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::3 ffff:ffff:ffff:ffff:: ipv4 verify rx ipv6 verify rx exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::3 ffff:ffff:ffff:ffff:: ipv4 verify rx ipv6 verify rx exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ! r2 tping 100 5 2.2.2.201 vrf v1 r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::201 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r3 tping 100 5 2.2.2.101 vrf v1 r3 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.99 vrf v1 r1 tping 100 5 4321::99 vrf v1 r1 tping 0 5 2.2.2.99 vrf v1 sou lo0 r1 tping 0 5 4321::99 vrf v1 sou lo0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static20.tst000066400000000000000000000050111471627602100172750ustar00rootroot00000000000000description loose verify source with static routing addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::3 ffff:ffff:ffff:ffff:: ipv4 verify any ipv6 verify any exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:ffff:ffff:: ipv4 verify any ipv6 verify any exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2 ipv6 route v1 :: :: 1234:1::2 ipv4 route v1 2.2.2.99 255.255.255.255 1.1.1.10 ipv6 route v1 4321::99 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:3::3 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:ffff:ffff:: ipv4 verify any ipv6 verify any exit int eth2 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:ffff:ffff:: ipv4 verify any ipv6 verify any exit ipv4 route v1 2.2.2.101 255.255.255.255 1.1.1.1 ipv6 route v1 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::3 ipv4 route v1 2.2.2.201 255.255.255.255 1.1.1.5 ipv6 route v1 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:2::3 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.201 255.255.255.255 ipv6 addr 4321::201 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.99 255.255.255.255 ipv6 addr 4321::99 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::3 ffff:ffff:ffff:ffff:: ipv4 verify any ipv6 verify any exit int eth2 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::3 ffff:ffff:ffff:ffff:: ipv4 verify any ipv6 verify any exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6 ipv6 route v1 :: :: 1234:2::2 ! r2 tping 100 5 2.2.2.201 vrf v1 r2 tping 100 5 2.2.2.101 vrf v1 r2 tping 100 5 4321::201 vrf v1 r2 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.201 vrf v1 r1 tping 100 5 4321::201 vrf v1 r3 tping 100 5 2.2.2.101 vrf v1 r3 tping 100 5 4321::101 vrf v1 r1 tping 100 5 2.2.2.99 vrf v1 r1 tping 100 5 4321::99 vrf v1 r1 tping 0 5 2.2.2.99 vrf v1 sou lo0 r1 tping 0 5 4321::99 vrf v1 sou lo0 r2 output show ipv4 route v1 r2 output show ipv6 route v1 freeRtr-24.11.16/cfg/rout-static21.tst000066400000000000000000000175721471627602100173150ustar00rootroot00000000000000description static routing with lpm addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.1111 $3a$ $3b$ int eth4 eth 0000.0000.1111 $4a$ $4b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.101 255.255.255.255 ipv6 addr 4321::101 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit int eth4 vrf for v1 ipv4 addr 1.1.1.13 255.255.255.252 ipv6 addr 1234:4::1 ffff:ffff:: exit ipv4 route v1 2.2.2.102 255.255.255.255 1.1.1.2 ipv6 route v1 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 1234:1::2 ipv4 route v1 2.2.2.0 255.255.255.0 1.1.1.6 ipv6 route v1 4321:: ffff:: 1234:2::2 ipv4 route v1 2.2.0.0 255.255.0.0 1.1.1.10 ipv6 route v1 4320:: fff0:: 1234:3::2 ipv4 route v1 2.0.0.0 255.0.0.0 1.1.1.14 ipv6 route v1 4300:: ff00:: 1234:4::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.102 255.255.255.255 ipv6 addr 4321::102 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.103 255.255.255.255 ipv6 addr 4321::103 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.2.23 255.255.255.255 ipv6 addr 4321::23 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.1.104 255.255.255.255 ipv6 addr 4320::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.2.3.104 255.255.255.255 ipv6 addr 4322::104 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 ! addrouter r5 int eth1 eth 0000.0000.4444 $4b$ $4a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.1.2.105 255.255.255.255 ipv6 addr 4311::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int lo1 vrf for v1 ipv4 addr 2.3.2.105 255.255.255.255 ipv6 addr 4331::105 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.14 255.255.255.252 ipv6 addr 1234:4::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.13 ipv6 route v1 :: :: 1234:4::1 ! r1 tping 100 5 2.2.2.101 vrf v1 sou lo0 r1 tping 100 5 4321::101 vrf v1 sou lo0 r1 tping 100 5 2.2.2.102 vrf v1 sou lo0 r1 tping 100 5 4321::102 vrf v1 sou lo0 r1 tping 100 5 2.2.2.103 vrf v1 sou lo0 r1 tping 100 5 4321::103 vrf v1 sou lo0 r1 tping 100 5 2.2.2.23 vrf v1 sou lo0 r1 tping 100 5 4321::23 vrf v1 sou lo0 r1 tping 100 5 2.2.1.104 vrf v1 sou lo0 r1 tping 100 5 4320::104 vrf v1 sou lo0 r1 tping 100 5 2.2.3.104 vrf v1 sou lo0 r1 tping 100 5 4322::104 vrf v1 sou lo0 r1 tping 100 5 2.1.2.105 vrf v1 sou lo0 r1 tping 100 5 4311::105 vrf v1 sou lo0 r1 tping 100 5 2.3.2.105 vrf v1 sou lo0 r1 tping 100 5 4331::105 vrf v1 sou lo0 r2 tping 100 5 2.2.2.101 vrf v1 sou lo0 r2 tping 100 5 4321::101 vrf v1 sou lo0 r2 tping 100 5 2.2.2.102 vrf v1 sou lo0 r2 tping 100 5 4321::102 vrf v1 sou lo0 r2 tping 100 5 2.2.2.103 vrf v1 sou lo0 r2 tping 100 5 4321::103 vrf v1 sou lo0 r2 tping 100 5 2.2.2.23 vrf v1 sou lo0 r2 tping 100 5 4321::23 vrf v1 sou lo0 r2 tping 100 5 2.2.1.104 vrf v1 sou lo0 r2 tping 100 5 4320::104 vrf v1 sou lo0 r2 tping 100 5 2.2.3.104 vrf v1 sou lo0 r2 tping 100 5 4322::104 vrf v1 sou lo0 r2 tping 100 5 2.1.2.105 vrf v1 sou lo0 r2 tping 100 5 4311::105 vrf v1 sou lo0 r2 tping 100 5 2.3.2.105 vrf v1 sou lo0 r2 tping 100 5 4331::105 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo0 r3 tping 100 5 4321::101 vrf v1 sou lo0 r3 tping 100 5 2.2.2.102 vrf v1 sou lo0 r3 tping 100 5 4321::102 vrf v1 sou lo0 r3 tping 100 5 2.2.2.103 vrf v1 sou lo0 r3 tping 100 5 4321::103 vrf v1 sou lo0 r3 tping 100 5 2.2.2.23 vrf v1 sou lo0 r3 tping 100 5 4321::23 vrf v1 sou lo0 r3 tping 100 5 2.2.1.104 vrf v1 sou lo0 r3 tping 100 5 4320::104 vrf v1 sou lo0 r3 tping 100 5 2.2.3.104 vrf v1 sou lo0 r3 tping 100 5 4322::104 vrf v1 sou lo0 r3 tping 100 5 2.1.2.105 vrf v1 sou lo0 r3 tping 100 5 4311::105 vrf v1 sou lo0 r3 tping 100 5 2.3.2.105 vrf v1 sou lo0 r3 tping 100 5 4331::105 vrf v1 sou lo0 r4 tping 100 5 2.2.2.101 vrf v1 sou lo0 r4 tping 100 5 4321::101 vrf v1 sou lo0 r4 tping 100 5 2.2.2.102 vrf v1 sou lo0 r4 tping 100 5 4321::102 vrf v1 sou lo0 r4 tping 100 5 2.2.2.103 vrf v1 sou lo0 r4 tping 100 5 4321::103 vrf v1 sou lo0 r4 tping 100 5 2.2.2.23 vrf v1 sou lo0 r4 tping 100 5 4321::23 vrf v1 sou lo0 r4 tping 100 5 2.2.1.104 vrf v1 sou lo0 r4 tping 100 5 4320::104 vrf v1 sou lo0 r4 tping 100 5 2.2.3.104 vrf v1 sou lo0 r4 tping 100 5 4322::104 vrf v1 sou lo0 r4 tping 100 5 2.1.2.105 vrf v1 sou lo0 r4 tping 100 5 4311::105 vrf v1 sou lo0 r4 tping 100 5 2.3.2.105 vrf v1 sou lo0 r4 tping 100 5 4331::105 vrf v1 sou lo0 r5 tping 100 5 2.2.2.101 vrf v1 sou lo0 r5 tping 100 5 4321::101 vrf v1 sou lo0 r5 tping 100 5 2.2.2.102 vrf v1 sou lo0 r5 tping 100 5 4321::102 vrf v1 sou lo0 r5 tping 100 5 2.2.2.103 vrf v1 sou lo0 r5 tping 100 5 4321::103 vrf v1 sou lo0 r5 tping 100 5 2.2.2.23 vrf v1 sou lo0 r5 tping 100 5 4321::23 vrf v1 sou lo0 r5 tping 100 5 2.2.1.104 vrf v1 sou lo0 r5 tping 100 5 4320::104 vrf v1 sou lo0 r5 tping 100 5 2.2.3.104 vrf v1 sou lo0 r5 tping 100 5 4322::104 vrf v1 sou lo0 r5 tping 100 5 2.1.2.105 vrf v1 sou lo0 r5 tping 100 5 4311::105 vrf v1 sou lo0 r5 tping 100 5 2.3.2.105 vrf v1 sou lo0 r5 tping 100 5 4331::105 vrf v1 sou lo0 r3 tping 100 5 2.2.2.101 vrf v1 sou lo1 r3 tping 100 5 4321::101 vrf v1 sou lo1 r3 tping 100 5 2.2.2.102 vrf v1 sou lo1 r3 tping 100 5 4321::102 vrf v1 sou lo1 r3 tping 100 5 2.2.2.103 vrf v1 sou lo1 r3 tping 100 5 4321::103 vrf v1 sou lo1 r3 tping 100 5 2.2.2.23 vrf v1 sou lo1 r3 tping 100 5 4321::23 vrf v1 sou lo1 r3 tping 100 5 2.2.1.104 vrf v1 sou lo1 r3 tping 100 5 4320::104 vrf v1 sou lo1 r3 tping 100 5 2.2.3.104 vrf v1 sou lo1 r3 tping 100 5 4322::104 vrf v1 sou lo1 r3 tping 100 5 2.1.2.105 vrf v1 sou lo1 r3 tping 100 5 4311::105 vrf v1 sou lo1 r3 tping 100 5 2.3.2.105 vrf v1 sou lo1 r3 tping 100 5 4331::105 vrf v1 sou lo1 r4 tping 100 5 2.2.2.101 vrf v1 sou lo1 r4 tping 100 5 4321::101 vrf v1 sou lo1 r4 tping 100 5 2.2.2.102 vrf v1 sou lo1 r4 tping 100 5 4321::102 vrf v1 sou lo1 r4 tping 100 5 2.2.2.103 vrf v1 sou lo1 r4 tping 100 5 4321::103 vrf v1 sou lo1 r4 tping 100 5 2.2.2.23 vrf v1 sou lo1 r4 tping 100 5 4321::23 vrf v1 sou lo1 r4 tping 100 5 2.2.1.104 vrf v1 sou lo1 r4 tping 100 5 4320::104 vrf v1 sou lo1 r4 tping 100 5 2.2.3.104 vrf v1 sou lo1 r4 tping 100 5 4322::104 vrf v1 sou lo1 r4 tping 100 5 2.1.2.105 vrf v1 sou lo1 r4 tping 100 5 4311::105 vrf v1 sou lo1 r4 tping 100 5 2.3.2.105 vrf v1 sou lo1 r4 tping 100 5 4331::105 vrf v1 sou lo1 r5 tping 100 5 2.2.2.101 vrf v1 sou lo1 r5 tping 100 5 4321::101 vrf v1 sou lo1 r5 tping 100 5 2.2.2.102 vrf v1 sou lo1 r5 tping 100 5 4321::102 vrf v1 sou lo1 r5 tping 100 5 2.2.2.103 vrf v1 sou lo1 r5 tping 100 5 4321::103 vrf v1 sou lo1 r5 tping 100 5 2.2.2.23 vrf v1 sou lo1 r5 tping 100 5 4321::23 vrf v1 sou lo1 r5 tping 100 5 2.2.1.104 vrf v1 sou lo1 r5 tping 100 5 4320::104 vrf v1 sou lo1 r5 tping 100 5 2.2.3.104 vrf v1 sou lo1 r5 tping 100 5 4322::104 vrf v1 sou lo1 r5 tping 100 5 2.1.2.105 vrf v1 sou lo1 r5 tping 100 5 4311::105 vrf v1 sou lo1 r5 tping 100 5 2.3.2.105 vrf v1 sou lo1 r5 tping 100 5 4331::105 vrf v1 sou lo1 freeRtr-24.11.16/cfg/serv-bmp01.tst000066400000000000000000000075321471627602100165630ustar00rootroot00000000000000description static bmp peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 2 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 shut exit router bgp6 2 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 shut exit server bmp bmp neigh 1.1.1.1 1.1.1.2 rx bgp4 2 1.1.1.2 neigh 1.1.1.1 1234:1::2 rx bgp6 2 1234:1::2 port 17971 vrf v1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 monitor bmp p1 1.1.1.1 17971 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 distan 255 neigh 1.1.1.2 monitor bmp red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 monitor bmp p1 1.1.1.1 17971 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 distan 255 neigh 1234:1::2 monitor bmp red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/serv-bmp02.tst000066400000000000000000000075631471627602100165700ustar00rootroot00000000000000description dynamic bmp peer addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.255 ipv6 addr 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit router bgp4 2 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 temp t remote-as 2 temp t shut exit router bgp6 2 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 temp t remote-as 2 temp t shut exit access-list test permit all any all any all exit server bmp bmp1 dynei test rx bgp4 2 t port 17971 vrf v1 exit server bmp bmp2 dynei test rx bgp6 2 t port 17972 vrf v1 exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 4.4.4.1 monitor bmp p1 1.1.1.1 17971 neigh 1.1.1.2 remote-as 2 neigh 1.1.1.2 distan 255 neigh 1.1.1.2 monitor bmp red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 1 router-id 6.6.6.1 monitor bmp p1 1.1.1.1 17972 neigh 1234:1::2 remote-as 2 neigh 1234:1::2 distan 255 neigh 1234:1::2 monitor bmp red conn exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 4.4.4.2 neigh 1.1.1.1 remote-as 1 neigh 1.1.1.6 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 2 router-id 6.6.6.2 neigh 1234:1::1 remote-as 1 neigh 1234:2::2 remote-as 3 red conn exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ int eth2 eth 0000.0000.3333 $3a$ $3b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 4.4.4.3 neigh 1.1.1.5 remote-as 2 neigh 1.1.1.10 remote-as 4 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 3 router-id 6.6.6.3 neigh 1234:2::1 remote-as 2 neigh 1234:3::2 remote-as 4 red conn exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit router bgp4 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 4.4.4.4 neigh 1.1.1.9 remote-as 3 red conn exit router bgp6 1 vrf v1 no safe-ebgp address uni local-as 4 router-id 6.6.6.4 neigh 1234:3::1 remote-as 3 red conn exit ! r1 tping 100 60 2.2.2.2 vrf v1 r1 tping 100 60 4321::2 vrf v1 r1 tping 100 60 2.2.2.3 vrf v1 r1 tping 100 60 4321::3 vrf v1 r1 tping 100 60 2.2.2.4 vrf v1 r1 tping 100 60 4321::4 vrf v1 r2 tping 100 60 2.2.2.1 vrf v1 r2 tping 100 60 4321::1 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 4321::3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 4321::4 vrf v1 r3 tping 100 60 2.2.2.1 vrf v1 r3 tping 100 60 4321::1 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 4321::2 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 4321::4 vrf v1 r4 tping 100 60 2.2.2.1 vrf v1 r4 tping 100 60 4321::1 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 4321::2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 4321::3 vrf v1 freeRtr-24.11.16/cfg/serv-dns01.tst000066400000000000000000000014741471627602100165700ustar00rootroot00000000000000description authoritative dns server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr ip4a.test.corp ip4a 1.1.1.1 rr ip6a.test.corp ip6a 1234::1 rr ip4i.test.corp ip4i eth1 rr ip6i.test.corp ip6i eth1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1.1.1.1 ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 ip4a.test.corp vrf v1 r2 tping 100 15 ip6a.test.corp vrf v1 r2 tping 100 15 ip4i.test.corp vrf v1 r2 tping 100 15 ip6i.test.corp vrf v1 freeRtr-24.11.16/cfg/serv-dns02.tst000066400000000000000000000014621471627602100165660ustar00rootroot00000000000000description recursive dns server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr www.test.corp ip4a 1.1.1.1 vrf v1 exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit server dns dns recur ena vrf v1 exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1.1.1.1 ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 15 www.test.corp vrf v1 r1 tping 100 15 www.test.corp vrf v1 freeRtr-24.11.16/cfg/serv-dns03.tst000066400000000000000000000015031471627602100165630ustar00rootroot00000000000000description relaying dns server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr www.test.corp ip4a 1.1.1.1 vrf v1 exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit proxy-profile p1 vrf v1 source ethernet1 exit server dns dns resolv test.corp p1 1234::1 vrf v1 exit client proxy p1 client name-server 1.1.1.1 ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 15 www.test.corp vrf v1 r1 tping 100 15 www.test.corp vrf v1 freeRtr-24.11.16/cfg/serv-dns04.tst000066400000000000000000000015021471627602100165630ustar00rootroot00000000000000description dns64 server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1111:1111 ffff:: exit server dns dns zone test.corp defttl 43200 rr www.test.corp ip4a 17.17.17.17 vrf v1 exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1234::2 ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit server dns dns recursion 6to4prefix 1234:: recursion enable vrf v1 exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1.1.1.1 ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 1234::1111:1111 vrf v1 r1 tping 100 15 www.test.corp vrf v1 ipv6 freeRtr-24.11.16/cfg/serv-dns05.tst000066400000000000000000000020501471627602100165630ustar00rootroot00000000000000description secondary dns server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr test.corp soa ns.test.corp admin.test.corp 20100101 600 600 600000 30 rr ip4a.test.corp ip4a 1.1.1.1 rr ip6a.test.corp ip6a 1234::1 rr ip4i.test.corp ip4i eth1 rr ip6i.test.corp ip6i eth1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit server dns dns zone test.corp defttl 43200 vrf v1 exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1.1.1.2 ! r2 tping 100 15 1.1.1.1 vrf v1 r2 send conf t r2 send server dns dns r2 send zone test.corp redownload p1 1.1.1.1 r2 send exit r2 send end r2 tping 100 15 ip4a.test.corp vrf v1 r2 tping 100 15 ip6a.test.corp vrf v1 r2 tping 100 15 ip4i.test.corp vrf v1 r2 tping 100 15 ip6i.test.corp vrf v1 freeRtr-24.11.16/cfg/serv-dyndest.tst000066400000000000000000000020631471627602100173100ustar00rootroot00000000000000description dynamic tunnel destination addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr www.test.corp ip4a 1.1.1.1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.123 tunnel domain-name www.test.corp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1.1.1.1 ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 www.test.corp vrf v1 r2 tping 0 5 2.2.2.1 r2 send clear tunnel-domain r2 tping 100 15 2.2.2.1 freeRtr-24.11.16/cfg/serv-eventmgr.tst000066400000000000000000000012201471627602100174570ustar00rootroot00000000000000description event manager addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: shutdown exit event-manager test event .* testing .* tcl exec "test logging debug hello there" tcl config "int eth1" "no shut" exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit ! r1 send test logging debug testing 123 r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 1234::1 vrf v1 r1 tping 100 15 1.1.1.2 vrf v1 r1 tping 100 15 1234::2 vrf v1 freeRtr-24.11.16/cfg/serv-forward.tst000066400000000000000000000017621471627602100173070ustar00rootroot00000000000000description forwarder server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server telnet tel vrf v1 port 6666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit server forwarder fwd port 666 target vrf v1 target address 1.1.1.1 target protocol tcp target port 6666 vrf v1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 2.2.2.3 vrf v1 r3 send telnet 2.2.2.2 666 vrf v1 r3 tping 100 15 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/serv-loadbal.tst000066400000000000000000000017021471627602100172330ustar00rootroot00000000000000description load balancer server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit server telnet tel vrf v1 port 6666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit server loadbalancer lb server 10 1.1.1.1 6666 port 666 vrf v1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 2.2.2.3 vrf v1 r3 send telnet 2.2.2.2 666 vrf v1 r3 tping 100 15 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/serv-proxy.tst000066400000000000000000000023011471627602100170120ustar00rootroot00000000000000description proxy server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit proxy-profile p1 protocol http vrf v1 target 1.1.1.2 port 80 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit server http http vrf v1 proxy p1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit int lo0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:: exit server telnet telnet vrf v1 exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 2.2.2.3 vrf v1 r1 tping 0 5 3.3.3.3 vrf v1 r1 send telnet 2.2.2.3 prox p1 r1 tping 100 15 3.3.3.3 vrf v1 r1 send exit r1 read closed r1 tping 0 5 3.3.3.3 vrf v1 r1 send telnet 4321::3 prox p1 r1 tping 100 15 3.3.3.3 vrf v1 r1 send exit r1 read closed freeRtr-24.11.16/cfg/serv-radius.tst000066400000000000000000000015121471627602100171230ustar00rootroot00000000000000description radius server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit client proxy p1 int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit aaa radius rad secret tester server 1.1.1.2 exit server telnet tel login authentication rad vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit aaa userlist usr username c password c username c privilege 14 exit server radius rad authen usr secret tester logg vrf v1 exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 send c r2 send c r2 tping 100 15 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/serv-scheduler.tst000066400000000000000000000021001471627602100176040ustar00rootroot00000000000000description scheduler addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.2 vrf for v1 ipv4 addr 2.2.2.1 255.255.255.0 ipv6 addr 4321::1 ffff:: exit server dns dns zone test.corp defttl 43200 rr www.test.corp ip4a 1.1.1.1 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int tun1 tunnel vrf v1 tunnel mode gre tunnel source ethernet1 tunnel destination 1.1.1.123 tunnel domain-name www.test.corp vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit proxy-profile p1 vrf v1 source ethernet1 exit client proxy p1 client name-server 1.1.1.1 scheduler tun time 3000 delay 5000 command clear tunnel-domain start exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 www.test.corp vrf v1 r2 tping 100 15 2.2.2.1 freeRtr-24.11.16/cfg/serv-sdwan01.tst000066400000000000000000000057411471627602100171210ustar00rootroot00000000000000description sdwan over ipv4 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.2 0.0.0.1 3 ipv6 pool p6 2222::2 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr dyn dyn ipv6 addr dyn dyn exit vpdn sdw int di1 target 1.1.1.99 proxy p1 pref ipv4 user u pass p proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr dyn dyn ipv6 addr dyn dyn exit vpdn sdw int di1 target 1.1.1.99 proxy p1 pref ipv4 user u pass p proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr dyn dyn ipv6 addr dyn dyn exit vpdn sdw int di1 target 1.1.1.99 proxy p1 pref ipv4 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 100 60 2222::4 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan02.tst000066400000000000000000000057411471627602100171220ustar00rootroot00000000000000description sdwan over ipv6 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.2 0.0.0.1 3 ipv6 pool p6 2222::2 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr dyn dyn ipv6 addr dyn dyn exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr dyn dyn ipv6 addr dyn dyn exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr dyn dyn ipv6 addr dyn dyn exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 100 60 2222::4 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan03.tst000066400000000000000000000062301471627602100171150ustar00rootroot00000000000000description sdwan with fixed addresses addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 100 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 100 60 2222::4 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan04.tst000066400000000000000000000062471471627602100171260ustar00rootroot00000000000000description sdwan hub and spoke addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 username h password p exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 hub h vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user h pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 0 60 2.2.2.3 vrf v1 r2 tping 100 60 2.2.2.4 vrf v1 r3 tping 0 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 100 60 2.2.2.4 vrf v1 r4 tping 100 60 2.2.2.2 vrf v1 r4 tping 100 60 2.2.2.3 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 0 60 2222::3 vrf v1 r2 tping 100 60 2222::4 vrf v1 r3 tping 0 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 100 60 2222::4 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 100 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan05.tst000066400000000000000000000060461471627602100171240ustar00rootroot00000000000000description sdwan with mixed addresses addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.2 vrf v1 r4 tping 0 60 2.2.2.3 vrf v1 r4 tping 0 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 0 60 2222::3 vrf v1 r2 tping 100 60 2222::4 vrf v1 r3 tping 0 60 2222::2 vrf v1 r3 tping 0 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 100 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan06.tst000066400000000000000000000062321471627602100171220ustar00rootroot00000000000000description sdwan with l2tp2 and l2tp3 addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para l3tp proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para l3tp proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 0 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 0 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 0 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan07.tst000066400000000000000000000062651471627602100171310ustar00rootroot00000000000000description sdwan with l2tp2 and gre addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para gre proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para gre proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 0 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 0 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan08.tst000066400000000000000000000062651471627602100171320ustar00rootroot00000000000000description sdwan with l2tp2 and amt addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para amt proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para amt proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 0 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 0 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan09.tst000066400000000000000000000062651471627602100171330ustar00rootroot00000000000000description sdwan with l2tp2 and gtp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para gtp proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para gtp proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 0 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 0 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan10.tst000066400000000000000000000062701471627602100171170ustar00rootroot00000000000000description sdwan with l2tp2 and icmp addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para icmp proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para icmp proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 0 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 0 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-sdwan11.tst000066400000000000000000000062701471627602100171200ustar00rootroot00000000000000description sdwan with l2tp2 and tmux addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ int eth2 eth 0000.0000.1111 $2a$ $2b$ int eth3 eth 0000.0000.3333 $3a$ $3b$ ! aaa userlist usr username u password p username u privilege 14 exit crypto rsakey rsa generate 2048 crypto dsakey dsa generate 1024 crypto ecdsakey ecdsa generate 256 vrf def v1 rd 1:1 exit int lo0 vrf for v1 ipv4 addr 1.1.1.99 255.255.255.255 ipv6 addr 1234::99 ffff:ffff:: exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.252 ipv6 addr 1234:1::1 ffff:ffff:: exit int eth2 vrf for v1 ipv4 addr 1.1.1.5 255.255.255.252 ipv6 addr 1234:2::1 ffff:ffff:: exit int eth3 vrf for v1 ipv4 addr 1.1.1.9 255.255.255.252 ipv6 addr 1234:3::1 ffff:ffff:: exit ipv4 pool p4 2.2.2.222 0.0.0.1 3 ipv6 pool p6 2222::222 ::1 3 server sdwan v9 security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa pool4 p4 pool6 p6 vrf v1 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.252 ipv6 addr 1234:1::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.1 ipv6 route v1 :: :: 1234:1::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 ipv6 addr 2222::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para tmux proto sdwan exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.6 255.255.255.252 ipv6 addr 1234:2::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.5 ipv6 route v1 :: :: 1234:2::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.3 255.255.255.255 ipv6 addr 2222::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p para tmux proto sdwan exit ! addrouter r4 int eth1 eth 0000.0000.4444 $3b$ $3a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.10 255.255.255.252 ipv6 addr 1234:3::2 ffff:ffff:: exit ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.9 ipv6 route v1 :: :: 1234:3::1 proxy-profile p1 vrf v1 source eth1 exit int di1 enc raw vrf for v1 ipv4 addr 2.2.2.4 255.255.255.255 ipv6 addr 2222::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff exit vpdn sdw int di1 target 1234::99 proxy p1 pref ipv6 user u pass p calling 1701 proto sdwan exit ! r1 tping 100 60 1.1.1.2 vrf v1 r1 tping 100 60 1.1.1.6 vrf v1 r1 tping 100 60 1.1.1.10 vrf v1 r1 tping 100 60 1234:1::2 vrf v1 r1 tping 100 60 1234:2::2 vrf v1 r1 tping 100 60 1234:3::2 vrf v1 r2 tping 100 60 2.2.2.2 vrf v1 r2 tping 100 60 2.2.2.3 vrf v1 r2 tping 0 60 2.2.2.4 vrf v1 r3 tping 100 60 2.2.2.2 vrf v1 r3 tping 100 60 2.2.2.3 vrf v1 r3 tping 0 60 2.2.2.4 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 0 60 2.2.2.0 vrf v1 r4 tping 100 60 2.2.2.4 vrf v1 r2 tping 100 60 2222::2 vrf v1 r2 tping 100 60 2222::3 vrf v1 r2 tping 0 60 2222::4 vrf v1 r3 tping 100 60 2222::2 vrf v1 r3 tping 100 60 2222::3 vrf v1 r3 tping 0 60 2222::4 vrf v1 r4 tping 0 60 2222::2 vrf v1 r4 tping 0 60 2222::3 vrf v1 r4 tping 100 60 2222::4 vrf v1 freeRtr-24.11.16/cfg/serv-socks4.tst000066400000000000000000000021311471627602100170400ustar00rootroot00000000000000description socks4 server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit proxy-profile p1 protocol socks4 vrf v1 target 1.1.1.2 port 1080 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit server socks socks vrf v1 target vrf v1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit int lo0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:: exit server telnet telnet vrf v1 exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 2.2.2.3 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 15 4321::3 vrf v1 r1 tping 0 5 3.3.3.3 vrf v1 r1 send telnet 2.2.2.3 prox p1 r1 tping 100 15 3.3.3.3 vrf v1 freeRtr-24.11.16/cfg/serv-socks5.tst000066400000000000000000000023541471627602100170500ustar00rootroot00000000000000description socks5 server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit proxy-profile p1 protocol socks5 vrf v1 target 1234::2 port 1080 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit server socks socks vrf v1 target vrf v1 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit int lo0 vrf for v1 ipv4 addr 3.3.3.3 255.255.255.255 ipv6 addr 3333::3 ffff:: exit server telnet telnet vrf v1 exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 2.2.2.3 vrf v1 r2 tping 100 15 1234::1 vrf v1 r2 tping 100 15 4321::3 vrf v1 r1 tping 0 5 3.3.3.3 vrf v1 r1 send telnet 2.2.2.3 prox p1 r1 tping 100 15 3.3.3.3 vrf v1 r1 send exit r1 read closed r1 tping 0 5 3.3.3.3 vrf v1 r1 send telnet 4321::3 prox p1 r1 tping 100 15 3.3.3.3 vrf v1 r1 send exit r1 read closed freeRtr-24.11.16/cfg/serv-tacacs.tst000066400000000000000000000015121471627602100170720ustar00rootroot00000000000000description tacacs server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit proxy-profile p1 vrf v1 exit client proxy p1 int lo0 vrf for v1 ipv4 addr 2.2.2.2 255.255.255.255 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit aaa tacacs tac secret tester server 1.1.1.2 exit server telnet tel login authentication tac vrf v1 port 666 exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit aaa userlist usr username c password c username c privilege 14 exit server tacacs tac authen usr secret tester logg vrf v1 exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 send telnet 1.1.1.1 666 vrf v1 r2 send c r2 send c r2 tping 100 15 2.2.2.2 vrf v1 freeRtr-24.11.16/cfg/serv-udpforward.tst000066400000000000000000000023171471627602100200150ustar00rootroot00000000000000description udp forwarder server addrouter r1 int eth1 eth 0000.0000.1111 $1a$ $1b$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.1 255.255.255.0 ipv6 addr 1234::1 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 1.1.1.2 tun key 4321 tun mod pckoudp vrf for v1 ipv4 addr 3.3.3.1 255.255.255.0 ipv6 addr 3333::1 ffff:: exit ! addrouter r2 int eth1 eth 0000.0000.2222 $1b$ $1a$ int eth2 eth 0000.0000.2222 $2a$ $2b$ ! vrf def v1 rd 1:1 exit vrf def v2 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 1.1.1.2 255.255.255.0 ipv6 addr 1234::2 ffff:: exit int eth2 vrf for v2 ipv4 addr 2.2.2.2 255.255.255.0 ipv6 addr 4321::2 ffff:: exit server udpfwd fwd port 1234 target vrf v1 target address 1.1.1.1 target port 4321 vrf v2 exit ! addrouter r3 int eth1 eth 0000.0000.3333 $2b$ $2a$ ! vrf def v1 rd 1:1 exit int eth1 vrf for v1 ipv4 addr 2.2.2.3 255.255.255.0 ipv6 addr 4321::3 ffff:: exit int tun1 tun vrf v1 tun sou eth1 tun dest 2.2.2.2 tun key 1234 tun mod pckoudp vrf for v1 ipv4 addr 3.3.3.2 255.255.255.0 ipv6 addr 3333::2 ffff:: exit ! r2 tping 100 15 1.1.1.1 vrf v1 r2 tping 100 15 2.2.2.3 vrf v2 r3 tping 100 15 3.3.3.1 vrf v1 r3 tping 100 15 3333::1 vrf v1 freeRtr-24.11.16/cfg/temp-babel.tmpl000066400000000000000000000017431471627602100170370ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router babel4 1 vrf v1 router 0000.$thisMac1$ red conn exit router babel6 1 vrf v1 router 0000.$thisMac1$ red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router babel4 1 ena router babel6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router babel4 1 ena router babel6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit freeRtr-24.11.16/cfg/temp-bgp.tmpl000066400000000000000000000021651471627602100165410ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:1:: 2001:db8:2:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit router bgp4 1 vrf v1 address uni local-as $thisNum$ router-id $thisLoop4a$ neigh $prevNet4a1$ remote-as $prevNum$ neigh $thisNet4a2$ remote-as $nextNum$ red conn exit router bgp6 1 vrf v1 address uni local-as $thisNum$ router-id $thisLoop4a$ neigh $prevNet6a1$ remote-as $prevNum$ neigh $thisNet6a2$ remote-as $nextNum$ red conn exit freeRtr-24.11.16/cfg/temp-eigrp.tmpl000066400000000000000000000017511471627602100170770ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router eigrp4 1 vrf v1 as 1 router $thisLoop4a$ red conn exit router eigrp6 1 vrf v1 as 1 router $thisLoop4a$ red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router eigrp4 1 ena router eigrp6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router eigrp4 1 ena router eigrp6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit freeRtr-24.11.16/cfg/temp-isis.tmpl000066400000000000000000000021671471627602100167420ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router isis4 1 vrf v1 net 48.$thisMac1$.00 traffeng $thisLoop4a$ both traff red conn exit router isis6 1 vrf v1 net 48.$thisMac1$.00 traffeng $thisLoop4a$ both traff red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1.4 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 router isis4 1 ena mpls enable mpls rsvp4 mpls ldp4 exit int eth1.6 vrf for v1 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router isis6 1 ena mpls enable mpls rsvp6 mpls ldp6 exit int eth2.4 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 router isis4 1 ena mpls enable mpls rsvp4 mpls ldp4 exit int eth2.6 vrf for v1 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router isis6 1 ena mpls enable mpls rsvp6 mpls ldp6 exit freeRtr-24.11.16/cfg/temp-lsrp.tmpl000066400000000000000000000017271471627602100167540ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router lsrp4 1 vrf v1 router $thisLoop4a$ red conn exit router lsrp6 1 vrf v1 router $thisLoop4a$ red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router lsrp4 1 ena router lsrp6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router lsrp4 1 ena router lsrp6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit freeRtr-24.11.16/cfg/temp-olsr.tmpl000066400000000000000000000016551471627602100167530ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router olsr4 1 vrf v1 red conn exit router olsr6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router olsr4 1 ena router olsr6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router olsr4 1 ena router olsr6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit freeRtr-24.11.16/cfg/temp-ospf.tmpl000066400000000000000000000020711471627602100167340ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router ospf4 1 vrf v1 router $thisLoop4a$ traffeng $thisLoop4a$ area 0 ena area 0 traff red conn exit router ospf6 1 vrf v1 router $thisLoop4a$ traffeng $thisLoop4a$ area 0 ena area 0 traff red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router ospf4 1 ena router ospf6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit freeRtr-24.11.16/cfg/temp-pvrp.tmpl000066400000000000000000000016711471627602100167610ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router pvrp4 1 vrf v1 router $thisLoop4a$ red conn label exit router pvrp6 1 vrf v1 router $thisLoop4a$ red conn label exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router pvrp4 1 ena router pvrp6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router pvrp4 1 ena router pvrp6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit freeRtr-24.11.16/cfg/temp-rift.tmpl000066400000000000000000000016671471627602100167430ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router rift4 1 vrf v1 router $thisSock1$ red conn label exit router rift6 1 vrf v1 router $thisSock1$ red conn label exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router rift4 1 ena router rift6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router rift4 1 ena router rift6 1 ena mpls enable mpls rsvp4 mpls rsvp6 exit freeRtr-24.11.16/cfg/temp-rip.tmpl000066400000000000000000000016471471627602100165670ustar00rootroot0000000000000010.1.0.0 10.2.0.0 2001:db8:: fe80:: 0000.1111.0000 int eth1 eth $thisMac1$ $thisSock1$ $prevSock2$ int eth2 eth $thisMac1$ $thisSock2$ $nextSock1$ hostname r$thisNum$ vrf def v1 rd 1:1 label-mode per-prefix exit server telnet tel vrf v1 exit router rip4 1 vrf v1 red conn exit router rip6 1 vrf v1 red conn exit int lo1 vrf for v1 ipv4 addr $thisLoop4a$ 255.255.255.255 ipv6 addr $thisLoop6a$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mpls rsvp4 mpls rsvp6 exit int eth1 vrf for v1 ipv4 addr $prevNet4a2$ 255.255.255.252 ipv6 addr $prevNet6a2$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router rip4 1 ena router rip6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit int eth2 vrf for v1 ipv4 addr $thisNet4a1$ 255.255.255.252 ipv6 addr $thisNet6a1$ ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc router rip4 1 ena router rip6 1 ena mpls enable mpls rsvp4 mpls rsvp6 mpls ldp4 mpls ldp6 exit freeRtr-24.11.16/changelog.txt000066400000000000000000023623311471627602100160670ustar00rootroot00000000000000---------------------------------- 2012-08-06 22:15:25 qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: proxy server todo: exception prt.prtGenConn.run:prtGenConn.java:439 java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched:Timer.java:354/java.util.Timer.schedule:Timer.java:222/ip.ipIfc4arp.resetTimer:ipIfc4arp.java:147/ip.ipIfc4arp.setIPv4addr:ipIfc4arp.java:134/ip.ipIfc4.setIPv4addr:ipIfc4.java:127/cfg.cfgIfc.addrChanged:cfgIfc.java:978/clnt.clntDhcp4.changeAddress:clntDhcp4.java:227/clnt.clntDhcp4.sendKeepalive:clntDhcp4.java:371/clnt.clntDhcp4.datagramWork:clntDhcp4.java:258/prt.prtGenConn.internalWorker:prtGenConn.java:389/prt.prtGenConn.run:prtGenConn.java:429/java.lang.Thread.run:Thread.java:662/ ---------------------------------- 2012-08-07 23:05:41 no todo: openssl as crypto hardware no todo: encrypt within packHolder qc pass: bgp nexthop peer todo: rout-mcast02.tst: info cfg.cfgInit.executeSWcommands:cfgInit.java:315 15:java.lang.NullPointerException at pack.packPim.fillJoin:packPim.java:466/rtr.rtrPimIface.sendJoin:rtrPimIface.java:231/ip.ipFwdTab.joinOneGroup:ipFwdTab.java:515/ip.ipFwd.mcastAddFlood:ipFwd.java:426/user.userConfig.parseUpMcast:userConfig.java:1364/user.userConfig.doCmdIp4:userConfig.java:1502/user.userConfig.doGlobal:userConfig.java:600/user.userConfig.executeCommand:userConfig.java:209/cfg.cfgInit.executeSWcommands:cfgInit.java:313/cfg.cfgInit.doInit:cfgInit.java:403/cfg.cfgInit.doMain:cfgInit.java:496/router.main:router.java:17/ todo: encrypt within packHolder, openssl as crypto hardware ---------------------------------- 2012-09-01 13:44:59 no qc pass: rip egress route filtering with prefixlist no qc pass: rip in chain no qc pass: dhcp no work: dhcp qc pass: point2point ethernet encapsulation qc pass: more sources translation to interface no work: rip in chain no work: rip egress route filtering with prefixlist todo: exception prt.prtGenConn.run:prtGenConn.java:439 java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched:Timer.java:354/java.util.Timer.schedule:Timer.java:222/ip.ipIfc4arp.resetTimer:ipIfc4arp.java:147/ip.ipIfc4arp.setIPv4addr:ipIfc4arp.java:134/ip.ipIfc4.setIPv4addr:ipIfc4.java:127/cfg.cfgIfc.addrChanged:cfgIfc.java:978/clnt.clntDhcp4.changeAddress:clntDhcp4.java:227/clnt.clntDhcp4.sendKeepalive:clntDhcp4.java:371/clnt.clntDhcp4.datagramWork:clntDhcp4.java:258/prt.prtGenConn.internalWorker:prtGenConn.java:389/prt.prtGenConn.run:prtGenConn.java:429/java.lang.Thread.run:Thread.java:662/ todo: rout-mcast02.tst: info cfg.cfgInit.executeSWcommands:cfgInit.java:315 15:java.lang.NullPointerException at pack.packPim.fillJoin:packPim.java:466/rtr.rtrPimIface.sendJoin:rtrPimIface.java:231/ip.ipFwdTab.joinOneGroup:ipFwdTab.java:515/ip.ipFwd.mcastAddFlood:ipFwd.java:426/user.userConfig.parseUpMcast:userConfig.java:1364/user.userConfig.doCmdIp4:userConfig.java:1502/user.userConfig.doGlobal:userConfig.java:600/user.userConfig.executeCommand:userConfig.java:209/cfg.cfgInit.executeSWcommands:cfgInit.java:313/cfg.cfgInit.doInit:cfgInit.java:403/cfg.cfgInit.doMain:cfgInit.java:496/router.main:router.java:17/ ---------------------------------- 2012-09-01 18:59:12 no qc pass: rip egress route filtering with routemap no work: rip egress route filtering with routemap ---------------------------------- 2012-09-02 17:27:45 no qc pass: rip with bfd qc pass: dhcp qc pass: interworking with packet over dtls qc pass: ppp with packet over dtls qc pass: rip in chain qc pass: rip egress route filtering with prefixlist no work: rip with bfd ---------------------------------- 2012-09-03 04:05:40 no qc pass: rip egress route filtering with prefixlist no qc pass: dhcp no work: dhcp no work: rip egress route filtering with prefixlist qc pass: rip with bfd ---------------------------------- 2012-09-03 10:38:26 qc pass: ppp with packet over tcp qc pass: rip egress route filtering with routemap ---------------------------------- 2012-09-03 17:52:36 no qc pass: qos ingress exp set no qc pass: macsec over hdlc no qc pass: process redundancy no work: process redundancy no work: macsec over hdlc no work: qos ingress exp set qc pass: rip egress route filtering with prefixlist ---------------------------------- 2012-09-04 04:21:04 qc pass: process redundancy qc pass: macsec over hdlc qc pass: qos ingress exp set ---------------------------------- 2012-09-04 07:29:42 no todo: cross compiler tools for zzz no todo: more packages, eg rtr.ospf, etc... ---------------------------------- 2012-09-04 14:18:35 qc pass: dhcp qc pass: ppp with packet over tls ---------------------------------- 2012-09-04 17:24:43 qc pass: ppp with packet over txt ---------------------------------- 2012-09-05 16:35:06 no todo: configure buffer with commit: sh run all-on egy szovegszerkeszto... no todo: rout-mcast02.tst: info cfg.cfgInit.executeSWcommands:cfgInit.java:315 15:java.lang.NullPointerException at pack.packPim.fillJoin:packPim.java:466/rtr.rtrPimIface.sendJoin:rtrPimIface.java:231/ip.ipFwdTab.joinOneGroup:ipFwdTab.java:515/ip.ipFwd.mcastAddFlood:ipFwd.java:426/user.userConfig.parseUpMcast:userConfig.java:1364/user.userConfig.doCmdIp4:userConfig.java:1502/user.userConfig.doGlobal:userConfig.java:600/user.userConfig.executeCommand:userConfig.java:209/cfg.cfgInit.executeSWcommands:cfgInit.java:313/cfg.cfgInit.doInit:cfgInit.java:403/cfg.cfgInit.doMain:cfgInit.java:496/router.main:router.java:17/ no todo: exception prt.prtGenConn.run:prtGenConn.java:439 java.lang.IllegalStateException: Timer already cancelled. at java.util.Timer.sched:Timer.java:354/java.util.Timer.schedule:Timer.java:222/ip.ipIfc4arp.resetTimer:ipIfc4arp.java:147/ip.ipIfc4arp.setIPv4addr:ipIfc4arp.java:134/ip.ipIfc4.setIPv4addr:ipIfc4.java:127/cfg.cfgIfc.addrChanged:cfgIfc.java:978/clnt.clntDhcp4.changeAddress:clntDhcp4.java:227/clnt.clntDhcp4.sendKeepalive:clntDhcp4.java:371/clnt.clntDhcp4.datagramWork:clntDhcp4.java:258/prt.prtGenConn.internalWorker:prtGenConn.java:389/prt.prtGenConn.run:prtGenConn.java:429/java.lang.Thread.run:Thread.java:662/ qc pass: ppp with packet over txtls todo: configure buffer with commit ---------------------------------- 2012-09-18 13:46:24 no qc pass: tls test no qc pass: ssh test no qc pass: macsec over tunnel no qc pass: macsec over atmsar no qc pass: macsec over atmdxi no qc pass: macsec over framerelay no qc pass: macsec over ppp no qc pass: macsec over hdlc no qc pass: macsec over ethernet bridge no qc pass: macsec over ethernet vlan no qc pass: macsec over ethernet no qc pass: ike2 with aes256 no qc pass: ike2 with aes192 no qc pass: ike1 with aes256 no qc pass: ike1 with aes192 no qc pass: dtls test no qc pass: ppp over tls no qc pass: ppp with packet over txtls no qc pass: ppp with packet over tls no qc pass: ppp with packet over dtls no work: ppp with packet over dtls no work: ppp with packet over tls no work: ppp with packet over txtls no work: ppp over tls no work: dtls test no work: ike1 with aes192 no work: ike1 with aes256 no work: ike2 with aes192 no work: ike2 with aes256 no work: macsec over ethernet no work: macsec over ethernet vlan no work: macsec over ethernet bridge no work: macsec over hdlc no work: macsec over ppp no work: macsec over framerelay no work: macsec over atmdxi no work: macsec over atmsar no work: macsec over tunnel no work: ssh test no work: tls test ---------------------------------- 2012-10-15 19:48:19 qc pass: ppp with packet over dtls qc pass: ppp with packet over tls qc pass: ppp with packet over txtls qc pass: ppp over tls qc pass: dtls test qc pass: ike1 with aes192 qc pass: ike1 with aes256 qc pass: ike2 with aes192 qc pass: ike2 with aes256 qc pass: macsec over ethernet qc pass: macsec over ethernet vlan qc pass: macsec over ethernet bridge qc pass: macsec over hdlc qc pass: macsec over ppp qc pass: macsec over framerelay qc pass: macsec over atmdxi qc pass: macsec over atmsar qc pass: macsec over tunnel qc pass: ssh test qc pass: tls test ---------------------------------- 2012-10-16 07:41:43 no todo: ip inspect with local termination and proxyprofile transport qc pass: telnet inspection ---------------------------------- 2012-10-16 15:59:34 no qc pass: rip metric no work: rip metric ---------------------------------- 2012-10-23 01:16:02 qc pass: rip metric ---------------------------------- 2012-10-25 22:38:56 no qc pass: macsec over framerelay no qc pass: macsec over ppp no work: macsec over ppp no work: macsec over framerelay ---------------------------------- 2012-10-30 23:20:16 qc pass: macsec over ppp ---------------------------------- 2012-11-01 01:04:40 qc pass: macsec over framerelay ---------------------------------- 2012-11-08 20:14:45 no todo: configure buffer with commit no qc pass: macsec over framerelay no work: macsec over framerelay ---------------------------------- 2012-11-14 22:09:31 qc pass: macsec over framerelay ---------------------------------- 2012-11-21 23:19:20 no todo: dmz-link-bw bgp neighbor command no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf point2multipoint connection no qc pass: isis chain of broadcast nets no qc pass: lapb mod32768 no work: lapb mod32768 no work: isis chain of broadcast nets no work: ospf point2multipoint connection no work: ospf point2point chain no work: ospf broadcast chain ---------------------------------- 2012-11-22 18:11:21 qc pass: lapb mod32768 qc pass: isis chain of broadcast nets qc pass: ospf point2multipoint connection qc pass: ospf point2point chain qc pass: ospf broadcast chain ---------------------------------- 2012-11-27 14:11:29 qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd ---------------------------------- 2012-11-27 17:31:44 no qc pass: rip metric no qc pass: rip in chain qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: redistribution with pvrp no work: rip in chain no work: rip metric ---------------------------------- 2012-11-28 21:54:31 qc pass: pvrp authentication qc pass: rip in chain ---------------------------------- 2012-11-29 03:22:39 no qc pass: rip in chain no work: rip in chain qc pass: rip metric ---------------------------------- 2012-11-29 20:21:36 no qc pass: rip metric no work: rip metric ---------------------------------- 2012-12-01 07:18:50 qc pass: rip metric ---------------------------------- 2012-12-01 14:39:11 qc pass: pvrp ssh encryption qc pass: pvrp tls encryption ---------------------------------- 2012-12-02 00:20:22 no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no qc pass: bgp route server no qc pass: vpns over ibgp no qc pass: vpns over ebgp no qc pass: ebgp with bfd no qc pass: ibgp with labels no qc pass: ebgp with labels no qc pass: bgp filtering with extended community no qc pass: bgp origin vs metric no qc pass: bgp aspath vs origin no qc pass: bgp locpref vs aspath no qc pass: bgp metric no qc pass: bgp origin no qc pass: bgp aspath no qc pass: bgp locpref no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: bgp egress route filtering with routemap no qc pass: bgp ingress route filtering with routemap no qc pass: bgp egress route filtering with prefixlist no qc pass: bgp ingress route filtering with prefixlist no qc pass: bgp default route no qc pass: ibgp with long as number no qc pass: ebgp with long as number no qc pass: ibgp with mpls no qc pass: ibgp over loopback no qc pass: ebgp over loopback no qc pass: ibgp rr in subnet no qc pass: ibgp fullmesh in subnet no qc pass: ibgp in subnet no qc pass: confed bgp in subnet no qc pass: ebgp in subnet no qc pass: ibgp in chain no qc pass: confed bgp in chain no qc pass: ebgp in chain no qc pass: qos egress exp set no qc pass: qos ingress exp set no qc pass: qos cos set no qc pass: qos egress prec set no qc pass: qos ingress prec set no qc pass: qos ingress dscp set no qc pass: qos ingress tos set no qc pass: qos egress acl matcher no qc pass: qos ingress acl matcher no qc pass: qos egress prec matcher no qc pass: qos ingress prec matcher no qc pass: qos egress dscp matcher no qc pass: qos egress length matcher no qc pass: qos egress shaper action no qc pass: qos ingress shaper action no qc pass: qos egress bandwidth action no qc pass: qos ingress bandwidth action no qc pass: qos egress priority action no qc pass: qos ingress priority action no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: qos egress drop action no qc pass: qos ingress drop action no qc pass: qos egress transmit action no qc pass: qos ingress transmit action no work: qos ingress transmit action no work: qos egress transmit action no work: qos ingress drop action no work: qos egress drop action no work: qos ingress policer action no work: qos egress policer action no work: qos ingress priority action no work: qos egress priority action no work: qos ingress bandwidth action no work: qos egress bandwidth action no work: qos ingress shaper action no work: qos egress shaper action no work: qos egress length matcher no work: qos egress dscp matcher no work: qos ingress prec matcher no work: qos egress prec matcher no work: qos ingress acl matcher no work: qos egress acl matcher no work: qos ingress tos set no work: qos ingress dscp set no work: qos ingress prec set no work: qos egress prec set no work: qos cos set no work: qos ingress exp set no work: qos egress exp set no work: ebgp in chain no work: confed bgp in chain no work: ibgp in chain no work: ebgp in subnet no work: confed bgp in subnet no work: ibgp in subnet no work: ibgp fullmesh in subnet no work: ibgp rr in subnet no work: ebgp over loopback no work: ibgp over loopback no work: ibgp with mpls no work: ebgp with long as number no work: ibgp with long as number no work: bgp default route no work: bgp ingress route filtering with prefixlist no work: bgp egress route filtering with prefixlist no work: bgp ingress route filtering with routemap no work: bgp egress route filtering with routemap no work: bgp filtering with locpref no work: bgp filtering with origin no work: bgp filtering with metric no work: bgp filtering with standard community no work: bgp filtering with aspath no work: bgp locpref no work: bgp aspath no work: bgp origin no work: bgp metric no work: bgp locpref vs aspath no work: bgp aspath vs origin no work: bgp origin vs metric no work: bgp filtering with extended community no work: ebgp with labels no work: ibgp with labels no work: ebgp with bfd no work: vpns over ebgp no work: vpns over ibgp no work: bgp route server no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp egress route filtering with prefixlist no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server ---------------------------------- 2012-12-04 22:08:29 qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos egress length matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress tos set qc pass: qos ingress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server ---------------------------------- 2012-12-07 23:17:11 qc pass: rip in chain ---------------------------------- 2012-12-13 19:04:53 no todo: capture on tunnel interface ---------------------------------- 2012-12-24 01:45:35 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2012-12-24 05:32:50 qc pass: rip in chain ---------------------------------- 2012-12-28 09:04:53 no qc pass: rip metric no work: rip metric ---------------------------------- 2012-12-31 18:39:09 qc pass: rip metric ---------------------------------- 2013-01-03 13:11:08 no todo: range for http server no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-01-03 20:20:00 qc pass: rip in chain ---------------------------------- 2013-01-12 21:02:02 no qc pass: rip metric no qc pass: rip in chain no work: rip in chain no work: rip metric ---------------------------------- 2013-01-13 11:44:59 qc pass: rip in chain qc pass: rip metric ---------------------------------- 2013-01-17 20:59:57 no qc pass: rip in chain no work: rip in chain todo: traceroute ---------------------------------- 2013-01-26 15:52:02 no todo: encrypt within packHolder, openssl as crypto hardware no qc pass: ppp over stun no work: ppp over stun qc pass: rip in chain ---------------------------------- 2013-01-27 08:39:43 no qc pass: rip in chain qc pass: ppp over stun no work: rip in chain ---------------------------------- 2013-01-28 00:15:57 no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip on one subnet no work: rip on one subnet no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd ---------------------------------- 2013-01-28 06:21:50 qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip with bfd ---------------------------------- 2013-01-28 10:04:03 qc pass: rip metric ---------------------------------- 2013-01-29 22:36:06 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-01-30 07:54:27 no todo: traceroute qc pass: rip in chain ---------------------------------- 2013-02-03 17:02:02 no todo: igmp stack qc pass: multicast routing with igmp/mld ---------------------------------- 2013-02-04 21:00:28 no qc pass: rip in chain qc pass: multicast routing with mdlp no work: rip in chain ---------------------------------- 2013-02-05 08:39:32 no qc pass: rip metric no qc pass: multicast routing with mdlp no qc pass: bridged ethernet over bridge no qc pass: bridge with spantree no qc pass: bridged ethernet over gre no qc pass: bridged ethernet over atmsar no qc pass: bridged ethernet over atmdxi no qc pass: bridged ethernet over framerelay no qc pass: bridged ethernet over ppp no qc pass: bridged ethernet over hdlc no qc pass: star bridged ethernet no qc pass: chain bridged ethernet vlan no work: chain bridged ethernet vlan no work: star bridged ethernet no work: bridged ethernet over hdlc no work: bridged ethernet over ppp no work: bridged ethernet over framerelay no work: bridged ethernet over atmdxi no work: bridged ethernet over atmsar no work: bridged ethernet over gre no work: bridge with spantree no work: bridged ethernet over bridge qc pass: multicast routing with mldp qc pass: rip in chain no work: rip metric ---------------------------------- 2013-02-05 12:04:09 no qc pass: rip in chain qc pass: chain bridged ethernet vlan qc pass: star bridged ethernet qc pass: bridged ethernet over hdlc qc pass: bridged ethernet over ppp qc pass: bridged ethernet over framerelay qc pass: bridged ethernet over atmdxi qc pass: bridged ethernet over atmsar qc pass: bridged ethernet over gre qc pass: bridge with spantree qc pass: bridged ethernet over bridge no work: rip in chain qc pass: rip metric ---------------------------------- 2013-02-05 19:04:34 qc pass: rip in chain ---------------------------------- 2013-02-06 12:38:37 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-02-06 17:06:42 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2013-02-06 23:49:07 qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2013-02-07 08:17:15 qc pass: rip in chain ---------------------------------- 2013-02-07 21:22:07 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-02-08 16:08:15 no qc pass: rip metric no work: rip metric ---------------------------------- 2013-02-09 08:11:20 qc pass: rip metric ---------------------------------- 2013-02-12 13:26:36 qc pass: rip in chain ---------------------------------- 2013-02-13 15:27:50 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-02-14 18:58:30 no qc pass: rip metric no work: rip metric ---------------------------------- 2013-02-15 07:55:03 qc pass: rip in chain qc pass: rip metric ---------------------------------- 2013-02-15 14:02:56 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-02-15 18:32:31 no qc pass: rip metric qc pass: rip in chain no work: rip metric ---------------------------------- 2013-02-16 08:33:35 no qc pass: rip in chain no work: rip in chain qc pass: rip metric ---------------------------------- 2013-02-16 18:21:57 qc pass: rip in chain ---------------------------------- 2013-02-17 13:41:52 no qc pass: rip metric no work: rip metric ---------------------------------- 2013-02-17 18:50:32 no qc pass: rip in chain no work: rip in chain qc pass: rip metric ---------------------------------- 2013-02-17 22:03:25 no qc pass: rip metric no qc pass: lapb mod8 no work: lapb mod8 no work: rip metric ---------------------------------- 2013-02-18 11:05:41 qc pass: lapb mod8 qc pass: rip metric ---------------------------------- 2013-02-18 17:05:54 qc pass: rip in chain ---------------------------------- 2013-02-19 09:37:50 no qc pass: rip in chain no work: rip in chain ---------------------------------- 2013-02-21 12:16:27 todo: eigrp http://www.ietf.org/staging/draft-savage-eigrp-00.txt ---------------------------------- 2013-02-25 13:48:08 no qc pass: lapb mod128 no work: lapb mod128 qc pass: rip in chain ---------------------------------- 2013-02-25 19:11:59 qc pass: lapb mod128 ---------------------------------- 2013-02-26 20:59:27 no qc pass: lapb mod32768 no work: lapb mod32768 ---------------------------------- 2013-02-27 08:22:30 qc pass: lapb mod32768 ---------------------------------- 2013-03-01 09:57:46 no qc pass: rip metric no work: rip metric ---------------------------------- 2013-03-01 13:59:33 qc pass: rip metric ---------------------------------- 2013-03-02 22:59:19 no qc pass: lapb mod128 no work: lapb mod128 ---------------------------------- 2013-03-03 12:22:35 qc pass: lapb mod128 ---------------------------------- 2013-03-09 16:19:05 no todo: smallservers clients no todo: show isis/ospf/rip nei display neighbor state no todo: eigrp http://www.ietf.org/staging/draft-savage-eigrp-00.txt qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd ---------------------------------- 2013-03-09 20:19:31 no qc pass: lapb mod8 no work: lapb mod8 qc pass: redistribution with eigrp ---------------------------------- 2013-03-10 09:26:23 qc pass: lapb mod8 ---------------------------------- 2013-03-18 13:44:54 no todo: config exclusive no todo: synchronous modulator todo: sctp ---------------------------------- 2013-03-24 15:55:47 no todo: sctp no qc pass: lapb mod32768 no work: lapb mod32768 ---------------------------------- 2013-03-24 19:09:37 qc pass: lapb mod32768 ---------------------------------- 2013-03-25 14:28:39 no qc pass: lapb mod128 no work: lapb mod128 ---------------------------------- 2013-03-25 20:27:56 no qc pass: lapb mod32768 qc pass: lapb mod128 no work: lapb mod32768 ---------------------------------- 2013-03-25 23:49:15 no qc pass: lapb mod8 no work: lapb mod8 ---------------------------------- 2013-03-26 07:52:14 qc pass: lapb mod32768 ---------------------------------- 2013-03-28 10:45:48 qc pass: lapb mod8 ---------------------------------- 2013-04-06 13:09:41 qc pass: ingress bridged access list qc pass: egress bridged access list ---------------------------------- 2013-04-10 11:35:21 no todo: dhcp6 server, client no todo: dhcp4 relay support no qc pass: lapb mod128 no work: lapb mod128 todo: dhcp relay support ---------------------------------- 2013-04-10 15:07:28 qc pass: lapb mod128 ---------------------------------- 2013-05-11 12:22:47 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip in chain no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with eigrp no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: eigrp with bfd no qc pass: eigrp default route no qc pass: eigrp egress route filtering with routemap no qc pass: eigrp ingress route filtering with routemap no qc pass: eigrp egress route filtering with prefixlist no work: eigrp egress route filtering with prefixlist no work: eigrp ingress route filtering with routemap no work: eigrp egress route filtering with routemap no work: eigrp default route no work: eigrp with bfd no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution with eigrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip in chain no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2013-05-11 15:26:15 qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2013-05-19 16:08:57 qc pass: cross connect hdlc interfaces qc pass: cross connect ppp interfaces qc pass: cross connect lapb interfaces qc pass: cross connect framerelay interfaces qc pass: cross connect atmdxi interfaces qc pass: cross connect ethernet interfaces ---------------------------------- 2013-06-11 20:56:16 no todo: show isis/ospf/rip interface ---------------------------------- 2013-06-23 18:54:02 todo: flash upgra tftp://z/ ---------------------------------- 2013-07-21 07:54:57 no todo: flash upgra tftp://z/ qc pass: ipv4-ipv6 protocol translation ---------------------------------- 2013-07-26 19:50:49 qc pass: pim over ipv4 qc pass: pim over ipv6 qc pass: pim over pim qc pass: pim over loopback ---------------------------------- 2013-08-08 10:07:56 qc pass: ppp with local authentication qc pass: ppp with radius authentication qc pass: ppp with tacacs authentication qc pass: ppp with pap authentication qc pass: ppp with chap authentication qc pass: ppp with eap authentication ---------------------------------- 2013-10-08 09:01:59 qc pass: loadbalancing bundle todo: child router processes ---------------------------------- 2013-10-18 11:00:40 qc pass: ppp over l2tp3 qc pass: ppp over authenticated l2tp2 qc pass: ppp over authenticated l2tp3 qc pass: ppp over authenticated l2tp3 todo: interface template ---------------------------------- 2013-10-20 09:05:09 no todo: interface template ---------------------------------- 2013-10-21 16:06:37 no todo: bgp parameter container qc pass: bgp peer template qc pass: bgp listen qc pass: eigrp peer template qc pass: isis peer template qc pass: ospf peer template qc pass: pvrp peer template qc pass: rip peer template ---------------------------------- 2013-10-22 12:53:52 qc pass: ppp over l2tp3 server qc pass: ppp over authenticated l2tp3 server ---------------------------------- 2013-10-23 20:52:47 no todo: child router processes ---------------------------------- 2013-10-29 17:13:01 qc pass: ppp over l2f qc pass: ppp over authenticated l2f ---------------------------------- 2013-11-10 02:27:05 todo: more interactive tools todo: interactive, colorized diff cli show extension todo: help for interactive tools ---------------------------------- 2013-12-07 13:03:05 no todo: help for interactive tools no todo: interactive, colorized diff cli show extension ---------------------------------- 2013-12-17 16:20:57 qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain no work: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template todo: vpnized browser (xul) todo: trustpoint for certificates todo: more level of config sections todo: tab for deb pro o?-->ospf[4/6] todo: interface name tabbing todo: show upgrade todo: reenabling of routing protocols fails todo: int eth1/int eth2 todo: dhcp relay support todo: sslvpn client, server todo: dlsw client, server todo: tcp selective ack todo: xot, x75 switching todo: ipx, spx switching todo: preallocate qos buffers todo: lisp4, lisp6 todo: nhrp4, nhrp6 todo: l2vpn for isis todo: hip (rfc4423) todo: more show commands todo: more clear commands todo: more interactive tools todo: igmp4/6 snoop, pim4/6 snoop for bridging todo: multilink ppp, fr todo: x25 todo: default vrf for show commands ---------------------------------- 2013-12-17 16:28:12 qc pass: pvrp metric ---------------------------------- 2014-01-03 23:27:08 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip peer template no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip in chain no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with eigrp no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp peer template no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf peer template no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis peer template no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: eigrp peer template no qc pass: eigrp with bfd no qc pass: eigrp default route no qc pass: eigrp egress route filtering with routemap no qc pass: eigrp ingress route filtering with routemap no qc pass: eigrp egress route filtering with prefixlist no qc pass: eigrp ingress route filtering with prefixlist no qc pass: eigrp address suppression no qc pass: eigrp delay no qc pass: eigrp point2point chain no qc pass: eigrp point2multipoint connection no qc pass: eigrp point2point connection no qc pass: bgp listen no qc pass: bgp peer template no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no qc pass: bgp route server no qc pass: vpns over ibgp no qc pass: vpns over ebgp no qc pass: ebgp with bfd no qc pass: ibgp with labels no qc pass: ebgp with labels no qc pass: bgp filtering with extended community no qc pass: bgp origin vs metric no qc pass: bgp aspath vs origin no qc pass: bgp locpref vs aspath no qc pass: bgp metric no qc pass: bgp origin no qc pass: bgp aspath no qc pass: bgp locpref no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: bgp egress route filtering with routemap no qc pass: bgp ingress route filtering with routemap no qc pass: bgp egress route filtering with prefixlist no qc pass: bgp ingress route filtering with prefixlist no qc pass: bgp default route no qc pass: ibgp with long as number no qc pass: ebgp with long as number no qc pass: ibgp with mpls no qc pass: ibgp over loopback no qc pass: ebgp over loopback no qc pass: ibgp rr in subnet no qc pass: ibgp fullmesh in subnet no qc pass: ibgp in subnet no qc pass: confed bgp in subnet no qc pass: ebgp in subnet no qc pass: ibgp in chain no qc pass: confed bgp in chain no qc pass: ebgp in chain no qc pass: qos egress exp set no qc pass: qos ingress exp set no qc pass: qos cos set no qc pass: qos egress prec set no qc pass: qos ingress prec set no qc pass: qos egress dscp set no qc pass: qos ingress dscp set no qc pass: qos egress tos set no qc pass: qos ingress tos set no qc pass: qos ingress qosgroup set no qc pass: qos egress matcher on bridged traffic no qc pass: qos ingress matcher on bridged traffic no qc pass: qos egress ethertype matcher no qc pass: qos ingress ethertype matcher no qc pass: qos egress acl matcher no qc pass: qos ingress acl matcher no qc pass: qos egress prec matcher no qc pass: qos ingress prec matcher no qc pass: qos egress dscp matcher no qc pass: qos ingress dscp matcher no qc pass: qos egress tos matcher no qc pass: qos ingress tos matcher no qc pass: qos egress length matcher no qc pass: qos ingress length matcher no qc pass: qos egress hierarchical action no qc pass: qos ingress hierarchical action no qc pass: qos egress shaper action no qc pass: qos ingress shaper action no qc pass: qos egress bandwidth action no qc pass: qos ingress bandwidth action no qc pass: qos egress priority action no qc pass: qos ingress priority action no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: qos egress drop action no qc pass: qos ingress drop action no qc pass: qos egress transmit action no qc pass: qos ingress transmit action no qc pass: cross connect interworking with erspan no qc pass: cross connect interworking with vxlan no qc pass: cross connect interworking with packet over udp no qc pass: cross connect with erspan no qc pass: cross connect with vxlan no qc pass: cross connect with packet over udp no qc pass: cross connect with pwe over mpls no qc pass: p2mp te tail+mid no qc pass: p2mp te no qc pass: ldp and te no qc pass: pwe over te no qc pass: ldp over te no qc pass: te in chain no qc pass: te over gre no qc pass: te over atmdxi no qc pass: te over framerelay no qc pass: te over ppp no qc pass: te over hdlc no qc pass: te over ethernet bridge no qc pass: te over ethernet vlan no qc pass: te over ethernet no qc pass: tunnel interface with mpls no qc pass: vlan tunneling with mpls no qc pass: ethernet tunneling with mpls no qc pass: atmdxi tunneling with mpls no qc pass: framerelay tunneling with mpls no qc pass: lapb tunneling with mpls no qc pass: ppp tunneling with mpls no qc pass: hdlc tunneling with mpls no qc pass: interworking between l2tp3 and ethernet over mpls no qc pass: multipoint ethernet over mpls no qc pass: vlan over mpls no qc pass: ethernet over mpls no qc pass: port mode ppp over mpls no qc pass: atmdxi over mpls no qc pass: framerelay over mpls no qc pass: lapb over mpls no qc pass: hdlc over mpls no qc pass: ppp over mpls no qc pass: mp2mp ldp tunnel mid+head no qc pass: mp2mp ldp tunnel no qc pass: p2mp ldp tunnel head+mid no qc pass: p2mp ldp tunnel no qc pass: p2p ldp tunnel no qc pass: ldp over hub and spoke subnet no qc pass: ldp over broadcast subnet no qc pass: ldp over gre no qc pass: ldp over atmdxi no qc pass: ldp over framerelay no qc pass: ldp over ppp no qc pass: ldp over hdlc no qc pass: ldp over ethernet bridge no qc pass: ldp over ethernet vlan no qc pass: ldp over ethernet no work: ldp over ethernet no work: ldp over ethernet vlan no work: ldp over ethernet bridge no work: ldp over hdlc no work: ldp over ppp no work: ldp over framerelay no work: ldp over atmdxi no work: ldp over gre no work: ldp over broadcast subnet no work: ldp over hub and spoke subnet no work: p2p ldp tunnel no work: p2mp ldp tunnel no work: p2mp ldp tunnel head+mid no work: mp2mp ldp tunnel no work: mp2mp ldp tunnel mid+head no work: ppp over mpls no work: hdlc over mpls no work: lapb over mpls no work: framerelay over mpls no work: atmdxi over mpls no work: port mode ppp over mpls no work: ethernet over mpls no work: vlan over mpls no work: multipoint ethernet over mpls no work: interworking between l2tp3 and ethernet over mpls no work: hdlc tunneling with mpls no work: ppp tunneling with mpls no work: lapb tunneling with mpls no work: framerelay tunneling with mpls no work: atmdxi tunneling with mpls no work: ethernet tunneling with mpls no work: vlan tunneling with mpls no work: tunnel interface with mpls no work: te over ethernet no work: te over ethernet vlan no work: te over ethernet bridge no work: te over hdlc no work: te over ppp no work: te over framerelay no work: te over atmdxi no work: te over gre no work: te in chain no work: ldp over te no work: pwe over te no work: ldp and te no work: p2mp te no work: p2mp te tail+mid no work: cross connect with pwe over mpls no work: cross connect with packet over udp no work: cross connect with vxlan no work: cross connect with erspan no work: cross connect interworking with packet over udp no work: cross connect interworking with vxlan no work: cross connect interworking with erspan no work: qos ingress transmit action no work: qos egress transmit action no work: qos ingress drop action no work: qos egress drop action no work: qos ingress policer action no work: qos egress policer action no work: qos ingress priority action no work: qos egress priority action no work: qos ingress bandwidth action no work: qos egress bandwidth action no work: qos ingress shaper action no work: qos egress shaper action no work: qos ingress hierarchical action no work: qos egress hierarchical action no work: qos ingress length matcher no work: qos egress length matcher no work: qos ingress tos matcher no work: qos egress tos matcher no work: qos ingress dscp matcher no work: qos egress dscp matcher no work: qos ingress prec matcher no work: qos egress prec matcher no work: qos ingress acl matcher no work: qos egress acl matcher no work: qos ingress ethertype matcher no work: qos egress ethertype matcher no work: qos ingress matcher on bridged traffic no work: qos egress matcher on bridged traffic no work: qos ingress qosgroup set no work: qos ingress tos set no work: qos egress tos set no work: qos ingress dscp set no work: qos egress dscp set no work: qos ingress prec set no work: qos egress prec set no work: qos cos set no work: qos ingress exp set no work: qos egress exp set no work: ebgp in chain no work: confed bgp in chain no work: ibgp in chain no work: ebgp in subnet no work: confed bgp in subnet no work: ibgp in subnet no work: ibgp fullmesh in subnet no work: ibgp rr in subnet no work: ebgp over loopback no work: ibgp over loopback no work: ibgp with mpls no work: ebgp with long as number no work: ibgp with long as number no work: bgp default route no work: bgp ingress route filtering with prefixlist no work: bgp egress route filtering with prefixlist no work: bgp ingress route filtering with routemap no work: bgp egress route filtering with routemap no work: bgp filtering with locpref no work: bgp filtering with origin no work: bgp filtering with metric no work: bgp filtering with standard community no work: bgp filtering with aspath no work: bgp locpref no work: bgp aspath no work: bgp origin no work: bgp metric no work: bgp locpref vs aspath no work: bgp aspath vs origin no work: bgp origin vs metric no work: bgp filtering with extended community no work: ebgp with labels no work: ibgp with labels no work: ebgp with bfd no work: vpns over ebgp no work: vpns over ibgp no work: bgp route server no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: bgp peer template no work: bgp listen no work: eigrp point2point connection no work: eigrp point2multipoint connection no work: eigrp point2point chain no work: eigrp delay no work: eigrp address suppression no work: eigrp ingress route filtering with prefixlist no work: eigrp egress route filtering with prefixlist no work: eigrp ingress route filtering with routemap no work: eigrp egress route filtering with routemap no work: eigrp default route no work: eigrp with bfd no work: eigrp peer template no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: isis peer template no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: ospf peer template no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: pvrp peer template no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution with eigrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip in chain no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: rip peer template no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2014-01-04 02:29:06 qc pass: ldp over ethernet qc pass: ldp over ethernet vlan qc pass: ldp over ethernet bridge qc pass: ldp over hdlc qc pass: ldp over ppp qc pass: ldp over framerelay qc pass: ldp over atmdxi qc pass: ldp over gre qc pass: ldp over broadcast subnet qc pass: ldp over hub and spoke subnet qc pass: p2p ldp tunnel qc pass: p2mp ldp tunnel qc pass: p2mp ldp tunnel head+mid qc pass: mp2mp ldp tunnel qc pass: mp2mp ldp tunnel mid+head qc pass: ppp over mpls qc pass: hdlc over mpls qc pass: lapb over mpls qc pass: framerelay over mpls qc pass: atmdxi over mpls qc pass: port mode ppp over mpls qc pass: ethernet over mpls qc pass: vlan over mpls qc pass: multipoint ethernet over mpls qc pass: interworking between l2tp3 and ethernet over mpls qc pass: hdlc tunneling with mpls qc pass: ppp tunneling with mpls qc pass: lapb tunneling with mpls qc pass: framerelay tunneling with mpls qc pass: atmdxi tunneling with mpls qc pass: ethernet tunneling with mpls qc pass: vlan tunneling with mpls qc pass: tunnel interface with mpls qc pass: te over ethernet qc pass: te over ethernet vlan qc pass: te over ethernet bridge qc pass: te over hdlc qc pass: te over ppp qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with erspan qc pass: cross connect interworking with packet over udp qc pass: cross connect interworking with vxlan qc pass: cross connect interworking with erspan qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos ingress hierarchical action qc pass: qos egress hierarchical action qc pass: qos ingress length matcher qc pass: qos egress length matcher qc pass: qos ingress tos matcher qc pass: qos egress tos matcher qc pass: qos ingress dscp matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress ethertype matcher qc pass: qos egress ethertype matcher qc pass: qos ingress matcher on bridged traffic qc pass: qos egress matcher on bridged traffic qc pass: qos ingress qosgroup set qc pass: qos ingress tos set qc pass: qos egress tos set qc pass: qos ingress dscp set qc pass: qos egress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd qc pass: eigrp peer template qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: isis peer template qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: ospf peer template qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: rip peer template qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2014-01-04 23:28:55 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip peer template no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip in chain no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with eigrp no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp peer template no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf peer template no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis peer template no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: eigrp peer template no qc pass: eigrp with bfd no qc pass: eigrp default route no qc pass: eigrp egress route filtering with routemap no qc pass: eigrp ingress route filtering with routemap no qc pass: eigrp egress route filtering with prefixlist no qc pass: eigrp ingress route filtering with prefixlist no qc pass: eigrp address suppression no qc pass: eigrp delay no qc pass: eigrp point2point chain no qc pass: eigrp point2multipoint connection no qc pass: eigrp point2point connection no qc pass: bgp listen no qc pass: bgp peer template no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no qc pass: bgp route server no qc pass: vpns over ibgp no qc pass: vpns over ebgp no qc pass: ebgp with bfd no qc pass: ibgp with labels no qc pass: ebgp with labels no qc pass: bgp filtering with extended community no qc pass: bgp origin vs metric no qc pass: bgp aspath vs origin no qc pass: bgp locpref vs aspath no qc pass: bgp metric no qc pass: bgp origin no qc pass: bgp aspath no qc pass: bgp locpref no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: bgp egress route filtering with routemap no qc pass: bgp ingress route filtering with routemap no qc pass: bgp egress route filtering with prefixlist no qc pass: bgp ingress route filtering with prefixlist no qc pass: bgp default route no qc pass: ibgp with long as number no qc pass: ebgp with long as number no qc pass: ibgp with mpls no qc pass: ibgp over loopback no qc pass: ebgp over loopback no qc pass: ibgp rr in subnet no qc pass: ibgp fullmesh in subnet no qc pass: ibgp in subnet no qc pass: confed bgp in subnet no qc pass: ebgp in subnet no qc pass: ibgp in chain no qc pass: confed bgp in chain no qc pass: ebgp in chain no qc pass: qos egress exp set no qc pass: qos ingress exp set no qc pass: qos cos set no qc pass: qos egress prec set no qc pass: qos ingress prec set no qc pass: qos egress dscp set no qc pass: qos ingress dscp set no qc pass: qos egress tos set no qc pass: qos ingress tos set no qc pass: qos ingress qosgroup set no qc pass: qos egress matcher on bridged traffic no qc pass: qos ingress matcher on bridged traffic no qc pass: qos egress ethertype matcher no qc pass: qos ingress ethertype matcher no qc pass: qos egress acl matcher no qc pass: qos ingress acl matcher no qc pass: qos egress prec matcher no qc pass: qos ingress prec matcher no qc pass: qos egress dscp matcher no qc pass: qos ingress dscp matcher no qc pass: qos egress tos matcher no qc pass: qos ingress tos matcher no qc pass: qos egress length matcher no qc pass: qos ingress length matcher no qc pass: qos egress hierarchical action no qc pass: qos ingress hierarchical action no qc pass: qos egress shaper action no qc pass: qos ingress shaper action no qc pass: qos egress bandwidth action no qc pass: qos ingress bandwidth action no qc pass: qos egress priority action no qc pass: qos ingress priority action no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: qos egress drop action no qc pass: qos ingress drop action no qc pass: qos egress transmit action no qc pass: qos ingress transmit action no qc pass: cross connect interworking with erspan no qc pass: cross connect interworking with vxlan no qc pass: cross connect interworking with packet over udp no qc pass: cross connect with erspan no qc pass: cross connect with vxlan no qc pass: cross connect with packet over udp no qc pass: cross connect with pwe over mpls no qc pass: p2mp te tail+mid no qc pass: p2mp te no qc pass: ldp and te no qc pass: pwe over te no qc pass: ldp over te no qc pass: te in chain no qc pass: te over gre no qc pass: te over atmdxi no qc pass: te over framerelay no qc pass: te over ppp no qc pass: te over hdlc no qc pass: te over ethernet bridge no qc pass: te over ethernet vlan no qc pass: te over ethernet no qc pass: tunnel interface with mpls no qc pass: vlan tunneling with mpls no qc pass: ethernet tunneling with mpls no qc pass: atmdxi tunneling with mpls no qc pass: framerelay tunneling with mpls no qc pass: lapb tunneling with mpls no qc pass: ppp tunneling with mpls no qc pass: hdlc tunneling with mpls no qc pass: interworking between l2tp3 and ethernet over mpls no qc pass: multipoint ethernet over mpls no qc pass: vlan over mpls no qc pass: ethernet over mpls no qc pass: port mode ppp over mpls no qc pass: atmdxi over mpls no qc pass: framerelay over mpls no qc pass: lapb over mpls no qc pass: hdlc over mpls no qc pass: ppp over mpls no qc pass: mp2mp ldp tunnel mid+head no qc pass: mp2mp ldp tunnel no qc pass: p2mp ldp tunnel head+mid no qc pass: p2mp ldp tunnel no qc pass: p2p ldp tunnel no qc pass: ldp over hub and spoke subnet no qc pass: ldp over broadcast subnet no qc pass: ldp over gre no qc pass: ldp over atmdxi no qc pass: ldp over framerelay no qc pass: ldp over ppp no qc pass: ldp over hdlc no qc pass: ldp over ethernet bridge no qc pass: ldp over ethernet vlan no qc pass: ldp over ethernet no work: ldp over ethernet no work: ldp over ethernet vlan no work: ldp over ethernet bridge no work: ldp over hdlc no work: ldp over ppp no work: ldp over framerelay no work: ldp over atmdxi no work: ldp over gre no work: ldp over broadcast subnet no work: ldp over hub and spoke subnet no work: p2p ldp tunnel no work: p2mp ldp tunnel no work: p2mp ldp tunnel head+mid no work: mp2mp ldp tunnel no work: mp2mp ldp tunnel mid+head no work: ppp over mpls no work: hdlc over mpls no work: lapb over mpls no work: framerelay over mpls no work: atmdxi over mpls no work: port mode ppp over mpls no work: ethernet over mpls no work: vlan over mpls no work: multipoint ethernet over mpls no work: interworking between l2tp3 and ethernet over mpls no work: hdlc tunneling with mpls no work: ppp tunneling with mpls no work: lapb tunneling with mpls no work: framerelay tunneling with mpls no work: atmdxi tunneling with mpls no work: ethernet tunneling with mpls no work: vlan tunneling with mpls no work: tunnel interface with mpls no work: te over ethernet no work: te over ethernet vlan no work: te over ethernet bridge no work: te over hdlc no work: te over ppp no work: te over framerelay no work: te over atmdxi no work: te over gre no work: te in chain no work: ldp over te no work: pwe over te no work: ldp and te no work: p2mp te no work: p2mp te tail+mid no work: cross connect with pwe over mpls no work: cross connect with packet over udp no work: cross connect with vxlan no work: cross connect with erspan no work: cross connect interworking with packet over udp no work: cross connect interworking with vxlan no work: cross connect interworking with erspan no work: qos ingress transmit action no work: qos egress transmit action no work: qos ingress drop action no work: qos egress drop action no work: qos ingress policer action no work: qos egress policer action no work: qos ingress priority action no work: qos egress priority action no work: qos ingress bandwidth action no work: qos egress bandwidth action no work: qos ingress shaper action no work: qos egress shaper action no work: qos ingress hierarchical action no work: qos egress hierarchical action no work: qos ingress length matcher no work: qos egress length matcher no work: qos ingress tos matcher no work: qos egress tos matcher no work: qos ingress dscp matcher no work: qos egress dscp matcher no work: qos ingress prec matcher no work: qos egress prec matcher no work: qos ingress acl matcher no work: qos egress acl matcher no work: qos ingress ethertype matcher no work: qos egress ethertype matcher no work: qos ingress matcher on bridged traffic no work: qos egress matcher on bridged traffic no work: qos ingress qosgroup set no work: qos ingress tos set no work: qos egress tos set no work: qos ingress dscp set no work: qos egress dscp set no work: qos ingress prec set no work: qos egress prec set no work: qos cos set no work: qos ingress exp set no work: qos egress exp set no work: ebgp in chain no work: confed bgp in chain no work: ibgp in chain no work: ebgp in subnet no work: confed bgp in subnet no work: ibgp in subnet no work: ibgp fullmesh in subnet no work: ibgp rr in subnet no work: ebgp over loopback no work: ibgp over loopback no work: ibgp with mpls no work: ebgp with long as number no work: ibgp with long as number no work: bgp default route no work: bgp ingress route filtering with prefixlist no work: bgp egress route filtering with prefixlist no work: bgp ingress route filtering with routemap no work: bgp egress route filtering with routemap no work: bgp filtering with locpref no work: bgp filtering with origin no work: bgp filtering with metric no work: bgp filtering with standard community no work: bgp filtering with aspath no work: bgp locpref no work: bgp aspath no work: bgp origin no work: bgp metric no work: bgp locpref vs aspath no work: bgp aspath vs origin no work: bgp origin vs metric no work: bgp filtering with extended community no work: ebgp with labels no work: ibgp with labels no work: ebgp with bfd no work: vpns over ebgp no work: vpns over ibgp no work: bgp route server no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: bgp peer template no work: bgp listen no work: eigrp point2point connection no work: eigrp point2multipoint connection no work: eigrp point2point chain no work: eigrp delay no work: eigrp address suppression no work: eigrp ingress route filtering with prefixlist no work: eigrp egress route filtering with prefixlist no work: eigrp ingress route filtering with routemap no work: eigrp egress route filtering with routemap no work: eigrp default route no work: eigrp with bfd no work: eigrp peer template no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: isis peer template no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: ospf peer template no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: pvrp peer template no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution with eigrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip in chain no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: rip peer template no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2014-01-05 02:10:30 qc pass: ldp over ethernet qc pass: ldp over ethernet vlan qc pass: ldp over ethernet bridge qc pass: ldp over hdlc qc pass: ldp over ppp qc pass: ldp over framerelay qc pass: ldp over atmdxi qc pass: ldp over gre qc pass: ldp over broadcast subnet qc pass: ldp over hub and spoke subnet qc pass: p2p ldp tunnel qc pass: p2mp ldp tunnel qc pass: p2mp ldp tunnel head+mid qc pass: mp2mp ldp tunnel qc pass: mp2mp ldp tunnel mid+head qc pass: ppp over mpls qc pass: hdlc over mpls qc pass: lapb over mpls qc pass: framerelay over mpls qc pass: atmdxi over mpls qc pass: port mode ppp over mpls qc pass: ethernet over mpls qc pass: vlan over mpls qc pass: multipoint ethernet over mpls qc pass: interworking between l2tp3 and ethernet over mpls qc pass: hdlc tunneling with mpls qc pass: ppp tunneling with mpls qc pass: lapb tunneling with mpls qc pass: framerelay tunneling with mpls qc pass: atmdxi tunneling with mpls qc pass: ethernet tunneling with mpls qc pass: vlan tunneling with mpls qc pass: tunnel interface with mpls qc pass: te over ethernet qc pass: te over ethernet vlan qc pass: te over ethernet bridge qc pass: te over hdlc qc pass: te over ppp qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with erspan qc pass: cross connect interworking with packet over udp qc pass: cross connect interworking with vxlan qc pass: cross connect interworking with erspan qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos ingress hierarchical action qc pass: qos egress hierarchical action qc pass: qos ingress length matcher qc pass: qos egress length matcher qc pass: qos ingress tos matcher qc pass: qos egress tos matcher qc pass: qos ingress dscp matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress ethertype matcher qc pass: qos egress ethertype matcher qc pass: qos ingress matcher on bridged traffic qc pass: qos egress matcher on bridged traffic qc pass: qos ingress qosgroup set qc pass: qos ingress tos set qc pass: qos egress tos set qc pass: qos ingress dscp set qc pass: qos egress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd qc pass: eigrp peer template qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: isis peer template qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: ospf peer template qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: rip peer template qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2014-01-06 14:34:50 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip peer template no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip in chain no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with eigrp no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp peer template no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf peer template no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis peer template no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: eigrp peer template no qc pass: eigrp with bfd no qc pass: eigrp default route no qc pass: eigrp egress route filtering with routemap no qc pass: eigrp ingress route filtering with routemap no qc pass: eigrp egress route filtering with prefixlist no qc pass: eigrp ingress route filtering with prefixlist no qc pass: eigrp address suppression no qc pass: eigrp delay no qc pass: eigrp point2point chain no qc pass: eigrp point2multipoint connection no qc pass: eigrp point2point connection no qc pass: bgp listen no qc pass: bgp peer template no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no qc pass: bgp route server no qc pass: vpns over ibgp no qc pass: vpns over ebgp no qc pass: ebgp with bfd no qc pass: ibgp with labels no qc pass: ebgp with labels no qc pass: bgp filtering with extended community no qc pass: bgp origin vs metric no qc pass: bgp aspath vs origin no qc pass: bgp locpref vs aspath no qc pass: bgp metric no qc pass: bgp origin no qc pass: bgp aspath no qc pass: bgp locpref no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: bgp egress route filtering with routemap no qc pass: bgp ingress route filtering with routemap no qc pass: bgp egress route filtering with prefixlist no qc pass: bgp ingress route filtering with prefixlist no qc pass: bgp default route no qc pass: ibgp with long as number no qc pass: ebgp with long as number no qc pass: ibgp with mpls no qc pass: ibgp over loopback no qc pass: ebgp over loopback no qc pass: ibgp rr in subnet no qc pass: ibgp fullmesh in subnet no qc pass: ibgp in subnet no qc pass: confed bgp in subnet no qc pass: ebgp in subnet no qc pass: ibgp in chain no qc pass: confed bgp in chain no qc pass: ebgp in chain no qc pass: qos egress exp set no qc pass: qos ingress exp set no qc pass: qos cos set no qc pass: qos egress prec set no qc pass: qos ingress prec set no qc pass: qos egress dscp set no qc pass: qos ingress dscp set no qc pass: qos egress tos set no qc pass: qos ingress tos set no qc pass: qos ingress qosgroup set no qc pass: qos egress matcher on bridged traffic no qc pass: qos ingress matcher on bridged traffic no qc pass: qos egress ethertype matcher no qc pass: qos ingress ethertype matcher no qc pass: qos egress acl matcher no qc pass: qos ingress acl matcher no qc pass: qos egress prec matcher no qc pass: qos ingress prec matcher no qc pass: qos egress dscp matcher no qc pass: qos ingress dscp matcher no qc pass: qos egress tos matcher no qc pass: qos ingress tos matcher no qc pass: qos egress length matcher no qc pass: qos ingress length matcher no qc pass: qos egress hierarchical action no qc pass: qos ingress hierarchical action no qc pass: qos egress shaper action no qc pass: qos ingress shaper action no qc pass: qos egress bandwidth action no qc pass: qos ingress bandwidth action no qc pass: qos egress priority action no qc pass: qos ingress priority action no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: qos egress drop action no qc pass: qos ingress drop action no qc pass: qos egress transmit action no qc pass: qos ingress transmit action no qc pass: cross connect interworking with erspan no qc pass: cross connect interworking with vxlan no qc pass: cross connect interworking with packet over udp no qc pass: cross connect with erspan no qc pass: cross connect with vxlan no qc pass: cross connect with packet over udp no qc pass: cross connect with pwe over mpls no qc pass: p2mp te tail+mid no qc pass: p2mp te no qc pass: ldp and te no qc pass: pwe over te no qc pass: ldp over te no qc pass: te in chain no qc pass: te over gre no qc pass: te over atmdxi no qc pass: te over framerelay no qc pass: te over ppp no qc pass: te over hdlc no qc pass: te over ethernet bridge no qc pass: te over ethernet vlan no qc pass: te over ethernet no qc pass: tunnel interface with mpls no qc pass: vlan tunneling with mpls no qc pass: ethernet tunneling with mpls no qc pass: atmdxi tunneling with mpls no qc pass: framerelay tunneling with mpls no qc pass: lapb tunneling with mpls no qc pass: ppp tunneling with mpls no qc pass: hdlc tunneling with mpls no qc pass: interworking between l2tp3 and ethernet over mpls no qc pass: multipoint ethernet over mpls no qc pass: vlan over mpls no qc pass: ethernet over mpls no qc pass: port mode ppp over mpls no qc pass: atmdxi over mpls no qc pass: framerelay over mpls no qc pass: lapb over mpls no qc pass: hdlc over mpls no qc pass: ppp over mpls no qc pass: mp2mp ldp tunnel mid+head no qc pass: mp2mp ldp tunnel no qc pass: p2mp ldp tunnel head+mid no qc pass: p2mp ldp tunnel no qc pass: p2p ldp tunnel no qc pass: ldp over hub and spoke subnet no qc pass: ldp over broadcast subnet no qc pass: ldp over gre no qc pass: ldp over atmdxi no qc pass: ldp over framerelay no qc pass: ldp over ppp no qc pass: ldp over hdlc no qc pass: ldp over ethernet bridge no qc pass: ldp over ethernet vlan no qc pass: ldp over ethernet no work: ldp over ethernet no work: ldp over ethernet vlan no work: ldp over ethernet bridge no work: ldp over hdlc no work: ldp over ppp no work: ldp over framerelay no work: ldp over atmdxi no work: ldp over gre no work: ldp over broadcast subnet no work: ldp over hub and spoke subnet no work: p2p ldp tunnel no work: p2mp ldp tunnel no work: p2mp ldp tunnel head+mid no work: mp2mp ldp tunnel no work: mp2mp ldp tunnel mid+head no work: ppp over mpls no work: hdlc over mpls no work: lapb over mpls no work: framerelay over mpls no work: atmdxi over mpls no work: port mode ppp over mpls no work: ethernet over mpls no work: vlan over mpls no work: multipoint ethernet over mpls no work: interworking between l2tp3 and ethernet over mpls no work: hdlc tunneling with mpls no work: ppp tunneling with mpls no work: lapb tunneling with mpls no work: framerelay tunneling with mpls no work: atmdxi tunneling with mpls no work: ethernet tunneling with mpls no work: vlan tunneling with mpls no work: tunnel interface with mpls no work: te over ethernet no work: te over ethernet vlan no work: te over ethernet bridge no work: te over hdlc no work: te over ppp no work: te over framerelay no work: te over atmdxi no work: te over gre no work: te in chain no work: ldp over te no work: pwe over te no work: ldp and te no work: p2mp te no work: p2mp te tail+mid no work: cross connect with pwe over mpls no work: cross connect with packet over udp no work: cross connect with vxlan no work: cross connect with erspan no work: cross connect interworking with packet over udp no work: cross connect interworking with vxlan no work: cross connect interworking with erspan no work: qos ingress transmit action no work: qos egress transmit action no work: qos ingress drop action no work: qos egress drop action no work: qos ingress policer action no work: qos egress policer action no work: qos ingress priority action no work: qos egress priority action no work: qos ingress bandwidth action no work: qos egress bandwidth action no work: qos ingress shaper action no work: qos egress shaper action no work: qos ingress hierarchical action no work: qos egress hierarchical action no work: qos ingress length matcher no work: qos egress length matcher no work: qos ingress tos matcher no work: qos egress tos matcher no work: qos ingress dscp matcher no work: qos egress dscp matcher no work: qos ingress prec matcher no work: qos egress prec matcher no work: qos ingress acl matcher no work: qos egress acl matcher no work: qos ingress ethertype matcher no work: qos egress ethertype matcher no work: qos ingress matcher on bridged traffic no work: qos egress matcher on bridged traffic no work: qos ingress qosgroup set no work: qos ingress tos set no work: qos egress tos set no work: qos ingress dscp set no work: qos egress dscp set no work: qos ingress prec set no work: qos egress prec set no work: qos cos set no work: qos ingress exp set no work: qos egress exp set no work: ebgp in chain no work: confed bgp in chain no work: ibgp in chain no work: ebgp in subnet no work: confed bgp in subnet no work: ibgp in subnet no work: ibgp fullmesh in subnet no work: ibgp rr in subnet no work: ebgp over loopback no work: ibgp over loopback no work: ibgp with mpls no work: ebgp with long as number no work: ibgp with long as number no work: bgp default route no work: bgp ingress route filtering with prefixlist no work: bgp egress route filtering with prefixlist no work: bgp ingress route filtering with routemap no work: bgp egress route filtering with routemap no work: bgp filtering with locpref no work: bgp filtering with origin no work: bgp filtering with metric no work: bgp filtering with standard community no work: bgp filtering with aspath no work: bgp locpref no work: bgp aspath no work: bgp origin no work: bgp metric no work: bgp locpref vs aspath no work: bgp aspath vs origin no work: bgp origin vs metric no work: bgp filtering with extended community no work: ebgp with labels no work: ibgp with labels no work: ebgp with bfd no work: vpns over ebgp no work: vpns over ibgp no work: bgp route server no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: bgp peer template no work: bgp listen no work: eigrp point2point connection no work: eigrp point2multipoint connection no work: eigrp point2point chain no work: eigrp delay no work: eigrp address suppression no work: eigrp ingress route filtering with prefixlist no work: eigrp egress route filtering with prefixlist no work: eigrp ingress route filtering with routemap no work: eigrp egress route filtering with routemap no work: eigrp default route no work: eigrp with bfd no work: eigrp peer template no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: isis peer template no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: ospf peer template no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: pvrp peer template no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution with eigrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip in chain no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: rip peer template no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2014-01-06 19:47:24 qc pass: ldp over ethernet qc pass: ldp over ethernet vlan qc pass: ldp over ethernet bridge qc pass: ldp over hdlc qc pass: ldp over ppp qc pass: ldp over framerelay qc pass: ldp over atmdxi qc pass: ldp over gre qc pass: ldp over broadcast subnet qc pass: ldp over hub and spoke subnet qc pass: p2p ldp tunnel qc pass: p2mp ldp tunnel qc pass: p2mp ldp tunnel head+mid qc pass: mp2mp ldp tunnel qc pass: mp2mp ldp tunnel mid+head qc pass: ppp over mpls qc pass: hdlc over mpls qc pass: lapb over mpls qc pass: framerelay over mpls qc pass: atmdxi over mpls qc pass: port mode ppp over mpls qc pass: ethernet over mpls qc pass: vlan over mpls qc pass: multipoint ethernet over mpls qc pass: interworking between l2tp3 and ethernet over mpls qc pass: hdlc tunneling with mpls qc pass: ppp tunneling with mpls qc pass: lapb tunneling with mpls qc pass: framerelay tunneling with mpls qc pass: atmdxi tunneling with mpls qc pass: ethernet tunneling with mpls qc pass: vlan tunneling with mpls qc pass: tunnel interface with mpls qc pass: te over ethernet qc pass: te over ethernet vlan qc pass: te over ethernet bridge qc pass: te over hdlc qc pass: te over ppp qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with erspan qc pass: cross connect interworking with packet over udp qc pass: cross connect interworking with vxlan qc pass: cross connect interworking with erspan qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos ingress hierarchical action qc pass: qos egress hierarchical action qc pass: qos ingress length matcher qc pass: qos egress length matcher qc pass: qos ingress tos matcher qc pass: qos egress tos matcher qc pass: qos ingress dscp matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress ethertype matcher qc pass: qos egress ethertype matcher qc pass: qos ingress matcher on bridged traffic qc pass: qos egress matcher on bridged traffic qc pass: qos ingress qosgroup set qc pass: qos ingress tos set qc pass: qos egress tos set qc pass: qos ingress dscp set qc pass: qos egress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd qc pass: eigrp peer template qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: isis peer template qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: ospf peer template qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: rip peer template qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2014-01-16 12:10:56 no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp qc pass: unnamed qc pass: unnamed ---------------------------------- 2014-01-19 21:10:53 no qc pass: unnamed no qc pass: unnamed qc pass: redistribution with bgp qc pass: redistribution with bgp vpn ---------------------------------- 2014-01-20 20:31:19 no qc pass: ppp with tacacs authentication no work: ppp with tacacs authentication ---------------------------------- 2014-01-30 10:50:07 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip peer template no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip in chain no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with eigrp no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp peer template no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf peer template no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis peer template no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: eigrp peer template no qc pass: eigrp with bfd no qc pass: eigrp default route no qc pass: eigrp egress route filtering with routemap no qc pass: eigrp ingress route filtering with routemap no qc pass: eigrp egress route filtering with prefixlist no qc pass: eigrp ingress route filtering with prefixlist no qc pass: eigrp address suppression no qc pass: eigrp delay no qc pass: eigrp point2point chain no qc pass: eigrp point2multipoint connection no qc pass: eigrp point2point connection no qc pass: bgp listen no qc pass: bgp peer template no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no qc pass: bgp route server no qc pass: vpns over ibgp no qc pass: vpns over ebgp no qc pass: ebgp with bfd no qc pass: ibgp with labels no qc pass: ebgp with labels no qc pass: bgp filtering with extended community no qc pass: bgp origin vs metric no qc pass: bgp aspath vs origin no qc pass: bgp locpref vs aspath no qc pass: bgp metric no qc pass: bgp origin no qc pass: bgp aspath no qc pass: bgp locpref no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: bgp egress route filtering with routemap no qc pass: bgp ingress route filtering with routemap no qc pass: bgp egress route filtering with prefixlist no qc pass: bgp ingress route filtering with prefixlist no qc pass: bgp default route no qc pass: ibgp with long as number no qc pass: ebgp with long as number no qc pass: ibgp with mpls no qc pass: ibgp over loopback no qc pass: ebgp over loopback no qc pass: ibgp rr in subnet no qc pass: ibgp fullmesh in subnet no qc pass: ibgp in subnet no qc pass: confed bgp in subnet no qc pass: ebgp in subnet no qc pass: ibgp in chain no qc pass: confed bgp in chain no qc pass: ebgp in chain no qc pass: qos egress exp set no qc pass: qos ingress exp set no qc pass: qos cos set no qc pass: qos egress prec set no qc pass: qos ingress prec set no qc pass: qos egress dscp set no qc pass: qos ingress dscp set no qc pass: qos egress tos set no qc pass: qos ingress tos set no qc pass: qos ingress qosgroup set no qc pass: qos egress matcher on bridged traffic no qc pass: qos ingress matcher on bridged traffic no qc pass: qos egress ethertype matcher no qc pass: qos ingress ethertype matcher no qc pass: qos egress acl matcher no qc pass: qos ingress acl matcher no qc pass: qos egress prec matcher no qc pass: qos ingress prec matcher no qc pass: qos egress dscp matcher no qc pass: qos ingress dscp matcher no qc pass: qos egress tos matcher no qc pass: qos ingress tos matcher no qc pass: qos egress length matcher no qc pass: qos ingress length matcher no qc pass: qos egress hierarchical action no qc pass: qos ingress hierarchical action no qc pass: qos egress shaper action no qc pass: qos ingress shaper action no qc pass: qos egress bandwidth action no qc pass: qos ingress bandwidth action no qc pass: qos egress priority action no qc pass: qos ingress priority action no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: qos egress drop action no qc pass: qos ingress drop action no qc pass: qos egress transmit action no qc pass: qos ingress transmit action no qc pass: cross connect interworking with erspan no qc pass: cross connect interworking with vxlan no qc pass: cross connect interworking with packet over udp no qc pass: cross connect with erspan no qc pass: cross connect with vxlan no qc pass: cross connect with packet over udp no qc pass: cross connect with pwe over mpls no qc pass: p2mp te tail+mid no qc pass: p2mp te no qc pass: ldp and te no qc pass: pwe over te no qc pass: ldp over te no qc pass: te in chain no qc pass: te over gre no qc pass: te over atmdxi no qc pass: te over framerelay no qc pass: te over ppp no qc pass: te over hdlc no qc pass: te over ethernet bridge no qc pass: te over ethernet vlan no qc pass: te over ethernet no qc pass: tunnel interface with mpls no qc pass: vlan tunneling with mpls no qc pass: ethernet tunneling with mpls no qc pass: atmdxi tunneling with mpls no qc pass: framerelay tunneling with mpls no qc pass: lapb tunneling with mpls no qc pass: ppp tunneling with mpls no qc pass: hdlc tunneling with mpls no qc pass: interworking between l2tp3 and ethernet over mpls no qc pass: multipoint ethernet over mpls no qc pass: vlan over mpls no qc pass: ethernet over mpls no qc pass: port mode ppp over mpls no qc pass: atmdxi over mpls no qc pass: framerelay over mpls no qc pass: lapb over mpls no qc pass: hdlc over mpls no qc pass: ppp over mpls no qc pass: mp2mp ldp tunnel mid+head no qc pass: mp2mp ldp tunnel no qc pass: p2mp ldp tunnel head+mid no qc pass: p2mp ldp tunnel no qc pass: p2p ldp tunnel no qc pass: ldp over hub and spoke subnet no qc pass: ldp over broadcast subnet no qc pass: ldp over gre no qc pass: ldp over atmdxi no qc pass: ldp over framerelay no qc pass: ldp over ppp no qc pass: ldp over hdlc no qc pass: ldp over ethernet bridge no qc pass: ldp over ethernet vlan no qc pass: ldp over ethernet qc pass: ppp with tacacs authentication no work: ldp over ethernet no work: ldp over ethernet vlan no work: ldp over ethernet bridge no work: ldp over hdlc no work: ldp over ppp no work: ldp over framerelay no work: ldp over atmdxi no work: ldp over gre no work: ldp over broadcast subnet no work: ldp over hub and spoke subnet no work: p2p ldp tunnel no work: p2mp ldp tunnel no work: p2mp ldp tunnel head+mid no work: mp2mp ldp tunnel no work: mp2mp ldp tunnel mid+head no work: ppp over mpls no work: hdlc over mpls no work: lapb over mpls no work: framerelay over mpls no work: atmdxi over mpls no work: port mode ppp over mpls no work: ethernet over mpls no work: vlan over mpls no work: multipoint ethernet over mpls no work: interworking between l2tp3 and ethernet over mpls no work: hdlc tunneling with mpls no work: ppp tunneling with mpls no work: lapb tunneling with mpls no work: framerelay tunneling with mpls no work: atmdxi tunneling with mpls no work: ethernet tunneling with mpls no work: vlan tunneling with mpls no work: tunnel interface with mpls no work: te over ethernet no work: te over ethernet vlan no work: te over ethernet bridge no work: te over hdlc no work: te over ppp no work: te over framerelay no work: te over atmdxi no work: te over gre no work: te in chain no work: ldp over te no work: pwe over te no work: ldp and te no work: p2mp te no work: p2mp te tail+mid no work: cross connect with pwe over mpls no work: cross connect with packet over udp no work: cross connect with vxlan no work: cross connect with erspan no work: cross connect interworking with packet over udp no work: cross connect interworking with vxlan no work: cross connect interworking with erspan no work: qos ingress transmit action no work: qos egress transmit action no work: qos ingress drop action no work: qos egress drop action no work: qos ingress policer action no work: qos egress policer action no work: qos ingress priority action no work: qos egress priority action no work: qos ingress bandwidth action no work: qos egress bandwidth action no work: qos ingress shaper action no work: qos egress shaper action no work: qos ingress hierarchical action no work: qos egress hierarchical action no work: qos ingress length matcher no work: qos egress length matcher no work: qos ingress tos matcher no work: qos egress tos matcher no work: qos ingress dscp matcher no work: qos egress dscp matcher no work: qos ingress prec matcher no work: qos egress prec matcher no work: qos ingress acl matcher no work: qos egress acl matcher no work: qos ingress ethertype matcher no work: qos egress ethertype matcher no work: qos ingress matcher on bridged traffic no work: qos egress matcher on bridged traffic no work: qos ingress qosgroup set no work: qos ingress tos set no work: qos egress tos set no work: qos ingress dscp set no work: qos egress dscp set no work: qos ingress prec set no work: qos egress prec set no work: qos cos set no work: qos ingress exp set no work: qos egress exp set no work: ebgp in chain no work: confed bgp in chain no work: ibgp in chain no work: ebgp in subnet no work: confed bgp in subnet no work: ibgp in subnet no work: ibgp fullmesh in subnet no work: ibgp rr in subnet no work: ebgp over loopback no work: ibgp over loopback no work: ibgp with mpls no work: ebgp with long as number no work: ibgp with long as number no work: bgp default route no work: bgp ingress route filtering with prefixlist no work: bgp egress route filtering with prefixlist no work: bgp ingress route filtering with routemap no work: bgp egress route filtering with routemap no work: bgp filtering with locpref no work: bgp filtering with origin no work: bgp filtering with metric no work: bgp filtering with standard community no work: bgp filtering with aspath no work: bgp locpref no work: bgp aspath no work: bgp origin no work: bgp metric no work: bgp locpref vs aspath no work: bgp aspath vs origin no work: bgp origin vs metric no work: bgp filtering with extended community no work: ebgp with labels no work: ibgp with labels no work: ebgp with bfd no work: vpns over ebgp no work: vpns over ibgp no work: bgp route server no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: bgp peer template no work: bgp listen no work: eigrp point2point connection no work: eigrp point2multipoint connection no work: eigrp point2point chain no work: eigrp delay no work: eigrp address suppression no work: eigrp ingress route filtering with prefixlist no work: eigrp egress route filtering with prefixlist no work: eigrp ingress route filtering with routemap no work: eigrp egress route filtering with routemap no work: eigrp default route no work: eigrp with bfd no work: eigrp peer template no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: isis peer template no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: ospf peer template no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: pvrp peer template no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution with eigrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip in chain no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: rip peer template no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2014-01-31 21:09:30 qc pass: ldp over ethernet qc pass: ldp over ethernet vlan qc pass: ldp over ethernet bridge qc pass: ldp over hdlc qc pass: ldp over ppp qc pass: ldp over framerelay qc pass: ldp over atmdxi qc pass: ldp over gre qc pass: ldp over broadcast subnet qc pass: ldp over hub and spoke subnet qc pass: p2p ldp tunnel qc pass: p2mp ldp tunnel qc pass: p2mp ldp tunnel head+mid qc pass: mp2mp ldp tunnel qc pass: mp2mp ldp tunnel mid+head qc pass: ppp over mpls qc pass: hdlc over mpls qc pass: lapb over mpls qc pass: framerelay over mpls qc pass: atmdxi over mpls qc pass: port mode ppp over mpls qc pass: ethernet over mpls qc pass: vlan over mpls qc pass: multipoint ethernet over mpls qc pass: interworking between l2tp3 and ethernet over mpls qc pass: hdlc tunneling with mpls qc pass: ppp tunneling with mpls qc pass: lapb tunneling with mpls qc pass: framerelay tunneling with mpls qc pass: atmdxi tunneling with mpls qc pass: ethernet tunneling with mpls qc pass: vlan tunneling with mpls qc pass: tunnel interface with mpls qc pass: te over ethernet qc pass: te over ethernet vlan qc pass: te over ethernet bridge qc pass: te over hdlc qc pass: te over ppp qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with erspan qc pass: cross connect interworking with packet over udp qc pass: cross connect interworking with vxlan qc pass: cross connect interworking with erspan qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos ingress hierarchical action qc pass: qos egress hierarchical action qc pass: qos ingress length matcher qc pass: qos egress length matcher qc pass: qos ingress tos matcher qc pass: qos egress tos matcher qc pass: qos ingress dscp matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress ethertype matcher qc pass: qos egress ethertype matcher qc pass: qos ingress matcher on bridged traffic qc pass: qos egress matcher on bridged traffic qc pass: qos ingress qosgroup set qc pass: qos ingress tos set qc pass: qos egress tos set qc pass: qos ingress dscp set qc pass: qos egress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd qc pass: eigrp peer template qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: isis peer template qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: ospf peer template qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: rip peer template qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2014-02-12 13:09:30 no qc pass: tacacs server no qc pass: socks5 server no qc pass: socks4 server no qc pass: sipmodem server no qc pass: scheduler no qc pass: radius server no qc pass: proxy server no qc pass: load balancer server no qc pass: forwarder server no qc pass: dynamic tunnel destination no qc pass: relaying dns server no qc pass: authoritative dns server no qc pass: static routing with bfd tracker no qc pass: static routing with tcp tracker no qc pass: static routing with icmp tracker no qc pass: static routing with distance no qc pass: static routing no qc pass: rip peer template no qc pass: rip with bfd no qc pass: rip metric no qc pass: rip authentication no qc pass: rip default route no qc pass: rip address suppression no qc pass: rip tag no qc pass: rip hop count no qc pass: rip egress route filtering with routemap no qc pass: rip ingress route filtering with routemap no qc pass: rip egress route filtering with prefixlist no qc pass: rip ingress route filtering with prefixlist no qc pass: rip in chain no qc pass: rip on one subnet no qc pass: redistribution with everything no qc pass: redistribution with prefixes no qc pass: redistribution filtering with routemap no qc pass: redistribution filtering with prefixlist no qc pass: redistribution with eigrp no qc pass: redistribution with pvrp no qc pass: redistribution with bgp vpn no qc pass: redistribution with bgp no qc pass: redistribution with rip no qc pass: redistribution with ospf no qc pass: redistribution with isis no qc pass: pvrp peer template no qc pass: pvrp tls encryption no qc pass: pvrp ssh encryption no qc pass: pvrp authentication no qc pass: pvrp with bfd no qc pass: pvrp default route no qc pass: pvrp tag no qc pass: pvrp egress route filtering with routemap no qc pass: pvrp ingress route filtering with routemap no qc pass: pvrp egress route filtering with prefixlist no qc pass: pvrp ingress route filtering with prefixlist no qc pass: pvrp address suppression no qc pass: pvrp metric no qc pass: pvrp point2point chain no qc pass: pvrp point2multipoint connection no qc pass: pvrp point2point connection no qc pass: ospf peer template no qc pass: ospf with te no qc pass: ospf with bfd no qc pass: ospf default route no qc pass: ospf inter area egress filtering with routemap no qc pass: ospf inter area egress filtering with prefixlist no qc pass: ospf inter area ingress filtering with routemap no qc pass: ospf inter area ingress filtering with prefixlist no qc pass: ospf authentication no qc pass: ospf address suppression no qc pass: ospf external2 metric no qc pass: ospf external1 metric no qc pass: ospf external1 vs external2 no qc pass: ospf inter area vs external no qc pass: ospf intra area vs inter area no qc pass: ospf intra area metric no qc pass: ospf transit area no qc pass: ospf nssa area no qc pass: ospf stub area no qc pass: ospf broadcast chain no qc pass: ospf point2point chain no qc pass: ospf nonbroadcast connection no qc pass: ospf broadcast connection no qc pass: ospf point2multipoint nonbroadcast connection no qc pass: ospf point2multipoint connection no qc pass: ospf point2point connection no qc pass: multicast routing with mldp no qc pass: multicast routing with igmp/mld no qc pass: multicast routing with pim ssm no qc pass: multicast routing with static flooding no qc pass: isis peer template no qc pass: isis with te no qc pass: isis with bfd no qc pass: isis default route no qc pass: isis inter level egress filtering with routemap no qc pass: isis inter level egress filtering with prefixlist no qc pass: isis inter level ingress filtering with routemap no qc pass: isis inter level ingress filtering with prefixlist no qc pass: isis external metric vs intra level metric no qc pass: isis external narrow metric no qc pass: isis external metric no qc pass: isis intra level metric no qc pass: isis authentication no qc pass: isis inter-level routes no qc pass: isis address suppression no qc pass: isis updown bit with narrow metric no qc pass: isis updown bit no qc pass: isis broadcast subnet no qc pass: isis chain of broadcast nets no qc pass: isis attached no qc pass: isis overload no qc pass: isis narrow metric no qc pass: isis over gre no qc pass: isis over atmdxi no qc pass: isis over framerelay no qc pass: isis over ppp no qc pass: isis over hdlc no qc pass: isis over ethernet bridge no qc pass: isis over ethernet vlan no qc pass: isis over ethernet no qc pass: eigrp peer template no qc pass: eigrp with bfd no qc pass: eigrp default route no qc pass: eigrp egress route filtering with routemap no qc pass: eigrp ingress route filtering with routemap no qc pass: eigrp egress route filtering with prefixlist no qc pass: eigrp ingress route filtering with prefixlist no qc pass: eigrp address suppression no qc pass: eigrp delay no qc pass: eigrp point2point chain no qc pass: eigrp point2multipoint connection no qc pass: eigrp point2point connection no qc pass: bgp listen no qc pass: bgp peer template no qc pass: vpls over ibgp no qc pass: vpls over ebgp no qc pass: bgp nexthop peer no qc pass: bgp nexthop self no qc pass: bgp override as no qc pass: bgp remove private as no qc pass: bgp allow as in no qc pass: bgp aspath check no qc pass: bgp enforce first as no qc pass: bgp route server no qc pass: vpns over ibgp no qc pass: vpns over ebgp no qc pass: ebgp with bfd no qc pass: ibgp with labels no qc pass: ebgp with labels no qc pass: bgp filtering with extended community no qc pass: bgp origin vs metric no qc pass: bgp aspath vs origin no qc pass: bgp locpref vs aspath no qc pass: bgp metric no qc pass: bgp origin no qc pass: bgp aspath no qc pass: bgp locpref no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: bgp egress route filtering with routemap no qc pass: bgp ingress route filtering with routemap no qc pass: bgp egress route filtering with prefixlist no qc pass: bgp ingress route filtering with prefixlist no qc pass: bgp default route no qc pass: ibgp with long as number no qc pass: ebgp with long as number no qc pass: ibgp with mpls no qc pass: ibgp over loopback no qc pass: ebgp over loopback no qc pass: ibgp rr in subnet no qc pass: ibgp fullmesh in subnet no qc pass: ibgp in subnet no qc pass: confed bgp in subnet no qc pass: ebgp in subnet no qc pass: ibgp in chain no qc pass: confed bgp in chain no qc pass: ebgp in chain no qc pass: qos egress exp set no qc pass: qos ingress exp set no qc pass: qos cos set no qc pass: qos egress prec set no qc pass: qos ingress prec set no qc pass: qos egress dscp set no qc pass: qos ingress dscp set no qc pass: qos egress tos set no qc pass: qos ingress tos set no qc pass: qos ingress qosgroup set no qc pass: qos egress matcher on bridged traffic no qc pass: qos ingress matcher on bridged traffic no qc pass: qos egress ethertype matcher no qc pass: qos ingress ethertype matcher no qc pass: qos egress acl matcher no qc pass: qos ingress acl matcher no qc pass: qos egress prec matcher no qc pass: qos ingress prec matcher no qc pass: qos egress dscp matcher no qc pass: qos ingress dscp matcher no qc pass: qos egress tos matcher no qc pass: qos ingress tos matcher no qc pass: qos egress length matcher no qc pass: qos ingress length matcher no qc pass: qos egress hierarchical action no qc pass: qos ingress hierarchical action no qc pass: qos egress shaper action no qc pass: qos ingress shaper action no qc pass: qos egress bandwidth action no qc pass: qos ingress bandwidth action no qc pass: qos egress priority action no qc pass: qos ingress priority action no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: qos egress drop action no qc pass: qos ingress drop action no qc pass: qos egress transmit action no qc pass: qos ingress transmit action no qc pass: cross connect interworking with erspan no qc pass: cross connect interworking with vxlan no qc pass: cross connect interworking with packet over udp no qc pass: cross connect with erspan no qc pass: cross connect with vxlan no qc pass: cross connect with packet over udp no qc pass: cross connect with pwe over mpls no qc pass: p2mp te tail+mid no qc pass: p2mp te no qc pass: ldp and te no qc pass: pwe over te no qc pass: ldp over te no qc pass: te in chain no qc pass: te over gre no qc pass: te over atmdxi no qc pass: te over framerelay no qc pass: te over ppp no qc pass: te over hdlc no qc pass: te over ethernet bridge no qc pass: te over ethernet vlan no qc pass: te over ethernet no qc pass: tunnel interface with mpls no qc pass: vlan tunneling with mpls no qc pass: ethernet tunneling with mpls no qc pass: atmdxi tunneling with mpls no qc pass: framerelay tunneling with mpls no qc pass: lapb tunneling with mpls no qc pass: ppp tunneling with mpls no qc pass: hdlc tunneling with mpls no qc pass: interworking between l2tp3 and ethernet over mpls no qc pass: multipoint ethernet over mpls no qc pass: vlan over mpls no qc pass: ethernet over mpls no qc pass: port mode ppp over mpls no qc pass: atmdxi over mpls no qc pass: framerelay over mpls no qc pass: lapb over mpls no qc pass: hdlc over mpls no qc pass: ppp over mpls no qc pass: mp2mp ldp tunnel mid+head no qc pass: mp2mp ldp tunnel no qc pass: p2mp ldp tunnel head+mid no qc pass: p2mp ldp tunnel no qc pass: p2p ldp tunnel no qc pass: ldp over hub and spoke subnet no qc pass: ldp over broadcast subnet no qc pass: ldp over gre no qc pass: ldp over atmdxi no qc pass: ldp over framerelay no qc pass: ldp over ppp no qc pass: ldp over hdlc no qc pass: ldp over ethernet bridge no qc pass: ldp over ethernet vlan no qc pass: ldp over ethernet no work: ldp over ethernet no work: ldp over ethernet vlan no work: ldp over ethernet bridge no work: ldp over hdlc no work: ldp over ppp no work: ldp over framerelay no work: ldp over atmdxi no work: ldp over gre no work: ldp over broadcast subnet no work: ldp over hub and spoke subnet no work: p2p ldp tunnel no work: p2mp ldp tunnel no work: p2mp ldp tunnel head+mid no work: mp2mp ldp tunnel no work: mp2mp ldp tunnel mid+head no work: ppp over mpls no work: hdlc over mpls no work: lapb over mpls no work: framerelay over mpls no work: atmdxi over mpls no work: port mode ppp over mpls no work: ethernet over mpls no work: vlan over mpls no work: multipoint ethernet over mpls no work: interworking between l2tp3 and ethernet over mpls no work: hdlc tunneling with mpls no work: ppp tunneling with mpls no work: lapb tunneling with mpls no work: framerelay tunneling with mpls no work: atmdxi tunneling with mpls no work: ethernet tunneling with mpls no work: vlan tunneling with mpls no work: tunnel interface with mpls no work: te over ethernet no work: te over ethernet vlan no work: te over ethernet bridge no work: te over hdlc no work: te over ppp no work: te over framerelay no work: te over atmdxi no work: te over gre no work: te in chain no work: ldp over te no work: pwe over te no work: ldp and te no work: p2mp te no work: p2mp te tail+mid no work: cross connect with pwe over mpls no work: cross connect with packet over udp no work: cross connect with vxlan no work: cross connect with erspan no work: cross connect interworking with packet over udp no work: cross connect interworking with vxlan no work: cross connect interworking with erspan no work: qos ingress transmit action no work: qos egress transmit action no work: qos ingress drop action no work: qos egress drop action no work: qos ingress policer action no work: qos egress policer action no work: qos ingress priority action no work: qos egress priority action no work: qos ingress bandwidth action no work: qos egress bandwidth action no work: qos ingress shaper action no work: qos egress shaper action no work: qos ingress hierarchical action no work: qos egress hierarchical action no work: qos ingress length matcher no work: qos egress length matcher no work: qos ingress tos matcher no work: qos egress tos matcher no work: qos ingress dscp matcher no work: qos egress dscp matcher no work: qos ingress prec matcher no work: qos egress prec matcher no work: qos ingress acl matcher no work: qos egress acl matcher no work: qos ingress ethertype matcher no work: qos egress ethertype matcher no work: qos ingress matcher on bridged traffic no work: qos egress matcher on bridged traffic no work: qos ingress qosgroup set no work: qos ingress tos set no work: qos egress tos set no work: qos ingress dscp set no work: qos egress dscp set no work: qos ingress prec set no work: qos egress prec set no work: qos cos set no work: qos ingress exp set no work: qos egress exp set no work: ebgp in chain no work: confed bgp in chain no work: ibgp in chain no work: ebgp in subnet no work: confed bgp in subnet no work: ibgp in subnet no work: ibgp fullmesh in subnet no work: ibgp rr in subnet no work: ebgp over loopback no work: ibgp over loopback no work: ibgp with mpls no work: ebgp with long as number no work: ibgp with long as number no work: bgp default route no work: bgp ingress route filtering with prefixlist no work: bgp egress route filtering with prefixlist no work: bgp ingress route filtering with routemap no work: bgp egress route filtering with routemap no work: bgp filtering with locpref no work: bgp filtering with origin no work: bgp filtering with metric no work: bgp filtering with standard community no work: bgp filtering with aspath no work: bgp locpref no work: bgp aspath no work: bgp origin no work: bgp metric no work: bgp locpref vs aspath no work: bgp aspath vs origin no work: bgp origin vs metric no work: bgp filtering with extended community no work: ebgp with labels no work: ibgp with labels no work: ebgp with bfd no work: vpns over ebgp no work: vpns over ibgp no work: bgp route server no work: bgp enforce first as no work: bgp aspath check no work: bgp allow as in no work: bgp remove private as no work: bgp override as no work: bgp nexthop self no work: bgp nexthop peer no work: vpls over ebgp no work: vpls over ibgp no work: bgp peer template no work: bgp listen no work: eigrp point2point connection no work: eigrp point2multipoint connection no work: eigrp point2point chain no work: eigrp delay no work: eigrp address suppression no work: eigrp ingress route filtering with prefixlist no work: eigrp egress route filtering with prefixlist no work: eigrp ingress route filtering with routemap no work: eigrp egress route filtering with routemap no work: eigrp default route no work: eigrp with bfd no work: eigrp peer template no work: isis over ethernet no work: isis over ethernet vlan no work: isis over ethernet bridge no work: isis over hdlc no work: isis over ppp no work: isis over framerelay no work: isis over atmdxi no work: isis over gre no work: isis narrow metric no work: isis overload no work: isis attached no work: isis chain of broadcast nets no work: isis broadcast subnet no work: isis updown bit no work: isis updown bit with narrow metric no work: isis address suppression no work: isis inter-level routes no work: isis authentication no work: isis intra level metric no work: isis external metric no work: isis external narrow metric no work: isis external metric vs intra level metric no work: isis inter level ingress filtering with prefixlist no work: isis inter level ingress filtering with routemap no work: isis inter level egress filtering with prefixlist no work: isis inter level egress filtering with routemap no work: isis default route no work: isis with bfd no work: isis with te no work: isis peer template no work: multicast routing with static flooding no work: multicast routing with pim ssm no work: multicast routing with igmp/mld no work: multicast routing with mldp no work: ospf point2point connection no work: ospf point2multipoint connection no work: ospf point2multipoint nonbroadcast connection no work: ospf broadcast connection no work: ospf nonbroadcast connection no work: ospf point2point chain no work: ospf broadcast chain no work: ospf stub area no work: ospf nssa area no work: ospf transit area no work: ospf intra area metric no work: ospf intra area vs inter area no work: ospf inter area vs external no work: ospf external1 vs external2 no work: ospf external1 metric no work: ospf external2 metric no work: ospf address suppression no work: ospf authentication no work: ospf inter area ingress filtering with prefixlist no work: ospf inter area ingress filtering with routemap no work: ospf inter area egress filtering with prefixlist no work: ospf inter area egress filtering with routemap no work: ospf default route no work: ospf with bfd no work: ospf with te no work: ospf peer template no work: pvrp point2point connection no work: pvrp point2multipoint connection no work: pvrp point2point chain no work: pvrp metric no work: pvrp address suppression no work: pvrp ingress route filtering with prefixlist no work: pvrp egress route filtering with prefixlist no work: pvrp ingress route filtering with routemap no work: pvrp egress route filtering with routemap no work: pvrp tag no work: pvrp default route no work: pvrp with bfd no work: pvrp authentication no work: pvrp ssh encryption no work: pvrp tls encryption no work: pvrp peer template no work: redistribution with isis no work: redistribution with ospf no work: redistribution with rip no work: redistribution with bgp no work: redistribution with bgp vpn no work: redistribution with pvrp no work: redistribution with eigrp no work: redistribution filtering with prefixlist no work: redistribution filtering with routemap no work: redistribution with prefixes no work: redistribution with everything no work: rip on one subnet no work: rip in chain no work: rip ingress route filtering with prefixlist no work: rip egress route filtering with prefixlist no work: rip ingress route filtering with routemap no work: rip egress route filtering with routemap no work: rip hop count no work: rip tag no work: rip address suppression no work: rip default route no work: rip authentication no work: rip metric no work: rip with bfd no work: rip peer template no work: static routing no work: static routing with distance no work: static routing with icmp tracker no work: static routing with tcp tracker no work: static routing with bfd tracker no work: authoritative dns server no work: relaying dns server no work: dynamic tunnel destination no work: forwarder server no work: load balancer server no work: proxy server no work: radius server no work: scheduler no work: sipmodem server no work: socks4 server no work: socks5 server no work: tacacs server ---------------------------------- 2014-02-13 11:04:24 no qc pass: ppp with tacacs authentication no work: ppp with tacacs authentication qc pass: ldp over ethernet qc pass: ldp over ethernet vlan qc pass: ldp over ethernet bridge qc pass: ldp over hdlc qc pass: ldp over ppp qc pass: ldp over framerelay qc pass: ldp over atmdxi qc pass: ldp over gre qc pass: ldp over broadcast subnet qc pass: ldp over hub and spoke subnet qc pass: p2p ldp tunnel qc pass: p2mp ldp tunnel qc pass: p2mp ldp tunnel head+mid qc pass: mp2mp ldp tunnel qc pass: mp2mp ldp tunnel mid+head qc pass: ppp over mpls qc pass: hdlc over mpls qc pass: lapb over mpls qc pass: framerelay over mpls qc pass: atmdxi over mpls qc pass: port mode ppp over mpls qc pass: ethernet over mpls qc pass: vlan over mpls qc pass: multipoint ethernet over mpls qc pass: interworking between l2tp3 and ethernet over mpls qc pass: hdlc tunneling with mpls qc pass: ppp tunneling with mpls qc pass: lapb tunneling with mpls qc pass: framerelay tunneling with mpls qc pass: atmdxi tunneling with mpls qc pass: ethernet tunneling with mpls qc pass: vlan tunneling with mpls qc pass: tunnel interface with mpls qc pass: te over ethernet qc pass: te over ethernet vlan qc pass: te over ethernet bridge qc pass: te over hdlc qc pass: te over ppp qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with erspan qc pass: cross connect interworking with packet over udp qc pass: cross connect interworking with vxlan qc pass: cross connect interworking with erspan qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos ingress hierarchical action qc pass: qos egress hierarchical action qc pass: qos ingress length matcher qc pass: qos egress length matcher qc pass: qos ingress tos matcher qc pass: qos egress tos matcher qc pass: qos ingress dscp matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress ethertype matcher qc pass: qos egress ethertype matcher qc pass: qos ingress matcher on bridged traffic qc pass: qos egress matcher on bridged traffic qc pass: qos ingress qosgroup set qc pass: qos ingress tos set qc pass: qos egress tos set qc pass: qos ingress dscp set qc pass: qos egress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp default route qc pass: eigrp with bfd qc pass: eigrp peer template qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level egress filtering with routemap qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: isis peer template qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: ospf peer template qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip metric qc pass: rip with bfd qc pass: rip peer template qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: authoritative dns server qc pass: relaying dns server qc pass: dynamic tunnel destination qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: sipmodem server qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server ---------------------------------- 2014-02-15 09:35:23 qc pass: ppp with tacacs authentication ---------------------------------- 2014-03-25 21:25:48 qc pass: isdn todo: allow timerange within scheduler configuration todo: more delete keystrokes to readline functions todo: process sandboxing todo: configure reload (startup) todo: configure network (add to run) ---------------------------------- 2014-04-02 13:48:39 no qc pass: cross connect with erspan no qc pass: cross connect with vxlan no qc pass: cross connect with packet over udp no qc pass: cross connect with pwe over mpls no qc pass: p2mp te tail+mid no qc pass: p2mp te no qc pass: ldp and te no qc pass: pwe over te no qc pass: ldp over te no qc pass: te in chain no qc pass: te over gre no qc pass: te over atmdxi no qc pass: te over framerelay no qc pass: ppp encapsulation no qc pass: ppp with packet over dtls no work: ppp with packet over dtls no work: ppp encapsulation qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed qc pass: unnamed todo: router bgp @ no template a todo: router bgp @ template use temp2 todo: router bgp @ no neighbor 1.1.1.1 ---------------------------------- 2014-04-05 01:57:16 no todo: configure network (add to run) no todo: configure reload (startup) no todo: router bgp @ no neighbor 1.1.1.1 no todo: router bgp @ template use temp2 no todo: router bgp @ no template a no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed no qc pass: unnamed qc pass: ppp with packet over dtls qc pass: ppp encapsulation qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with erspan qc pass: ebgp password todo: show bgp allroutes ---------------------------------- 2014-04-07 19:33:16 no todo: show bgp allroutes todo: attach line not working anymore, try with deactivation and attach todo: flash pack, flash unpack with proprietary header format ---------------------------------- 2014-04-30 10:03:24 qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: ebgp password todo: fping as fast/flood pinging todo: sping as slow/detail pinging todo: alt+s as find file in commmander todo: alt+r as execute random command in commander todo: more useful mc keystrokes todo: compile with 1.6, 1.7, 1.8 java on linux... todo: real wine to rtros... todo: no as privileged stuff... todo: install player to rtros... todo: show ipv4 route demo | count todo: attach line not working anymore, try with deactivation and attach todo: flash pack, flash unpack with proprietary header format todo: allow timerange within scheduler configuration todo: more delete keystrokes to readline functions todo: process sandboxing todo: vpnized browser (xul) todo: trustpoint for certificates todo: more level of config sections todo: tab for deb pro o?-->ospf[4/6] todo: interface name tabbing todo: show upgrade todo: reenabling of routing protocols fails todo: int eth1/int eth2 todo: dhcp relay support todo: sslvpn client, server todo: dlsw client, server todo: tcp selective ack todo: xot, x75 switching todo: ipx, spx switching todo: preallocate qos buffers todo: lisp4, lisp6 todo: nhrp4, nhrp6 todo: l2vpn for isis todo: hip (rfc4423) todo: more show commands todo: more clear commands todo: more interactive tools todo: igmp4/6 snoop, pim4/6 snoop for bridging todo: multilink ppp, fr todo: x25 todo: default vrf for show commands ---------------------------------- 2014-05-02 07:25:33 todo: fping as fast/flood pinging todo: sping as slow/detail pinging todo: alt+s as find file in commmander todo: alt+r as execute random command in commander todo: more useful mc keystrokes todo: compile with 1.6, 1.7, 1.8 java on linux... todo: real wine to rtros... todo: no as privileged stuff... todo: install player to rtros... todo: show ipv4 route demo | count ---------------------------------- 2014-08-07 18:56:43 no todo: sping as slow/detail pinging no todo: fping as fast/flood pinging ---------------------------------- 2014-08-21 12:29:23 no qc pass: ppp with tacacs authentication no work: ppp with tacacs authentication qc pass: bgp filtering with aigp qc pass: bgp filtering with bandwidth ---------------------------------- 2014-09-27 10:48:05 qc pass: transparent proxy ---------------------------------- 2014-09-27 20:03:36 qc pass: ppp with tacacs authentication ---------------------------------- 2014-10-01 14:35:59 no todo: ipx, spx switching no todo: process sandboxing no todo: show ipv4 route demo | count ---------------------------------- 2014-10-26 10:12:07 qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as qc pass: bgp override as qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls over ebgp qc pass: vpls over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: ebgp password qc pass: bgp filtering with aigp qc pass: bgp filtering with bandwidth todo: alt+s as find file in commmander todo: alt+r as execute random command in commander todo: more useful mc keystrokes todo: compile with 1.6, 1.7, 1.8 java on linux... todo: real wine to rtros... todo: no as privileged stuff... todo: install player to rtros... todo: attach line not working anymore, try with deactivation and attach todo: flash pack, flash unpack with proprietary header format todo: allow timerange within scheduler configuration todo: more delete keystrokes to readline functions todo: vpnized browser (xul) todo: trustpoint for certificates todo: more level of config sections todo: tab for deb pro o?-->ospf[4/6] todo: interface name tabbing todo: show upgrade todo: reenabling of routing protocols fails todo: int eth1/int eth2 todo: dhcp relay support todo: sslvpn client, server todo: dlsw client, server todo: tcp selective ack todo: xot, x75 switching todo: preallocate qos buffers todo: lisp4, lisp6 todo: nhrp4, nhrp6 todo: l2vpn for isis todo: hip (rfc4423) todo: more show commands todo: more clear commands todo: more interactive tools todo: igmp4/6 snoop, pim4/6 snoop for bridging todo: multilink ppp, fr todo: x25 todo: default vrf for show commands ---------------------------------- 2014-10-26 13:56:39 qc pass: bgp rpki ---------------------------------- 2014-10-27 13:53:53 no todo: allow timerange within scheduler configuration qc pass: ppp with gre qc pass: hdlc with gre no work: lapb with gre qc pass: framerelay with gre ---------------------------------- 2014-10-28 09:35:25 qc pass: isdn tunneling with erspan qc pass: lapb with gre qc pass: atmdxi with gre qc pass: isdn with gre qc pass: isdn over l2tp3 qc pass: isdn tunneling with l2tp3 qc pass: isdn tunneling with packet over udp qc pass: isdn tunneling with vxlan qc pass: cross connect isdn interfaces qc pass: isdn over mpls qc pass: isdn tunneling with mpls ---------------------------------- 2014-11-03 09:26:47 qc pass: multipoint ethernet over vxlan ---------------------------------- 2014-11-12 14:57:38 no todo: vpnized browser (xul) no todo: flash pack, flash unpack with proprietary header format no todo: install player to rtros... no todo: no as privileged stuff... no todo: real wine to rtros... no todo: compile with 1.6, 1.7, 1.8 java on linux... qc pass: etherip over ipv4 qc pass: etherip over ipv6 qc pass: etherip over loopback qc pass: hdlc tunneling with etherip qc pass: ppp tunneling with etherip qc pass: lapb tunneling with etherip qc pass: framerelay tunneling with etherip qc pass: atmdxi tunneling with etherip qc pass: isdn tunneling with etherip qc pass: ethernet tunneling with etherip qc pass: vlan tunneling with etherip qc pass: tunnel interface with etherip qc pass: cross connect with etherip qc pass: cross connect interworking with etherip ---------------------------------- 2014-11-13 14:22:01 qc pass: mplsip over ipv4 qc pass: mplsip over ipv6 qc pass: mplsip over mplsip qc pass: mplsip over loopback ---------------------------------- 2014-11-16 09:43:26 qc pass: swipe over ipv4 qc pass: swipe over ipv6 qc pass: swipe over swipe qc pass: swipe over loopback ---------------------------------- 2014-11-18 11:21:29 qc pass: swipe with des qc pass: swipe with blowfish qc pass: swipe with 3des qc pass: swipe with aes128 qc pass: swipe with aes192 qc pass: swipe with aes256 qc pass: swipe with md5 qc pass: swipe with sha1 qc pass: swipe with sha256 qc pass: swipe with sha512 ---------------------------------- 2014-11-22 11:10:07 qc pass: geneve over ipv4 qc pass: geneve over ipv6 qc pass: geneve over loopback qc pass: hdlc tunneling with geneve qc pass: ppp tunneling with geneve qc pass: lapb tunneling with geneve qc pass: framerelay tunneling with geneve qc pass: atmdxi tunneling with geneve qc pass: isdn tunneling with geneve qc pass: ethernet tunneling with geneve qc pass: vlan tunneling with geneve qc pass: tunnel interface with geneve qc pass: macsec with des qc pass: macsec with blowfish qc pass: macsec with 3des qc pass: macsec with aes128 qc pass: macsec with aes192 qc pass: macsec with aes256 qc pass: macsec with md5 qc pass: macsec with sha1 qc pass: macsec with sha256 qc pass: macsec with sha512 qc pass: cross connect with geneve qc pass: cross connect interworking with geneve ---------------------------------- 2014-11-23 12:11:17 qc pass: multipoint ethernet over geneve qc pass: nvgre over ipv4 qc pass: nvgre over ipv6 qc pass: nvgre over loopback qc pass: hdlc tunneling with nvgre qc pass: ppp tunneling with nvgre qc pass: lapb tunneling with nvgre qc pass: framerelay tunneling with nvgre qc pass: atmdxi tunneling with nvgre qc pass: isdn tunneling with nvgre qc pass: ethernet tunneling with nvgre qc pass: vlan tunneling with nvgre qc pass: tunnel interface with nvgre qc pass: cross connect with nvgre qc pass: cross connect interworking with nvgre ---------------------------------- 2014-11-24 12:45:22 qc pass: cross connect with everything ---------------------------------- 2014-11-27 09:30:02 qc pass: minenc over ipv4 qc pass: minenc over ipv6 qc pass: minenc over minenc qc pass: minenc over loopback ---------------------------------- 2014-11-27 21:05:36 qc pass: ipenc over ipv4 qc pass: ipenc over ipv6 qc pass: ipenc over ipenc qc pass: ipenc over loopback ---------------------------------- 2014-11-29 10:16:07 qc pass: tmux over ipv4 qc pass: tmux over ipv6 qc pass: tmux over tmux qc pass: tmux over loopback ---------------------------------- 2014-11-30 14:10:49 qc pass: inlsp over ipv4 qc pass: inlsp over ipv6 qc pass: inlsp over inlsp qc pass: inlsp over loopback qc pass: inlsp with des qc pass: inlsp with blowfish qc pass: inlsp with 3des qc pass: inlsp with aes128 qc pass: inlsp with aes192 qc pass: inlsp with aes256 qc pass: inlsp with md5 qc pass: inlsp with sha1 qc pass: inlsp with sha256 qc pass: inlsp with sha512 qc pass: skip over ipv4 qc pass: skip over ipv6 qc pass: skip over skip qc pass: skip over loopback qc pass: skip with des qc pass: skip with blowfish qc pass: skip with 3des qc pass: skip with aes128 qc pass: skip with aes192 qc pass: skip with aes256 qc pass: skip with md5 qc pass: skip with sha1 qc pass: skip with sha256 qc pass: skip with sha512 ---------------------------------- 2014-12-02 11:15:56 qc pass: ppp with ax25 qc pass: hdlc with ax25 qc pass: lapb with ax25 qc pass: framerelay with ax25 qc pass: atmdxi with ax25 qc pass: isdn with ax25 ---------------------------------- 2014-12-03 17:13:13 qc pass: macsec with group1 qc pass: macsec with group2 qc pass: macsec with group5 qc pass: macsec with group14 qc pass: macsec with group15 qc pass: macsec with group16 qc pass: macsec with group17 qc pass: macsec with group18 qc pass: macsec with group22 qc pass: macsec with group23 qc pass: macsec with group24 ---------------------------------- 2014-12-10 16:11:40 qc pass: ipcomp over ipv4 qc pass: ipcomp over ipv6 qc pass: ipcomp over ipcomp qc pass: ipcomp over loopback qc pass: pipe over ipv4 qc pass: pipe over ipv6 qc pass: pipe over pipe qc pass: pipe over loopback ---------------------------------- 2014-12-14 07:26:40 qc pass: nos over ipv4 qc pass: nos over ipv6 qc pass: nos over nos qc pass: nos over loopback ---------------------------------- 2014-12-17 15:01:23 qc pass: multichassis bundle ---------------------------------- 2014-12-22 10:57:41 qc pass: uti over ipv4 qc pass: uti over ipv6 qc pass: uti over loopback qc pass: hdlc tunneling with uti qc pass: ppp tunneling with uti qc pass: lapb tunneling with uti qc pass: framerelay tunneling with uti qc pass: atmdxi tunneling with uti qc pass: isdn tunneling with uti qc pass: ethernet tunneling with uti qc pass: vlan tunneling with uti qc pass: tunnel interface with uti qc pass: cross connect with uti qc pass: cross connect interworking with uti ---------------------------------- 2015-01-03 11:38:54 no qc pass: hsrp over ethernet no work: hsrp over ethernet ---------------------------------- 2015-01-18 10:33:02 qc pass: hsrp over ethernet qc pass: pvrp with labels ---------------------------------- 2015-01-31 11:57:17 qc pass: ldp over loopback ---------------------------------- 2015-02-25 16:59:51 qc pass: babel on one subnet qc pass: babel in chain qc pass: babel ingress route filtering with prefixlist qc pass: babel egress route filtering with prefixlist qc pass: babel ingress route filtering with routemap qc pass: babel egress route filtering with routemap qc pass: babel max metric qc pass: babel address suppression qc pass: babel default route qc pass: babel metric qc pass: babel with bfd qc pass: babel peer template qc pass: redistribution with babel ---------------------------------- 2015-03-03 18:02:17 qc pass: lsrp point2point connection qc pass: lsrp point2multipoint connection qc pass: lsrp point2point chain qc pass: lsrp metric qc pass: lsrp address suppression qc pass: lsrp route filtering with prefixlist qc pass: lsrp route filtering with routemap qc pass: lsrp tag qc pass: lsrp default route qc pass: lsrp with bfd qc pass: lsrp authentication qc pass: lsrp ssh encryption qc pass: lsrp tls encryption qc pass: lsrp peer template qc pass: redistribution with lsrp ---------------------------------- 2015-03-07 10:42:27 qc pass: vdc parent interface qc pass: vdc parent connect qc pass: vdc peer connect ---------------------------------- 2015-04-04 06:20:01 qc pass: ethernet hairpin qc pass: serial hairpin qc pass: bundle hairpin qc pass: bridge hairpin ---------------------------------- 2015-04-22 07:36:21 qc pass: mplsudp over ipv4 qc pass: mplsudp over ipv6 qc pass: mplsudp over mplsudp qc pass: mplsudp over loopback ---------------------------------- 2015-05-23 13:11:28 qc pass: lsrp with segment routing ---------------------------------- 2015-05-25 10:36:16 no todo: nhrp4, nhrp6 todo: segment routing for isis, ospf4/6 ---------------------------------- 2015-05-26 11:13:02 qc pass: isis multi-topology qc pass: isis updown bit with multi-topology qc pass: isis external multi-topology qc pass: isis multi-topology with te qc pass: isis chain of broadcast nets with narrow metric qc pass: isis broadcast subnet with narrow metric qc pass: isis chain of broadcast nets with multi-topology qc pass: isis broadcast subnet with multi-topology ---------------------------------- 2015-06-01 21:04:03 no todo: segment routing for isis, ospf4/6 qc pass: isis with segment routing qc pass: isis inter-level with segment routing qc pass: isis multi-topology with segment routing todo: segment routing for ospf4/6 ---------------------------------- 2015-06-04 17:11:39 no todo: segment routing for ospf4/6 qc pass: ospf with segment routing qc pass: ospf transit area with segment routing ---------------------------------- 2015-07-04 12:53:11 qc pass: lisp over ipv4 qc pass: lisp over ipv6 qc pass: lisp over lisp qc pass: lisp over loopback qc pass: bgp additional path qc pass: bgp additional path with labels qc pass: vpns over bgp additional path qc pass: vpls over bgp additional path ---------------------------------- 2015-07-10 16:44:46 no qc pass: process redundancy no work: process redundancy qc pass: bgp nexthop unchanged ---------------------------------- 2015-07-14 03:09:00 no qc pass: isis chain of broadcast nets with narrow metric qc pass: process redundancy no work: isis chain of broadcast nets with narrow metric ---------------------------------- 2015-07-15 00:30:39 qc pass: isis chain of broadcast nets with narrow metric todo: evpn for bgp (rfc7432) ---------------------------------- 2015-07-15 13:11:33 no qc pass: bgp override as no qc pass: bgp remove private as qc pass: bgp remove private as out qc pass: bgp override as out qc pass: bgp remove private as in qc pass: bgp override as in todo: bgp update group ---------------------------------- 2015-07-22 14:42:01 no todo: bgp update group qc pass: ebgp with next hop tracking qc pass: ibgp with next hop tracking ---------------------------------- 2015-07-23 11:37:07 qc pass: vpns over ibgp rr qc pass: vpls over ibgp rr ---------------------------------- 2015-07-24 00:30:38 no qc pass: isis chain of broadcast nets qc pass: bgp clustlist qc pass: bgp metric vs clustlist qc pass: bgp distance qc pass: bgp distance vs locpref no work: isis chain of broadcast nets ---------------------------------- 2015-07-24 05:41:13 qc pass: isis chain of broadcast nets ---------------------------------- 2015-07-26 00:30:41 qc pass: ebgp in chain with soft-reconfig qc pass: confed bgp in chain with soft-reconfig qc pass: ibgp in chain with soft-reconfig qc pass: ibgp rr in subnet with soft-reconfig qc pass: bgp ingress route filtering with prefixlist with soft-reconfig qc pass: bgp egress route filtering with prefixlist with soft-reconfig qc pass: bgp ingress route filtering with routemap with soft-reconfig qc pass: bgp egress route filtering with routemap with soft-reconfig qc pass: bgp filtering with locpref with soft-reconfig qc pass: bgp filtering with origin with soft-reconfig qc pass: bgp filtering with metric with soft-reconfig qc pass: bgp filtering with standard community with soft-reconfig qc pass: bgp filtering with aspath with soft-reconfig qc pass: bgp locpref with soft-reconfig qc pass: bgp aspath with soft-reconfig qc pass: bgp origin with soft-reconfig qc pass: bgp metric with soft-reconfig qc pass: bgp locpref vs aspath with soft-reconfig qc pass: bgp aspath vs origin with soft-reconfig qc pass: bgp origin vs metric with soft-reconfig qc pass: bgp filtering with extended community with soft-reconfig qc pass: bgp clustlist with soft-reconfig qc pass: bgp metric vs clustlist with soft-reconfig qc pass: bgp distance with soft-reconfig qc pass: bgp distance vs locpref with soft-reconfig qc pass: bgp filtering with aigp with soft-reconfig qc pass: bgp filtering with bandwidth with soft-reconfig qc pass: bgp with a lot prefix ---------------------------------- 2015-07-28 00:05:39 qc pass: babel prefix withdraw qc pass: ebgp prefix withdraw qc pass: confed bgp prefix withdraw qc pass: ibgp prefix withdraw qc pass: ibgp fullmesh prefix withdraw qc pass: ibgp rr prefix withdraw qc pass: ebgp prefix withdraw with soft-reconfig qc pass: confed bgp prefix withdraw with soft-reconfig qc pass: ibgp prefix withdraw with soft-reconfig qc pass: ibgp fullmesh prefix withdraw with soft-reconfig qc pass: ibgp rr prefix withdraw with soft-reconfig qc pass: eigrp prefix withdraw qc pass: isis prefix withdraw qc pass: lsrp prefix withdraw qc pass: ospf prefix withdraw qc pass: pvrp prefix withdraw qc pass: rip prefix withdraw ---------------------------------- 2015-07-29 00:05:39 qc pass: vpns over confed bgp qc pass: vpls over confed bgp qc pass: vpns over bgp route server qc pass: vpls over bgp route server qc pass: bgp route server with soft-reconfig qc pass: bgp route server prefix withdraw qc pass: bgp route server prefix withdraw with soft-reconfig qc pass: multisite vpns over ibgp rr qc pass: multisite vpls over ibgp rr qc pass: bgp change in locpref qc pass: bgp change in aspath qc pass: bgp change in origin qc pass: bgp change in metric qc pass: bgp change in aigp qc pass: bgp change in bandwidth qc pass: bgp change in standard community qc pass: bgp change in extended community qc pass: bgp change in locpref with soft-reconfig qc pass: bgp change in aspath with soft-reconfig qc pass: bgp change in origin with soft-reconfig qc pass: bgp change in metric with soft-reconfig qc pass: bgp change in aigp with soft-reconfig qc pass: bgp change in bandwidth with soft-reconfig qc pass: bgp change in standard community with soft-reconfig qc pass: bgp change in extended community with soft-reconfig qc pass: isis change in metric qc pass: lsrp change in metric qc pass: lsrp change in tag qc pass: ospf change in metric qc pass: ospf change in tag ---------------------------------- 2015-08-04 18:22:22 qc pass: babel aggregation qc pass: bgp aggregation qc pass: bgp maximum prefix qc pass: eigrp aggregation qc pass: isis aggregate qc pass: ospf aggregate qc pass: pvrp aggregation qc pass: rip aggregation ---------------------------------- 2015-08-15 00:05:40 qc pass: evpn over ebgp qc pass: evpn over ibgp qc pass: evpn over bgp additional path qc pass: evpn over ibgp rr qc pass: evpn over confed bgp qc pass: evpn over bgp route server qc pass: multisite evpn over ibgp rr qc pass: ethersite vpls over ibgp qc pass: ethersite evpn over ibgp ---------------------------------- 2015-08-15 10:03:55 qc pass: ethersite vpns over ibgp qc pass: vpns over bgp with soft-reconfig qc pass: vpls over bgp with soft-reconfig qc pass: evpn over bgp with soft-reconfig ---------------------------------- 2015-08-16 00:05:39 no qc pass: isis chain of broadcast nets with narrow metric no work: isis chain of broadcast nets with narrow metric ---------------------------------- 2015-08-17 00:05:39 qc pass: isis chain of broadcast nets with narrow metric ---------------------------------- 2015-08-25 12:01:45 qc pass: unicast+vpns over bgp qc pass: unicast+vpls over bgp qc pass: unicast+evpn over bgp qc pass: unicast+vpns over bgp with soft-reconfig qc pass: unicast+vpls over bgp with soft-reconfig qc pass: unicast+evpn over bgp with soft-reconfig todo: tcl to route-map attribute manipulation ---------------------------------- 2015-08-28 00:11:12 qc pass: babel auto mesh tunnel qc pass: unicast+vpns over bgp additional path qc pass: unicast+vpls over bgp additional path qc pass: unicast+evpn over bgp additional path qc pass: bgp auto mesh tunnel qc pass: vpns over bgp auto mesh tunnel qc pass: vpls over bgp auto mesh tunnel qc pass: evpn over bgp auto mesh tunnel qc pass: eigrp auto mesh tunnel qc pass: isis auto mesh tunnel qc pass: lsrp auto mesh tunnel qc pass: ospf auto mesh tunnel qc pass: pvrp auto mesh tunnel qc pass: rip auto mesh tunnel no todo: tcl to route-map attribute manipulation todo: tcl and external events to tracker ---------------------------------- 2015-08-30 08:56:39 no todo: evpn for bgp (rfc7432) no todo: tcl and external events to tracker ---------------------------------- 2015-09-08 06:10:10 no qc pass: process redundancy no work: process redundancy ---------------------------------- 2015-09-09 00:05:39 qc pass: process redundancy todo: interop test cases ---------------------------------- 2015-09-13 14:07:44 no todo: interop test cases qc pass: interop: ebgp qc pass: interop: ibgp qc pass: interop: bgp locpref qc pass: interop: bgp origin qc pass: interop: bgp metric qc pass: interop: bgp community qc pass: interop: bgp aspath qc pass: interop: bgp with labels qc pass: interop: bgp addpath qc pass: interop: bgp prefix withdraw qc pass: interop: bgp vpn qc pass: interop: bgp authentication qc pass: interop: dhcp server qc pass: interop: dhcp client qc pass: interop: dns qc pass: interop: eigrp qc pass: interop: eigrp prefix withdraw qc pass: interop: ethernet encapsulation qc pass: interop: dot1q encapsulation qc pass: interop: spantree nonroot qc pass: interop: spantree root qc pass: interop: ike1 with ipv4 qc pass: interop: ike1 with ipv6 qc pass: interop: ike1 with 3des qc pass: interop: ike1 with aes128 qc pass: interop: ike1 with aes192 qc pass: interop: ike1 with aes256 qc pass: interop: ike1 with sha1 qc pass: interop: ike1 with sha256 qc pass: interop: ike1 with sha512 qc pass: interop: ike1 with group2 qc pass: interop: ike1 with group5 qc pass: interop: ike1 with group14 qc pass: interop: ike1 with group15 qc pass: interop: ike1 with group16 qc pass: interop: ike1 with group24 qc pass: interop: ike2 with ipv4 qc pass: interop: ike2 with ipv6 qc pass: interop: ike2 with 3des qc pass: interop: ike2 with aes128 qc pass: interop: ike2 with aes192 qc pass: interop: ike2 with aes256 qc pass: interop: ike2 with sha1 qc pass: interop: ike2 with sha256 qc pass: interop: ike2 with sha512 qc pass: interop: ike2 with group2 qc pass: interop: ike2 with group5 qc pass: interop: ike2 with group14 qc pass: interop: ike2 with group15 qc pass: interop: ike2 with group16 qc pass: interop: ike2 with group24 qc pass: interop: point2point isis qc pass: interop: isis dis qc pass: interop: isis nondis qc pass: interop: isis narrow metric qc pass: interop: isis te qc pass: interop: isis multi-topology qc pass: interop: isis prefix withdraw qc pass: interop: isis authentication qc pass: interop: l2tp2 client qc pass: interop: l2tp2 server qc pass: interop: l2tp3 server qc pass: interop: ethernet tunneling with l2tp3 qc pass: interop: ldp lsp qc pass: interop: ethernet over mpls qc pass: interop: igmp3/mld2 qc pass: interop: pim qc pass: interop: point2point ospf qc pass: interop: ospf dr qc pass: interop: ospf nondr qc pass: interop: ospf transit area qc pass: interop: ospf stub area qc pass: interop: ospf nssa area qc pass: interop: ospf te qc pass: interop: ospf prefix withdraw qc pass: interop: ospf authentication qc pass: interop: pppoe client qc pass: interop: pppoe server qc pass: interop: pppoe with pap qc pass: interop: pppoe with chap qc pass: interop: pppoe with eap qc pass: interop: radius qc pass: interop: rip qc pass: interop: rip prefix withdraw qc pass: interop: rip authentication qc pass: interop: ssh qc pass: interop: tacacs qc pass: interop: gre tunnel qc pass: interop: ipip tunnel ---------------------------------- 2015-09-19 05:21:19 todo: ringbuffer capture on interfaces todo: bfd need to send with ttl=255, recheck after todo: tcp (bgp,ldp) password need to be repaired ---------------------------------- 2015-09-21 09:20:01 no todo: tcp (bgp,ldp) password need to be repaired no todo: ringbuffer capture on interfaces ---------------------------------- 2015-09-23 16:27:15 qc pass: static routing with labels todo: webdav server ---------------------------------- 2015-09-26 08:17:54 qc pass: targeted ldp qc pass: eigrp stub no todo: webdav server ---------------------------------- 2015-09-28 19:32:51 no qc pass: evpn over bgp auto mesh tunnel no qc pass: vpls over bgp auto mesh tunnel no qc pass: unicast+evpn over bgp additional path no qc pass: unicast+vpls over bgp additional path no qc pass: unicast+evpn over bgp with soft-reconfig no qc pass: unicast+vpls over bgp with soft-reconfig no qc pass: unicast+evpn over bgp no qc pass: unicast+vpls over bgp no qc pass: evpn over bgp with soft-reconfig no qc pass: vpls over bgp with soft-reconfig no qc pass: ethersite evpn over ibgp no qc pass: ethersite vpls over ibgp no qc pass: multisite evpn over ibgp rr no qc pass: evpn over bgp route server no qc pass: evpn over confed bgp no qc pass: evpn over ibgp rr no qc pass: evpn over bgp additional path no qc pass: evpn over ibgp no qc pass: evpn over ebgp no qc pass: multisite vpls over ibgp rr no qc pass: vpls over bgp route server no qc pass: vpls over confed bgp no qc pass: vpls over ibgp rr no qc pass: vpls over bgp additional path no qc pass: vpls over ibgp no qc pass: vpls over ebgp qc pass: vpls/ldp over ebgp qc pass: vpls/ldp over ibgp qc pass: vpls/ldp over bgp additional path qc pass: vpls/ldp over ibgp rr qc pass: vpls/ldp over confed bgp qc pass: vpls/ldp over bgp route server qc pass: multisite vpls/ldp over ibgp rr qc pass: evpn/pbb over ebgp qc pass: evpn/pbb over ibgp qc pass: evpn/pbb over bgp additional path qc pass: evpn/pbb over ibgp rr qc pass: evpn/pbb over confed bgp qc pass: evpn/pbb over bgp route server qc pass: multisite evpn/pbb over ibgp rr qc pass: ethersite vpls/ldp over ibgp qc pass: ethersite evpn/pbb over ibgp qc pass: vpls/ldp over bgp with soft-reconfig qc pass: evpn/pbb over bgp with soft-reconfig qc pass: unicast+vpls/ldp over bgp qc pass: unicast+evpn/pbb over bgp qc pass: unicast+vpls/ldp over bgp with soft-reconfig qc pass: unicast+evpn/pbb over bgp with soft-reconfig qc pass: unicast+vpls/ldp over bgp additional path qc pass: unicast+evpn/pbb over bgp additional path qc pass: vpls/ldp over bgp auto mesh tunnel qc pass: evpn/pbb over bgp auto mesh tunnel qc pass: vpls/bgp over ebgp qc pass: vpls/bgp over ibgp qc pass: vpls/bgp over bgp additional path qc pass: vpls/bgp over ibgp rr qc pass: vpls/bgp over confed bgp qc pass: vpls/bgp over bgp route server qc pass: multisite vpls/bgp over ibgp rr qc pass: ethersite vpls/bgp over ibgp qc pass: vpls/bgp over bgp with soft-reconfig qc pass: unicast+vpls/bgp over bgp qc pass: unicast+vpls/bgp over bgp with soft-reconfig qc pass: unicast+vpls/bgp over bgp additional path qc pass: vpls/bgp over bgp auto mesh tunnel qc pass: vpls/ldp+vpls/bgp over bgp ---------------------------------- 2015-10-14 04:28:54 todo: more filters: begin, first, last, uniq, sort ---------------------------------- 2015-10-14 16:12:48 no todo: more delete keystrokes to readline functions no todo: more useful mc keystrokes no todo: alt+r as execute random command in commander no todo: alt+s as find file in commmander no todo: more filters: begin, first, last, uniq, sort ---------------------------------- 2015-10-19 15:17:03 no qc pass: ibgp with next hop tracking no qc pass: ebgp with next hop tracking qc pass: ebgp with nexthop tracking qc pass: ibgp with nexthop tracking qc pass: ibgp conquer rr in subnet qc pass: ibgp conquer rr in subnet with soft-reconfig qc pass: ibgp conquer rr prefix withdraw qc pass: ibgp conquer rr prefix withdraw with soft-reconfig ---------------------------------- 2015-11-11 19:51:08 qc pass: unicast+mvpn over bgp qc pass: unicast+mdt over bgp qc pass: unicast+flowspec over bgp qc pass: unicast+flowspecvpn over bgp qc pass: unicast+mvpn over bgp with soft-reconfig qc pass: unicast+mdt over bgp with soft-reconfig qc pass: unicast+flowspec over bgp with soft-reconfig qc pass: unicast+flowspecvpn over bgp with soft-reconfig qc pass: unicast+mvpn over bgp with additional path qc pass: unicast+mdt over bgp with additional path qc pass: unicast+flowspec over bgp with additional path qc pass: unicast+flowspecvpn over bgp with additional path todo: mrt (rfc6396) ---------------------------------- 2015-11-21 20:25:16 no todo: mrt (rfc6396) todo: compare should write out that which attributes changed ---------------------------------- 2015-12-05 12:32:44 qc pass: ldp password qc pass: targeted ldp password ---------------------------------- 2015-12-08 22:12:32 qc pass: evpn/vxlan over ebgp qc pass: evpn/vxlan over ibgp qc pass: evpn/vxlan over bgp additional path qc pass: evpn/vxlan over ibgp rr qc pass: evpn/vxlan over confed bgp qc pass: evpn/vxlan over bgp route server qc pass: multisite evpn/vxlan over ibgp rr qc pass: ethersite evpn/vxlan over ibgp qc pass: evpn/vxlan over bgp with soft-reconfig qc pass: unicast+evpn/vxlan over bgp qc pass: unicast+evpn/vxlan over bgp with soft-reconfig qc pass: unicast+evpn/vxlan over bgp additional path qc pass: evpn/vxlan over bgp auto mesh tunnel qc pass: evpn/pbb+vpls/vxlan over ebgp ---------------------------------- 2015-12-10 23:51:34 qc pass: evpn/cmac over ebgp qc pass: evpn/cmac over ibgp qc pass: evpn/cmac over bgp additional path qc pass: evpn/cmac over ibgp rr qc pass: evpn/cmac over confed bgp qc pass: evpn/cmac over bgp route server qc pass: multisite evpn/cmac over ibgp rr qc pass: ethersite evpn/cmac over ibgp qc pass: evpn/cmac over bgp with soft-reconfig qc pass: unicast+evpn/cmac over bgp qc pass: unicast+evpn/cmac over bgp with soft-reconfig qc pass: unicast+evpn/cmac over bgp additional path qc pass: evpn/cmac over bgp auto mesh tunnel qc pass: evpn/pbb+vpls/cmac over ebgp ---------------------------------- 2015-12-25 13:33:51 qc pass: ingress ttl matching access list qc pass: egress ttl matching access list qc pass: ingress tos matching access list qc pass: egress tos matching access list qc pass: qos ingress ttl matcher qc pass: qos egress ttl matcher qc pass: ibgp with ttl-security qc pass: ebgp with ttl-security ---------------------------------- 2015-12-31 01:05:42 no qc pass: bgp rpki no work: bgp rpki ---------------------------------- 2015-12-31 13:21:18 qc pass: bgp rpki ---------------------------------- 2016-01-02 10:21:27 todo: enable should default to secret instead of password, in this way i can (reall? sure?) give show startup @ priv#1 todo: consider reenabling ecdsa or ecdh, or both or none. more study rqd after junoleaks... todo: reenable which elliptic courves? sure? why that? can you give your real name to your opinion? todo: kfreebsd jailt, kfreebsd hipervisor (!) todo: https://tools.ietf.org/html/draft-ietf-tn3270e-telnet-tls-06 ---------------------------------- 2016-01-04 21:03:14 todo: inspect to log layer2 addresses todo: enable should default to secret instead of password, in this way i can (sure?) give show startup @ priv#1 todo: macmove logging to bridge!!! todo: arpwatch for ipv4, ndwatch for ipv6 todo: reenable which elliptic courves? sure? why that? todo: kfreebsd jailt, kfreebsd hipervisor support for vdc todo: parse privilege levels from radius and tacacs todo: ldap client, server todo: tunnel shutdown command todo: tunnel autobandwidth for te ---------------------------------- 2016-01-06 01:05:41 no todo: bfd need to send with ttl=255, recheck after no todo: compare should write out that which attributes changed no todo: tunnel autobandwidth for te no todo: tunnel shutdown command no todo: kfreebsd jailt, kfreebsd hipervisor support for vdc no todo: arpwatch for ipv4, ndwatch for ipv6 no todo: macmove logging to bridge!!! no todo: enable should default to secret instead of password, in this way i can (sure?) give show startup @ priv#1 no todo: inspect to log layer2 addresses todo: tunnel shutdown todo: tunnel autobandwidth todo: bgp compare should write out that which attributes changed todo: bfd need to send with ttl=255 todo: arpwatch for ipv4/6 ---------------------------------- 2016-01-16 08:19:46 no todo: tunnel shutdown todo: packet flood command todo: tunnel shutdown command todo: ncp close should honored again todo: vdc tree drawing ---------------------------------- 2016-01-19 07:31:35 todo: usage countdown on aaa entries ---------------------------------- 2016-01-22 10:33:57 no todo: packet flood command todo: experimental packet flood command todo: packet fuzzer for some interesting findings todo: bdi infrastructure, service instances, etc todo: buggy-mode command for experimental features todo: dissect show me-the-xxx command, add more todo: show me the bug command which is also experimental!!! :) todo: lsrp should write shortver instead of segrou ---------------------------------- 2016-01-25 18:43:57 todo: reload vdc asdf looping as experimental!!! ---------------------------------- 2016-02-04 01:05:41 no todo: show me the bug command which is also experimental!!! :) no todo: buggy-mode command for experimental features ---------------------------------- 2016-02-07 07:22:56 no todo: tunnel shutdown command no todo: lsrp should write shortver instead of segrou no todo: dissect show me-the-xxx command, add more ---------------------------------- 2016-02-09 09:33:38 no todo: packet fuzzer for some interesting findings no todo: experimental packet flood command ---------------------------------- 2016-02-26 08:59:20 no todo: usage countdown on aaa entries ---------------------------------- 2016-07-14 13:21:10 todo: reload vdc asdf looping as experimental!!! todo: bdi infrastructure, service instances, etc todo: ncp close should honored again todo: vdc tree drawing todo: reenable which elliptic courves? sure? why that? todo: https://tools.ietf.org/html/draft-ietf-tn3270e-telnet-tls-06 todo: parse privilege levels from radius and tacacs todo: ldap client, server todo: tunnel autobandwidth todo: bgp compare should write out that which attributes changed todo: bfd need to send with ttl=255 todo: attach line not working anymore, try with deactivation and attach todo: trustpoint for certificates todo: more level of config sections todo: tab for deb pro o?-->ospf[4/6] todo: interface name tabbing todo: show upgrade todo: reenabling of routing protocols fails todo: int eth1/int eth2 todo: dhcp relay support todo: sslvpn client, server todo: dlsw client, server todo: tcp selective ack todo: xot, x75 switching todo: preallocate qos buffers todo: lisp4, lisp6 todo: l2vpn for isis todo: hip (rfc4423) todo: more show commands todo: more clear commands todo: more interactive tools todo: arpwatch for ipv4/6 todo: igmp4/6 snoop, pim4/6 snoop for bridging todo: multilink ppp, fr todo: x25 todo: default vrf for show commands ---------------------------------- 2016-07-14 13:29:15 qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp filtering with locpref qc pass: bgp filtering with origin qc pass: bgp filtering with metric qc pass: bgp filtering with standard community qc pass: bgp filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as out qc pass: bgp override as out qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls/ldp over ebgp qc pass: vpls/ldp over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: ebgp password qc pass: bgp filtering with aigp qc pass: bgp filtering with bandwidth qc pass: bgp rpki qc pass: bgp additional path qc pass: bgp additional path with labels qc pass: vpns over bgp additional path qc pass: vpls/ldp over bgp additional path qc pass: bgp nexthop unchanged qc pass: bgp remove private as in qc pass: bgp override as in qc pass: ebgp with nexthop tracking qc pass: ibgp with nexthop tracking qc pass: vpns over ibgp rr qc pass: vpls/ldp over ibgp rr qc pass: bgp clustlist qc pass: bgp metric vs clustlist qc pass: bgp distance qc pass: bgp distance vs locpref qc pass: ebgp in chain with soft-reconfig qc pass: confed bgp in chain with soft-reconfig qc pass: ibgp in chain with soft-reconfig qc pass: ibgp rr in subnet with soft-reconfig qc pass: bgp ingress route filtering with prefixlist with soft-reconfig qc pass: bgp egress route filtering with prefixlist with soft-reconfig qc pass: bgp ingress route filtering with routemap with soft-reconfig qc pass: bgp egress route filtering with routemap with soft-reconfig qc pass: bgp filtering with locpref with soft-reconfig qc pass: bgp filtering with origin with soft-reconfig qc pass: bgp filtering with metric with soft-reconfig qc pass: bgp filtering with standard community with soft-reconfig qc pass: bgp filtering with aspath with soft-reconfig qc pass: bgp locpref with soft-reconfig qc pass: bgp aspath with soft-reconfig qc pass: bgp origin with soft-reconfig qc pass: bgp metric with soft-reconfig qc pass: bgp locpref vs aspath with soft-reconfig qc pass: bgp aspath vs origin with soft-reconfig qc pass: bgp origin vs metric with soft-reconfig qc pass: bgp filtering with extended community with soft-reconfig qc pass: bgp clustlist with soft-reconfig qc pass: bgp metric vs clustlist with soft-reconfig qc pass: bgp distance with soft-reconfig qc pass: bgp distance vs locpref with soft-reconfig qc pass: bgp filtering with aigp with soft-reconfig qc pass: bgp filtering with bandwidth with soft-reconfig qc pass: bgp with a lot prefix qc pass: ebgp prefix withdraw qc pass: confed bgp prefix withdraw qc pass: ibgp prefix withdraw qc pass: ibgp fullmesh prefix withdraw qc pass: ibgp rr prefix withdraw qc pass: ebgp prefix withdraw with soft-reconfig qc pass: confed bgp prefix withdraw with soft-reconfig qc pass: ibgp prefix withdraw with soft-reconfig qc pass: ibgp fullmesh prefix withdraw with soft-reconfig qc pass: ibgp rr prefix withdraw with soft-reconfig qc pass: vpns over confed bgp qc pass: vpls/ldp over confed bgp qc pass: vpns over bgp route server qc pass: vpls/ldp over bgp route server qc pass: bgp route server with soft-reconfig qc pass: bgp route server prefix withdraw qc pass: bgp route server prefix withdraw with soft-reconfig qc pass: multisite vpns over ibgp rr no work: multisite vpls/ldp over ibgp rr qc pass: bgp change in locpref qc pass: bgp change in aspath qc pass: bgp change in origin qc pass: bgp change in metric qc pass: bgp change in aigp qc pass: bgp change in bandwidth qc pass: bgp change in standard community qc pass: bgp change in extended community qc pass: bgp change in locpref with soft-reconfig qc pass: bgp change in aspath with soft-reconfig qc pass: bgp change in origin with soft-reconfig qc pass: bgp change in metric with soft-reconfig qc pass: bgp change in aigp with soft-reconfig qc pass: bgp change in bandwidth with soft-reconfig qc pass: bgp change in standard community with soft-reconfig qc pass: bgp change in extended community with soft-reconfig qc pass: bgp aggregation qc pass: bgp maximum prefix qc pass: evpn/pbb over ebgp qc pass: evpn/pbb over ibgp qc pass: evpn/pbb over bgp additional path qc pass: evpn/pbb over ibgp rr qc pass: evpn/pbb over confed bgp qc pass: evpn/pbb over bgp route server qc pass: multisite evpn/pbb over ibgp rr qc pass: ethersite vpls/ldp over ibgp qc pass: ethersite evpn/pbb over ibgp qc pass: ethersite vpns over ibgp qc pass: vpns over bgp with soft-reconfig qc pass: vpls/ldp over bgp with soft-reconfig qc pass: evpn/pbb over bgp with soft-reconfig qc pass: unicast+vpns over bgp qc pass: unicast+vpls/ldp over bgp qc pass: unicast+evpn/pbb over bgp qc pass: unicast+vpns over bgp with soft-reconfig qc pass: unicast+vpls/ldp over bgp with soft-reconfig qc pass: unicast+evpn/pbb over bgp with soft-reconfig qc pass: unicast+vpns over bgp additional path qc pass: unicast+vpls/ldp over bgp additional path qc pass: unicast+evpn/pbb over bgp additional path qc pass: bgp auto mesh tunnel qc pass: vpns over bgp auto mesh tunnel qc pass: vpls/ldp over bgp auto mesh tunnel qc pass: evpn/pbb over bgp auto mesh tunnel qc pass: vpls/bgp over ebgp qc pass: vpls/bgp over ibgp qc pass: vpls/bgp over bgp additional path qc pass: vpls/bgp over ibgp rr qc pass: vpls/bgp over confed bgp qc pass: vpls/bgp over bgp route server qc pass: multisite vpls/bgp over ibgp rr qc pass: ethersite vpls/bgp over ibgp qc pass: vpls/bgp over bgp with soft-reconfig qc pass: unicast+vpls/bgp over bgp qc pass: unicast+vpls/bgp over bgp with soft-reconfig qc pass: unicast+vpls/bgp over bgp additional path qc pass: vpls/bgp over bgp auto mesh tunnel qc pass: vpls/ldp+vpls/bgp over bgp qc pass: ibgp conquer rr in subnet qc pass: ibgp conquer rr in subnet with soft-reconfig qc pass: ibgp conquer rr prefix withdraw qc pass: ibgp conquer rr prefix withdraw with soft-reconfig qc pass: unicast+mvpn over bgp qc pass: unicast+mdt over bgp qc pass: unicast+flowspec over bgp qc pass: unicast+flowspecvpn over bgp qc pass: unicast+mvpn over bgp with soft-reconfig qc pass: unicast+mdt over bgp with soft-reconfig qc pass: unicast+flowspec over bgp with soft-reconfig qc pass: unicast+flowspecvpn over bgp with soft-reconfig qc pass: unicast+mvpn over bgp with additional path qc pass: unicast+mdt over bgp with additional path qc pass: unicast+flowspec over bgp with additional path qc pass: unicast+flowspecvpn over bgp with additional path qc pass: evpn/vxlan over ebgp qc pass: evpn/vxlan over ibgp qc pass: evpn/vxlan over bgp additional path qc pass: evpn/vxlan over ibgp rr qc pass: evpn/vxlan over confed bgp qc pass: evpn/vxlan over bgp route server qc pass: multisite evpn/vxlan over ibgp rr qc pass: ethersite evpn/vxlan over ibgp qc pass: evpn/vxlan over bgp with soft-reconfig qc pass: unicast+evpn/vxlan over bgp qc pass: unicast+evpn/vxlan over bgp with soft-reconfig qc pass: unicast+evpn/vxlan over bgp additional path qc pass: evpn/vxlan over bgp auto mesh tunnel qc pass: evpn/pbb+vpls/vxlan over ebgp qc pass: evpn/cmac over ebgp qc pass: evpn/cmac over ibgp qc pass: evpn/cmac over bgp additional path qc pass: evpn/cmac over ibgp rr qc pass: evpn/cmac over confed bgp qc pass: evpn/cmac over bgp route server qc pass: multisite evpn/cmac over ibgp rr qc pass: ethersite evpn/cmac over ibgp qc pass: evpn/cmac over bgp with soft-reconfig qc pass: unicast+evpn/cmac over bgp qc pass: unicast+evpn/cmac over bgp with soft-reconfig qc pass: unicast+evpn/cmac over bgp additional path qc pass: evpn/cmac over bgp auto mesh tunnel qc pass: evpn/pbb+vpls/cmac over ebgp qc pass: ibgp with ttl-security qc pass: ebgp with ttl-security todo: reload vdc asdf looping as experimental!!! todo: bdi infrastructure, service instances, etc todo: ncp close should honored again todo: vdc tree drawing todo: reenable which elliptic courves? sure? why that? todo: https://tools.ietf.org/html/draft-ietf-tn3270e-telnet-tls-06 todo: parse privilege levels from radius and tacacs todo: ldap client, server todo: tunnel autobandwidth todo: bgp compare should write out that which attributes changed todo: bfd need to send with ttl=255 todo: attach line not working anymore, try with deactivation and attach todo: trustpoint for certificates todo: more level of config sections todo: tab for deb pro o?-->ospf[4/6] todo: interface name tabbing todo: show upgrade todo: reenabling of routing protocols fails todo: int eth1/int eth2 todo: dhcp relay support todo: sslvpn client, server todo: dlsw client, server todo: tcp selective ack todo: xot, x75 switching todo: preallocate qos buffers todo: lisp4, lisp6 todo: l2vpn for isis todo: hip (rfc4423) todo: more show commands todo: more clear commands todo: more interactive tools todo: arpwatch for ipv4/6 todo: igmp4/6 snoop, pim4/6 snoop for bridging todo: multilink ppp, fr todo: x25 todo: default vrf for show commands ---------------------------------- 2016-07-30 09:51:43 no todo: dlsw client, server qc pass: dlsw over ipv4 qc pass: dlsw over ipv6 qc pass: dlsw over loopback qc pass: hdlc tunneling with dlsw qc pass: ppp tunneling with dlsw qc pass: lapb tunneling with dlsw qc pass: framerelay tunneling with dlsw qc pass: atmdxi tunneling with dlsw qc pass: isdn tunneling with dlsw qc pass: ethernet tunneling with dlsw qc pass: vlan tunneling with dlsw qc pass: tunnel interface with dlsw qc pass: cross connect interworking with dlsw ---------------------------------- 2016-08-21 09:13:33 no qc pass: bridged ethernet over bridge no qc pass: bridge with spantree no qc pass: bridged ethernet over gre no qc pass: bridged ethernet over atmsar no qc pass: bridged ethernet over atmdxi no qc pass: bridged ethernet over framerelay no qc pass: bridged ethernet over ppp no qc pass: bridged ethernet over hdlc no qc pass: star bridged ethernet no qc pass: chain bridged ethernet vlan no qc pass: chain bridged ethernet no qc pass: isdn with ax25 no qc pass: atmdxi with ax25 no qc pass: framerelay with ax25 no qc pass: lapb with ax25 no qc pass: hdlc with ax25 no qc pass: ppp with ax25 no qc pass: atmsar encapsulation no qc pass: atmdxi encapsulation no qc pass: dummy test no work: dummy test no work: atmdxi encapsulation no work: atmsar encapsulation no work: ppp with ax25 no work: hdlc with ax25 no work: lapb with ax25 no work: framerelay with ax25 no work: atmdxi with ax25 no work: isdn with ax25 no work: chain bridged ethernet no work: chain bridged ethernet vlan no work: star bridged ethernet no work: bridged ethernet over hdlc no work: bridged ethernet over ppp no work: bridged ethernet over framerelay no work: bridged ethernet over atmdxi no work: bridged ethernet over atmsar no work: bridged ethernet over gre no work: bridge with spantree no work: bridged ethernet over bridge todo: sh ipv4 isis 100 data 2 doesn't work anymore too nicely...:) todo: ctunnel interface which is the same as tunnel interface --> interface aliasing... ---------------------------------- 2016-08-23 00:05:36 no todo: sh ipv4 isis 100 data 2 doesn't work anymore too nicely...:) qc pass: dummy test qc pass: atmdxi encapsulation qc pass: atmsar encapsulation qc pass: ppp with ax25 qc pass: hdlc with ax25 qc pass: lapb with ax25 qc pass: framerelay with ax25 qc pass: atmdxi with ax25 qc pass: isdn with ax25 qc pass: chain bridged ethernet qc pass: chain bridged ethernet vlan qc pass: star bridged ethernet qc pass: bridged ethernet over hdlc qc pass: bridged ethernet over ppp qc pass: bridged ethernet over framerelay qc pass: bridged ethernet over atmdxi qc pass: bridged ethernet over atmsar qc pass: bridged ethernet over gre qc pass: bridge with spantree qc pass: bridged ethernet over bridge todo: interface range command... todo: sh ipv4 isis 100 data 2 doesn't work anymore too nicely... ---------------------------------- 2016-09-10 11:54:49 todo: mpls label security ---------------------------------- 2017-02-19 22:32:48 qc pass: bgp filtering with large community qc pass: bgp filtering with large community with soft-reconfig qc pass: bgp change in large community qc pass: bgp change in large community with soft-reconfig ---------------------------------- 2017-03-10 08:59:52 qc pass: udpgre over ipv4 qc pass: udpgre over ipv6 qc pass: udpgre over udpgre qc pass: udpgre over loopback ---------------------------------- 2017-03-17 08:33:22 no todo: vdc tree drawing no todo: ctunnel interface which is the same as tunnel interface --> interface aliasing... no todo: sh ipv4 isis 100 data 2 doesn't work anymore too nicely... no qc pass: rip metric no qc pass: pvrp metric qc pass: babel triangle connection qc pass: bgp triangle connection qc pass: eigrp triangle connection qc pass: isis triangle connection qc pass: lsrp triangle connection qc pass: ospf triangle connection qc pass: pvrp incoming metric qc pass: pvrp outgoing metric qc pass: pvrp triangle connection qc pass: rip incoming metric qc pass: rip outgoing metric qc pass: rip triangle connection ---------------------------------- 2017-03-18 21:48:24 no qc pass: rip outgoing metric no qc pass: rip incoming metric no qc pass: pvrp outgoing metric no qc pass: pvrp incoming metric qc pass: ingress dscp matching access list qc pass: egress dscp matching access list qc pass: ingress precedence matching access list qc pass: egress precedence matching access list qc pass: ingress length matching access list qc pass: egress length matching access list qc pass: pvrp incoming interface metric qc pass: pvrp outgoing interface metric qc pass: pvrp incoming routemap metric qc pass: pvrp outgoing routemap metric qc pass: rip incoming interface metric qc pass: rip outgoing interface metric qc pass: rip incoming routemap metric qc pass: rip outgoing interface metric ---------------------------------- 2017-04-05 21:43:35 no todo: tab for deb pro o?-->ospf[4/6] qc pass: rip outgoing routemap metric ---------------------------------- 2017-04-08 06:05:36 qc pass: redistribution filtering with hierarchical routemap ---------------------------------- 2017-04-09 21:42:35 no todo: reenabling of routing protocols fails no qc pass: eigrp delay no qc pass: bgp filtering with large community with soft-reconfig no qc pass: bgp filtering with large community no qc pass: bgp filtering with bandwidth with soft-reconfig no qc pass: bgp filtering with aigp with soft-reconfig no qc pass: bgp filtering with extended community with soft-reconfig no qc pass: bgp filtering with aspath with soft-reconfig no qc pass: bgp filtering with standard community with soft-reconfig no qc pass: bgp filtering with metric with soft-reconfig no qc pass: bgp filtering with origin with soft-reconfig no qc pass: bgp filtering with locpref with soft-reconfig no qc pass: ebgp with nexthop tracking no qc pass: bgp filtering with bandwidth no qc pass: bgp filtering with aigp no qc pass: bgp filtering with extended community no qc pass: bgp filtering with aspath no qc pass: bgp filtering with standard community no qc pass: bgp filtering with metric no qc pass: bgp filtering with origin no qc pass: bgp filtering with locpref no qc pass: babel triangle connection no qc pass: babel metric qc pass: babel incoming metric with routemap no work: babel triangle connection qc pass: babel ingress route filtering with routepolicy qc pass: babel egress route filtering with routepolicy qc pass: babel outgoing metric with routemap qc pass: babel incoming metric with routepolicy qc pass: babel outgoing metric with routepolicy qc pass: babel incoming interface metric qc pass: babel outgoing interface metric qc pass: bgp routemap filtering with locpref qc pass: bgp routemap filtering with origin qc pass: bgp routemap filtering with metric qc pass: bgp routemap filtering with standard community qc pass: bgp routemap filtering with aspath qc pass: bgp routemap filtering with extended community qc pass: bgp routemap filtering with aigp qc pass: bgp routemap filtering with bandwidth no work: ebgp with nexthop tracking qc pass: bgp routemap filtering with locpref with soft-reconfig qc pass: bgp routemap filtering with origin with soft-reconfig qc pass: bgp routemap filtering with metric with soft-reconfig qc pass: bgp routemap filtering with standard community with soft-reconfig qc pass: bgp routemap filtering with aspath with soft-reconfig qc pass: bgp routemap filtering with extended community with soft-reconfig qc pass: bgp routemap filtering with aigp with soft-reconfig qc pass: bgp routemap filtering with bandwidth with soft-reconfig qc pass: bgp routemap filtering with large community qc pass: bgp routemap filtering with large community with soft-reconfig qc pass: bgp routemap filtering with aspath length qc pass: bgp routepolicy filtering with aspath length qc pass: bgp routemap filtering with aspath length witt soft-reconfig qc pass: bgp routepolicy filtering with aspath length with soft-reconfig qc pass: bgp ingress route filtering with routepolicy qc pass: bgp egress route filtering with routepolicy qc pass: bgp routepolicy filtering with locpref qc pass: bgp routepolicy filtering with origin qc pass: bgp routepolicy filtering with metric qc pass: bgp routepolicy filtering with aspath qc pass: bgp routepolicy filtering with extended community qc pass: bgp routepolicy filtering with aigp qc pass: bgp routepolicy filtering with bandwidth qc pass: bgp ingress route filtering with routepolicy with soft-reconfig qc pass: bgp egress route filtering with routepolicy with soft-reconfig qc pass: bgp routepolicy filtering with locpref with soft-reconfig qc pass: bgp routepolicy filtering with origin with soft-reconfig qc pass: bgp routepolicy filtering with metric with soft-reconfig qc pass: bgp routepolicy filtering with standard community with soft-reconfig qc pass: bgp routepolicy filtering with aspath with soft-reconfig qc pass: bgp routepolicy filtering with extended community with soft-reconfig qc pass: bgp routepolicy filtering with aigp with soft-reconfig qc pass: bgp routepolicy filtering with bandwidth with soft-reconfig qc pass: bgp routepolicy filtering with large community qc pass: bgp routepolicy filtering with large community with soft-reconfig qc pass: eigrp ingress delay qc pass: eigrp ingress route filtering with routepolicy qc pass: eigrp egress route filtering with routepolicy qc pass: eigrp egress delay qc pass: isis inter level ingress filtering with routepolicy qc pass: isis inter level egress filtering with routepolicy qc pass: lsrp route filtering with routepolicy qc pass: ospf inter area ingress filtering with routepolicy qc pass: ospf inter area egress filtering with routepolicy qc pass: pvrp incoming routepolicy metric qc pass: pvrp outgoing routepolicy metric qc pass: pvrp ingress route filtering with routepolicy qc pass: pvrp egress route filtering with routepolicy qc pass: redistribution filtering with routepolicy qc pass: redistribution filtering with hierarchical routepolicy qc pass: rip ingress route filtering with routepolicy qc pass: rip egress route filtering with routepolicy qc pass: rip incoming routepolicy metric qc pass: rip outgoing routepolicy metric ---------------------------------- 2017-04-10 07:54:28 no qc pass: ibgp with nexthop tracking qc pass: babel triangle connection qc pass: ebgp with nexthop tracking routemap qc pass: ibgp with nexthop tracking routemap qc pass: ebgp with nexthop tracking routepolicy qc pass: ibgp with nexthop tracking routepolicy ---------------------------------- 2017-04-21 05:06:25 no todo: reload vdc asdf looping as experimental!!! no todo: interface range command... qc pass: event manager todo: interface range command todo: reload vdc asdf looping as experimental ---------------------------------- 2017-04-23 15:34:27 qc pass: ppp over pckoudp pwhe qc pass: ethernet over pckoudp pwhe qc pass: ethernet over vxlan pwhe qc pass: ethernet over geneve pwhe qc pass: ethernet over erspan pwhe qc pass: ethernet over dlsw pwhe qc pass: ethernet over etherip pwhe qc pass: ethernet over uti pwhe qc pass: ethernet over nvgre pwhe qc pass: ppp over greppp pwhe qc pass: ppp over ax25 pwhe qc pass: ppp over l2tp3 pwhe qc pass: ethernet over l2tp3 pwhe qc pass: ppp over mpls pwhe qc pass: ethernet over mpls pwhe ---------------------------------- 2017-04-29 16:31:58 qc pass: ip over anyconnect qc pass: ppp over l2f pwhe qc pass: ppp over l2tp2 pwhe ---------------------------------- 2017-05-02 20:36:59 qc pass: openvpn over ipv4 qc pass: openvpn over ipv6 qc pass: openvpn over openvpn qc pass: openvpn over loopback qc pass: openvpn with des qc pass: openvpn with blowfish qc pass: openvpn with 3des qc pass: openvpn with aes128 qc pass: openvpn with aes192 qc pass: openvpn with aes256 qc pass: openvpn with md5 qc pass: openvpn with sha1 qc pass: openvpn with sha256 qc pass: openvpn with sha512 qc pass: static routing with interface ---------------------------------- 2017-05-07 09:28:00 qc pass: sep with ax25 qc pass: sep tunneling with dlsw qc pass: sep tunneling with erspan qc pass: sep tunneling with etherip qc pass: sep tunneling with geneve qc pass: sep with gre qc pass: sep over l2tp3 qc pass: sep tunneling with l2tp3 qc pass: sep tunneling with nvgre qc pass: sep tunneling with packet over udp qc pass: sep qc pass: sep tunneling with uti qc pass: sep tunneling with vxlan qc pass: cross connect sep interfaces qc pass: sep over mpls qc pass: sep tunneling with mpls ---------------------------------- 2017-05-09 19:58:11 no todo: sslvpn client, server no qc pass: ethernet over pckoudp pwhe no qc pass: ppp over pckoudp pwhe qc pass: ppp over packet over udp pwhe qc pass: ethernet over packet over udp pwhe ---------------------------------- 2017-05-14 13:30:33 qc pass: openflow: software routing qc pass: openflow: ip routing qc pass: openflow: mpls routing ---------------------------------- 2017-05-16 08:49:26 qc pass: openflow: bridging and routing ---------------------------------- 2017-05-18 12:28:14 qc pass: slaac qc pass: ppp over pptp pwhe ---------------------------------- 2017-05-20 12:52:56 qc pass: openflow: multicast routing qc pass: openflow: mldp routing ---------------------------------- 2017-05-27 11:38:45 qc pass: olsr on one subnet qc pass: olsr in chain qc pass: olsr ingress route filtering with prefixlist qc pass: olsr egress route filtering with prefixlist qc pass: olsr ingress route filtering with routemap qc pass: olsr egress route filtering with routemap qc pass: olsr ingress route filtering with routepolicy qc pass: olsr egress route filtering with routepolicy qc pass: olsr max metric qc pass: olsr address suppression qc pass: olsr default route qc pass: olsr incoming interface metric qc pass: olsr outgoing interface metric qc pass: olsr incoming metric with routemap qc pass: olsr outgoing metric with routemap qc pass: olsr incoming metric with routepolicy qc pass: olsr outgoing metric with routepolicy qc pass: olsr with bfd qc pass: olsr peer template qc pass: olsr prefix withdraw qc pass: olsr aggregation qc pass: olsr auto mesh tunnel qc pass: olsr triangle connection qc pass: redistribution with olsr ---------------------------------- 2017-07-07 10:07:22 no qc pass: interop: bgp vpn qc pass: interop: bgp vpnv4 qc pass: interop: bgp vpnv6 qc pass: othervpn over ebgp qc pass: othervpns over ibgp qc pass: othervpns over bgp additional path qc pass: othervpns over ibgp rr qc pass: othervpns over confed bgp qc pass: othervpns over bgp route server qc pass: multisite othervpns over ibgp rr qc pass: ethersite othervpns over ibgp qc pass: othervpns over bgp with soft-reconfig qc pass: unicast+othervpns over bgp qc pass: unicast+othervpns over bgp with soft-reconfig qc pass: unicast+othervpns over bgp additional path qc pass: othervpns over bgp auto mesh tunnel ---------------------------------- 2017-07-08 13:16:34 qc pass: unicast+vpnmul over bgp qc pass: unicast+vpnmul over bgp with soft-reconfig qc pass: unicast+vpnmul over bgp with additional path ---------------------------------- 2017-07-10 09:37:59 no qc pass: bgp routemap filtering with aspath length witt soft-reconfig qc pass: bgp routemap filtering with aspath length with soft-reconfig qc pass: multicast between pim and mldp ---------------------------------- 2017-07-11 12:15:12 qc pass: multicast vpn routing with mldp qc pass: multicast vpn between pim and mldp ---------------------------------- 2017-07-11 22:00:42 qc pass: unicast+othermvpn over bgp qc pass: unicast+othermvpn over bgp with soft-reconfig qc pass: unicast+othermvpn over bgp with additional path qc pass: unicast+otherflowspecvpn over bgp qc pass: unicast+otherflowspecvpn over bgp with soft-reconfig qc pass: unicast+otherflowspecvpn over bgp with additional path qc pass: unicast+othervpnmul over bgp qc pass: unicast+othervpnmul over bgp with soft-reconfig qc pass: unicast+othervpnmul over bgp with additional path qc pass: multicast othervpn routing with mldp qc pass: multicast othervpn between pim and mldp ---------------------------------- 2017-07-12 17:38:06 qc pass: proxy arp/nd qc pass: unicast+multicast over bgp qc pass: unicast+multicast over bgp with soft-reconfig qc pass: unicast+multicast over bgp with additional path qc pass: bgp csc vpn qc pass: multicast routing ttl treshold qc pass: multicast routing decoupled from unicast ---------------------------------- 2017-07-17 20:25:07 no qc pass: othervpn over ebgp no qc pass: proxy arp/nd qc pass: proxy remote arp/nd qc pass: proxy local arp/nd qc pass: othervpns over ebgp qc pass: unicast+other over bgp qc pass: unicast+other over bgp with soft-reconfig qc pass: unicast+other over bgp with additional path ---------------------------------- 2017-07-20 10:38:43 qc pass: ebgp prefix movement qc pass: confed bgp prefix movement qc pass: ibgp rr prefix movement qc pass: bgp route server prefix movement qc pass: ibgp conquer rr prefix movement qc pass: ibgp fullmesh prefix movement qc pass: ebgp prefix movement with soft-reconfig qc pass: confed bgp prefix movement with soft-reconfig qc pass: ibgp rr prefix movement with soft-reconfig qc pass: bgp route server prefix movement with soft-reconfig qc pass: ibgp conquer rr prefix movement with soft-reconfig qc pass: ibgp fullmesh prefix movement with soft-reconfig qc pass: isis prefix movement qc pass: lsrp prefix movement qc pass: ospf prefix movement qc pass: pvrp prefix movement ---------------------------------- 2017-07-22 05:26:47 qc pass: bgp csc othervpn qc pass: redistribution with bgp othervpn ---------------------------------- 2017-07-23 12:02:17 qc pass: bgp prefix hammering qc pass: redistribution prefix withdraw qc pass: redistribution change in metric qc pass: redistribution prefix movement ---------------------------------- 2017-07-25 05:00:28 qc pass: bgp csc vpn with ldp qc pass: bgp csc othervpn with ldp ---------------------------------- 2017-07-27 07:33:15 qc pass: unicast+mspw over bgp qc pass: unicast+mspw over bgp with soft-reconfig qc pass: unicast+mspw over bgp with additional path ---------------------------------- 2017-07-29 15:45:39 qc pass: bgp with segment routing ---------------------------------- 2017-08-06 13:31:14 qc pass: ebgp vpn client qc pass: ibgp vpn client qc pass: ebgp vpn client with soft-reconfig qc pass: ibgp vpn client with soft-reconfig qc pass: bgp symmetric compression qc pass: bgp asymmetric compression ---------------------------------- 2017-08-10 15:04:10 qc pass: bgp none compression qc pass: bgp prefix packing ---------------------------------- 2017-09-19 07:21:14 no todo: arpwatch for ipv4/6 ---------------------------------- 2017-10-06 18:17:58 qc pass: ingress label filtering with ldp qc pass: egress label filtering with ldp qc pass: vrf label filtering with ldp ---------------------------------- 2017-10-11 21:23:24 qc pass: recursive dns server ---------------------------------- 2017-10-14 08:16:37 no todo: mpls label security ---------------------------------- 2017-10-18 14:07:20 qc pass: qos ingress ttl set qc pass: qos egress ttl set qc pass: ebgp with nexthop tracking interface qc pass: ibgp with nexthop tracking interface ---------------------------------- 2017-10-30 15:35:10 qc pass: bier in chain qc pass: bier in star qc pass: bier in dense chain qc pass: bier in dense star qc pass: bier on multiple si qc pass: bier on mixed si qc pass: bier with 64b bsl qc pass: bier with 128b bsl qc pass: bier with 256b bsl qc pass: bier with 512b bsl qc pass: bier with 1k bsl qc pass: bier with 2k bsl qc pass: bier with 4k bsl qc pass: segment routing in chain qc pass: segment routing in star qc pass: te over segment routing qc pass: pwe over segment routing qc pass: lsrp with bier ---------------------------------- 2017-10-31 20:50:26 qc pass: backup bundle ---------------------------------- 2017-11-02 16:39:45 qc pass: multicast routing with pim join source qc pass: multicast routing with pim over bier qc pass: multicast between pim and pim over bier ---------------------------------- 2017-11-03 17:52:41 qc pass: bgp with labels and segment routing qc pass: vpns over bgp with segment routing qc pass: othervpns over bgp with segment routing qc pass: bgp with segment routing ---------------------------------- 2017-11-04 17:48:07 no qc pass: othervpns over bgp with segment routing no qc pass: vpns over bgp with segment routing no qc pass: bgp with labels and segment routing qc pass: bgp with labels over segment routing qc pass: vpns over bgp over segment routing qc pass: othervpns over bgp over segment routing ---------------------------------- 2017-11-05 14:56:51 qc pass: bier over broadcast subnet qc pass: segment routing over broadcast subnet ---------------------------------- 2017-11-06 14:06:48 qc pass: mixed protocol over bier qc pass: mpls over bier qc pass: bgp with bier qc pass: isis with bier qc pass: isis inter-level with bier qc pass: isis multi-topology with bier qc pass: ospf with bier qc pass: ospf transit area with bier ---------------------------------- 2017-12-07 09:28:36 no qc pass: ldp over ppp no work: ldp over ppp ---------------------------------- 2017-12-07 21:38:51 no todo: ncp close should honored again qc pass: ldp over ppp ---------------------------------- 2017-12-19 12:12:12 no todo: new release signing key ---------------------------------- 2018-01-06 23:12:45 qc pass: policy routing with nexthop qc pass: policy routing with interface and nexthop between vrfs qc pass: policy routing with interface and nexthop qc pass: policy routing with interface and nexthop between vrfs qc pass: policy routing between vrfs with routing qc pass: policy routing with nexthop on interface ---------------------------------- 2018-01-15 06:20:44 qc pass: bgp routemap filtering with rd qc pass: bgp routepolicy filtering with rd qc pass: bgp routemap filtering with rd with soft-reconfig qc pass: bgp routepolicy filtering with rd with soft-reconfig qc pass: policy routing with interface and nexthop between vrfs ---------------------------------- 2018-01-16 06:59:54 qc pass: policy routing with nexthop on interface between vrfs ---------------------------------- 2018-02-03 06:28:42 qc pass: bgp routemap filtering with afi qc pass: bgp routepolicy filtering with afi qc pass: bgp routemap filtering with afi with soft-reconfig qc pass: bgp routepolicy filtering with afi with soft-reconfig ---------------------------------- 2018-02-11 21:05:55 no qc pass: rip auto mesh tunnel no qc pass: pvrp auto mesh tunnel no qc pass: ospf auto mesh tunnel no qc pass: olsr auto mesh tunnel no qc pass: lsrp auto mesh tunnel no qc pass: isis auto mesh tunnel no qc pass: eigrp auto mesh tunnel no qc pass: bgp auto mesh tunnel no qc pass: babel auto mesh tunnel no work: babel auto mesh tunnel no work: bgp auto mesh tunnel no work: eigrp auto mesh tunnel no work: isis auto mesh tunnel no work: lsrp auto mesh tunnel no work: olsr auto mesh tunnel no work: ospf auto mesh tunnel no work: pvrp auto mesh tunnel no work: rip auto mesh tunnel todo: todo: safe=1000: todo: todo: lenovo=9: todo: todo: player=99: todo: todo: automesh to the end of route table calculator todo: rename taba to tabu in route table calculator todo: optimize redistributed routes too at notifyrouters todo: ospf and isis missed notifications, schedwork/run use syncint todo: lsrp to use syncint as todo todo: statistics for redistribution todo: show commands for redistribution todo: route table calculation must not merge distance>255 ---------------------------------- 2018-02-12 18:20:36 no todo: route table calculation must not merge distance>255 no todo: show commands for redistribution no todo: statistics for redistribution no todo: lsrp to use syncint as todo no todo: ospf and isis missed notifications, schedwork/run use syncint no todo: optimize redistributed routes too at notifyrouters no todo: rename taba to tabu in route table calculator no todo: automesh to the end of route table calculator no todo: player=99: no todo: lenovo=9: no todo: safe=1000: no todo: reload vdc asdf looping as experimental qc pass: babel auto mesh tunnel qc pass: bgp auto mesh tunnel qc pass: eigrp auto mesh tunnel qc pass: isis auto mesh tunnel qc pass: lsrp auto mesh tunnel qc pass: olsr auto mesh tunnel qc pass: ospf auto mesh tunnel qc pass: pvrp auto mesh tunnel qc pass: rip auto mesh tunnel todo: reload vdc/process asdf stop/start todo: todo: done: player/99: rout-ospf37.tst: no work: ospf prefix movement todo: done: ospf and isis missed notifications, schedwork/run todo use syncint todo: done: lsrp to use syncint as todo todo: done: tester should collect tracebacks todo: done: show commands for redistributed, computed todo: done: statistics for redistribution todo: done: optimize redistributed routes too at notifyrouters todo: done: rename taba to tabu in route table calculator todo: done: isakmp bug todo: done: a lot of: tab.tabGenV2.doGet:tabGenV2.java:266/tab.tabGenV2.doFind:tabGenV2.java:215/tab.tabGenV2.find:tabGenV2.java:147 todo: done: a lot of: tab.tabGenV2.doGet:tabGenV2.java:266/tab.tabGenV2.get:tabGenV2.java:135 todo: done: automesh to the end of route table calculator todo: done: route table calculation must not merge distance>255 todo: todo: try: boxing size, begin, data to a class todo: try: dofind: first find the block, then the entry within the block todo: todo: safe/1000: todo: todo: lenovo/9: todo: todo: player/99: ---------------------------------- 2018-02-13 20:48:59 no todo: player/99: no todo: lenovo/9: no todo: safe/1000: no todo: try: dofind: first find the block, then the entry within the block no todo: try: boxing size, begin, data to a class no todo: reload vdc/process asdf stop/start todo: done: reload vdc/process asdf stop/start todo: done: mcast bug todo: done: dofind: first find the block, then the entry within the block todo: done: pipeline unsync per byte actions todo: todo: sleep exec/tcl commands todo: buffer config to forwarder/loadbalancer todo: spf should give topology checksum by adding outputs and invoking String.hashCode() todo: todo: tests: todo: done=2,3,1000 todo: lenovo= todo: player= todo: safe= ---------------------------------- 2018-02-14 18:50:10 no todo: safe= no todo: player= no todo: lenovo= no todo: done=2,3,1000 no todo: spf should give topology checksum by adding outputs and invoking String.hashCode() no todo: buffer config to forwarder/loadbalancer no todo: sleep exec/tcl commands todo: done: spf should give topology checksum by adding outputs and invoking String.hashCode() todo: done: buffer config to forwarder/loadbalancer todo: done: sleep exec/tcl commands todo: done: tester parameter for jvm memory todo: done: move route table checker to tabroute todo: done: flood topology summary in lsrp todo: todo: done=2,3,9,13,17,50,99,500,1000 todo: lenovo=4000 todo: player=250 todo: safe=2000 ---------------------------------- 2018-02-15 07:02:16 no todo: safe=2000 no todo: player=250 no todo: lenovo=4000 no todo: done=2,3,9,13,17,50,99,500,1000 no todo: tests: no todo: no todo: done: flood topology summary in lsrp no todo: done: move route table checker to tabroute no todo: done: tester parameter for jvm memory no todo: done: sleep exec/tcl commands no todo: done: buffer config to forwarder/loadbalancer no todo: done: spf should give topology checksum by adding outputs and invoking String.hashCode() no todo: done: pipeline unsync per byte actions no todo: done: dofind: first find the block, then the entry within the block no todo: done: route table calculation must not merge distance>255 no todo: done: automesh to the end of route table calculator no todo: done: a lot of: tab.tabGenV2.doGet:tabGenV2.java:266/tab.tabGenV2.get:tabGenV2.java:135 no todo: done: a lot of: tab.tabGenV2.doGet:tabGenV2.java:266/tab.tabGenV2.doFind:tabGenV2.java:215/tab.tabGenV2.find:tabGenV2.java:147 no todo: done: mcast bug no todo: done: isakmp bug no todo: done: rename taba to tabu in route table calculator no todo: done: optimize redistributed routes too at notifyrouters no todo: done: statistics for redistribution no todo: done: show commands for redistributed, computed no todo: done: tester should collect tracebacks no todo: done: lsrp to use syncint as todo no todo: done: ospf and isis missed notifications, schedwork/run todo use syncint no todo: done: player/99: rout-ospf37.tst: no work: ospf prefix movement no todo: done: reload vdc/process asdf stop/start no todo: ---------------------------------- 2018-02-16 09:31:21 qc pass: bgp hard reset qc pass: bgp hard reset with soft-reconfig qc pass: bgp soft in reset qc pass: bgp soft in reset with soft-reconfig qc pass: bgp soft out reset qc pass: bgp soft out reset with soft-reconfig ---------------------------------- 2018-02-17 06:17:24 no todo: show upgrade no todo: more level of config sections no todo: attach line not working anymore, try with deactivation and attach no todo: tunnel autobandwidth no todo: bdi infrastructure, service instances, etc ---------------------------------- 2018-02-18 17:56:39 qc pass: bridged evcs over ethernet qc pass: bridged evcs over hdlc qc pass: bridged evcs over gre qc pass: bridged evcs and subif qc pass: bridged evcs and main qc pass: xconnect evcs terminated on xconnects qc pass: xconnect evcs terminated on pwhes qc pass: xconnect terminated on pwhe subifs qc pass: xconnect terminated on pwhe bridged evcs qc pass: xconnect terminated on pwhe xconnect evcs ---------------------------------- 2018-02-19 06:39:13 qc pass: bridge split horizon qc pass: bridge mac learning ---------------------------------- 2018-02-27 16:37:00 qc pass: interop: vpls/ldp over bgp qc pass: interop: vpls/bgp over bgp qc pass: interop: isis p2mp te qc pass: interop: isis sr qc pass: interop: ldp p2mp lsp qc pass: interop: ldp mp2mp lsp qc pass: interop: ospf p2mp te qc pass: interop: ospf sr ---------------------------------- 2018-03-04 12:42:07 qc pass: cross connect vlan subinterfaces qc pass: cross connect vlan subinterfaces of same interface ---------------------------------- 2018-03-06 20:16:04 qc pass: source prefix translation qc pass: target prefix translation todo: remote tester ---------------------------------- 2018-03-09 08:26:10 no qc pass: sipmodem server qc pass: modem with alaw qc pass: modem with ulaw qc pass: modem with alaw through proxy qc pass: modem with ulaw through proxy qc pass: modem with alaw through peer qc pass: modem with ulaw through peer ---------------------------------- 2018-03-12 03:32:27 qc pass: modem with alaw and ulaw through peer ---------------------------------- 2018-03-29 21:33:31 qc pass: ingress destination matching hibryd access list qc pass: egress destination matching hibryd access list qc pass: ingress source matching hibryd access list qc pass: egress source matching hibryd access list ---------------------------------- 2018-04-04 18:28:09 qc pass: static arp/nd entry qc pass: interop: vxlan tunnel ---------------------------------- 2018-04-06 14:44:46 qc pass: xconnect evcs terminated on vpdns qc pass: nsh over ethernet qc pass: nsh over ethernet vlan qc pass: nsh over ethernet bridge qc pass: nsh over hdlc qc pass: nsh over ppp qc pass: nsh over framerelay qc pass: nsh over atmdxi qc pass: nsh over gre qc pass: nsh chain qc pass: nsh loop qc pass: nsh switch qc pass: nsh ip qc pass: nsh mix of ip and ethernet ---------------------------------- 2018-04-08 19:21:59 qc pass: modem through ipv4 peer qc pass: modem through ipv6 peer qc pass: modem through udp peer qc pass: modem through tcp peer ---------------------------------- 2018-04-11 04:57:27 no todo: remote tester qc pass: pckoip over ipv4 qc pass: pckoip over ipv6 qc pass: pckoip over pckoip qc pass: pckoip over loopback qc pass: interop: teszt teszt ---------------------------------- 2018-04-14 17:44:13 no qc pass: interop: teszt teszt no qc pass: interop: vxlan tunnel no qc pass: interop: ipip tunnel no qc pass: interop: gre tunnel no qc pass: interop: tacacs no qc pass: interop: ssh no qc pass: interop: rip authentication no qc pass: interop: rip prefix withdraw no qc pass: interop: rip no qc pass: interop: radius no qc pass: interop: pppoe with eap no qc pass: interop: pppoe with chap no qc pass: interop: pppoe with pap no qc pass: interop: pppoe server no qc pass: interop: pppoe client no qc pass: interop: ospf sr no qc pass: interop: ospf p2mp te no qc pass: interop: ospf authentication no qc pass: interop: ospf prefix withdraw no qc pass: interop: ospf te no qc pass: interop: ospf nssa area no qc pass: interop: ospf stub area no qc pass: interop: ospf transit area no qc pass: interop: ospf nondr no qc pass: interop: ospf dr no qc pass: interop: point2point ospf no qc pass: interop: pim no qc pass: interop: igmp3/mld2 no qc pass: interop: ldp mp2mp lsp no qc pass: interop: ldp p2mp lsp no qc pass: interop: ethernet over mpls no qc pass: interop: ldp lsp no qc pass: interop: ethernet tunneling with l2tp3 no qc pass: interop: l2tp3 server no qc pass: interop: l2tp2 server no qc pass: interop: l2tp2 client no qc pass: interop: isis sr no qc pass: interop: isis p2mp te no qc pass: interop: isis authentication no qc pass: interop: isis prefix withdraw no qc pass: interop: isis multi-topology no qc pass: interop: isis te no qc pass: interop: isis narrow metric no qc pass: interop: isis nondis no qc pass: interop: isis dis no qc pass: interop: point2point isis no qc pass: interop: ike2 with group24 no qc pass: interop: ike2 with group16 no qc pass: interop: ike2 with group15 no qc pass: interop: ike2 with group14 no qc pass: interop: ike2 with group5 no qc pass: interop: ike2 with group2 no qc pass: interop: ike2 with sha512 no qc pass: interop: ike2 with sha256 no qc pass: interop: ike2 with sha1 no qc pass: interop: ike2 with aes256 no qc pass: interop: ike2 with aes192 no qc pass: interop: ike2 with aes128 no qc pass: interop: ike2 with 3des no qc pass: interop: ike2 with ipv6 no qc pass: interop: ike2 with ipv4 no qc pass: interop: ike1 with group24 no qc pass: interop: ike1 with group16 no qc pass: interop: ike1 with group15 no qc pass: interop: ike1 with group14 no qc pass: interop: ike1 with group5 no qc pass: interop: ike1 with group2 no qc pass: interop: ike1 with sha512 no qc pass: interop: ike1 with sha256 no qc pass: interop: ike1 with sha1 no qc pass: interop: ike1 with aes256 no qc pass: interop: ike1 with aes192 no qc pass: interop: ike1 with aes128 no qc pass: interop: ike1 with 3des no qc pass: interop: ike1 with ipv6 no qc pass: interop: ike1 with ipv4 no qc pass: interop: spantree root no qc pass: interop: spantree nonroot no qc pass: interop: dot1q encapsulation no qc pass: interop: ethernet encapsulation no qc pass: interop: eigrp prefix withdraw no qc pass: interop: eigrp no qc pass: interop: dns no qc pass: interop: dhcp client no qc pass: interop: dhcp server no qc pass: interop: vpls/bgp over bgp no qc pass: interop: vpls/ldp over bgp no qc pass: interop: bgp vpnv6 no qc pass: interop: bgp authentication no qc pass: interop: bgp vpnv4 no qc pass: interop: bgp prefix withdraw no qc pass: interop: bgp addpath no qc pass: interop: bgp with labels no qc pass: interop: bgp aspath no qc pass: interop: bgp community no qc pass: interop: bgp metric no qc pass: interop: bgp origin no qc pass: interop: bgp locpref no qc pass: interop: ibgp no qc pass: interop: ebgp qc pass: interop1: ebgp qc pass: interop1: ibgp qc pass: interop1: bgp locpref qc pass: interop1: bgp origin qc pass: interop1: bgp metric qc pass: interop1: bgp community qc pass: interop1: bgp aspath qc pass: interop1: bgp with labels qc pass: interop1: bgp addpath qc pass: interop1: bgp prefix withdraw qc pass: interop1: bgp vpnv4 qc pass: interop1: bgp authentication qc pass: interop1: bgp vpnv6 qc pass: interop1: vpls/ldp over bgp qc pass: interop1: vpls/bgp over bgp qc pass: interop1: bgp extended community qc pass: interop1: dhcp server qc pass: interop1: dhcp client qc pass: interop1: dns qc pass: interop1: eigrp qc pass: interop1: eigrp prefix withdraw qc pass: interop1: ethernet encapsulation qc pass: interop1: dot1q encapsulation qc pass: interop1: spantree nonroot qc pass: interop1: spantree root qc pass: interop1: ike1 with ipv4 qc pass: interop1: ike1 with ipv6 qc pass: interop1: ike1 with 3des qc pass: interop1: ike1 with aes128 qc pass: interop1: ike1 with aes192 qc pass: interop1: ike1 with aes256 qc pass: interop1: ike1 with sha1 qc pass: interop1: ike1 with sha256 qc pass: interop1: ike1 with sha512 qc pass: interop1: ike1 with group2 qc pass: interop1: ike1 with group5 qc pass: interop1: ike1 with group14 qc pass: interop1: ike1 with group15 qc pass: interop1: ike1 with group16 qc pass: interop1: ike1 with group24 qc pass: interop1: ike2 with ipv4 qc pass: interop1: ike2 with ipv6 qc pass: interop1: ike2 with 3des qc pass: interop1: ike2 with aes128 qc pass: interop1: ike2 with aes192 qc pass: interop1: ike2 with aes256 qc pass: interop1: ike2 with sha1 qc pass: interop1: ike2 with sha256 qc pass: interop1: ike2 with sha512 qc pass: interop1: ike2 with group2 qc pass: interop1: ike2 with group5 qc pass: interop1: ike2 with group14 qc pass: interop1: ike2 with group15 qc pass: interop1: ike2 with group16 qc pass: interop1: ike2 with group24 qc pass: interop1: point2point isis qc pass: interop1: isis dis qc pass: interop1: isis nondis qc pass: interop1: isis narrow metric qc pass: interop1: isis te qc pass: interop1: isis multi-topology qc pass: interop1: isis prefix withdraw qc pass: interop1: isis authentication qc pass: interop1: isis p2mp te qc pass: interop1: isis sr qc pass: interop1: l2tp2 client qc pass: interop1: l2tp2 server qc pass: interop1: l2tp3 server qc pass: interop1: ethernet tunneling with l2tp3 qc pass: interop1: ldp lsp qc pass: interop1: ethernet over mpls qc pass: interop1: ldp p2mp lsp qc pass: interop1: ldp mp2mp lsp qc pass: interop1: igmp3/mld2 qc pass: interop1: pim qc pass: interop1: modem with alaw qc pass: interop1: modem with ulaw qc pass: interop1: point2point ospf qc pass: interop1: ospf dr qc pass: interop1: ospf nondr qc pass: interop1: ospf transit area qc pass: interop1: ospf stub area qc pass: interop1: ospf nssa area qc pass: interop1: ospf te qc pass: interop1: ospf prefix withdraw qc pass: interop1: ospf authentication qc pass: interop1: ospf p2mp te qc pass: interop1: ospf sr qc pass: interop1: pppoe client qc pass: interop1: pppoe server qc pass: interop1: pppoe with pap qc pass: interop1: pppoe with chap qc pass: interop1: pppoe with eap qc pass: interop1: radius qc pass: interop1: rip qc pass: interop1: rip prefix withdraw qc pass: interop1: rip authentication qc pass: interop1: ssh qc pass: interop1: tacacs qc pass: interop1: gre tunnel qc pass: interop1: ipip tunnel qc pass: interop1: vxlan tunnel qc pass: interop2: ebgp qc pass: interop2: ibgp qc pass: interop2: bgp locpref qc pass: interop2: bgp origin qc pass: interop2: bgp metric qc pass: interop2: bgp community qc pass: interop2: bgp aspath qc pass: interop2: bgp with labels qc pass: interop2: bgp addpath qc pass: interop2: bgp prefix withdraw qc pass: interop2: bgp vpnv4 qc pass: interop2: bgp authentication qc pass: interop2: bgp vpnv6 qc pass: interop2: vpls/ldp over bgp qc pass: interop2: vpls/bgp over bgp qc pass: interop2: evpn/pbb over bgp qc pass: interop2: bgp extended community qc pass: interop2: bgp large community qc pass: interop2: eigrp qc pass: interop2: eigrp prefix withdraw qc pass: interop2: ethernet encapsulation qc pass: interop2: dot1q encapsulation qc pass: interop2: dot1ad encapsulation qc pass: interop2: point2point isis qc pass: interop2: isis dis qc pass: interop2: isis nondis qc pass: interop2: isis narrow metric qc pass: interop2: isis te qc pass: interop2: isis multi-topology qc pass: interop2: isis prefix withdraw qc pass: interop2: isis authentication qc pass: interop2: isis p2mp te qc pass: interop2: isis sr qc pass: interop2: ldp lsp qc pass: interop2: ethernet over mpls qc pass: interop2: ldp p2mp lsp qc pass: interop2: ldp mp2mp lsp qc pass: interop2: igmp3/mld2 qc pass: interop2: pim qc pass: interop2: point2point ospf qc pass: interop2: ospf dr qc pass: interop2: ospf nondr qc pass: interop2: point2point ospf qc pass: interop2: ospf stub area qc pass: interop2: ospf nssa area qc pass: interop2: ospf te qc pass: interop2: point2point ospf qc pass: interop2: ospf authentication qc pass: interop2: ospf p2mp te qc pass: interop2: ospf sr qc pass: interop2: rip qc pass: interop2: rip prefix withdraw qc pass: interop2: rip authentication qc pass: interop2: gre tunnel qc pass: interop2: ipip tunnel qc pass: interop2: config wiper ---------------------------------- 2018-04-17 11:48:01 qc pass: ethernet over mpls with cw ---------------------------------- 2018-04-20 04:14:57 qc pass: ethernet over mpls pwhe with cw qc pass: cross connect with pwe over mpls with cw ---------------------------------- 2018-05-26 06:14:41 todo: yang over netconf, proto over grpc ---------------------------------- 2018-05-29 08:41:46 qc pass: dummy test todo: yang over netconf, proto over grpc todo: interface range command todo: reenable which elliptic courves? sure? why that? todo: https://tools.ietf.org/html/draft-ietf-tn3270e-telnet-tls-06 todo: parse privilege levels from radius and tacacs todo: ldap client, server todo: bgp compare should write out that which attributes changed todo: bfd need to send with ttl=255 todo: trustpoint for certificates todo: interface name tabbing todo: int eth1/int eth2 todo: dhcp relay support todo: tcp selective ack todo: xot, x75 switching todo: preallocate qos buffers todo: lisp4, lisp6 todo: l2vpn for isis todo: hip (rfc4423) todo: more show commands todo: more clear commands todo: more interactive tools todo: igmp4/6 snoop, pim4/6 snoop for bridging todo: multilink ppp, fr todo: x25 todo: default vrf for show commands ---------------------------------- 2018-05-29 08:44:44 todo: testing123 ---------------------------------- 2018-05-29 08:45:00 no todo: testing123 ---------------------------------- 2018-05-29 08:48:24 no qc pass: dummy test no work: dummy test ---------------------------------- 2018-05-29 08:49:57 qc pass: dummy test ---------------------------------- 2018-05-29 08:51:01 no qc pass: dummy test no work: dummy test ---------------------------------- 2018-05-29 08:53:46 qc pass: dummy test ---------------------------------- 2018-05-29 15:17:30 no qc pass: interop2: point2point ospf no qc pass: interop2: point2point ospf qc pass: interop2: ospf transit area qc pass: interop2: ospf prefix withdraw qc pass: interop9: ebgp qc pass: interop9: ibgp qc pass: interop9: bgp locpref qc pass: interop9: bgp origin qc pass: interop9: bgp metric qc pass: interop9: bgp community qc pass: interop9: ethernet encapsulation qc pass: interop9: dot1q encapsulation qc pass: interop9: point2point isis qc pass: interop9: isis dis qc pass: interop9: isis nondis qc pass: interop9: point2point ospf qc pass: interop9: ospf dr qc pass: interop9: ospf nondr qc pass: interop9: rip qc pass: interop9: config wiper ---------------------------------- 2018-05-31 05:29:56 qc pass: interop9: bgp aspath qc pass: interop9: bgp with labels qc pass: interop9: bgp addpath qc pass: interop9: bgp prefix withdraw qc pass: interop9: bgp vpnv4 qc pass: interop9: bgp authentication qc pass: interop9: bgp vpnv6 qc pass: interop9: vpls/ldp over bgp qc pass: interop9: vpls/bgp over bgp qc pass: interop9: bgp extended community qc pass: interop9: bgp large community qc pass: interop9: isis te qc pass: interop9: isis prefix withdraw qc pass: interop9: isis p2mp te qc pass: interop9: isis sr qc pass: interop9: ldp lsp qc pass: interop9: ethernet over mpls qc pass: interop9: ldp p2mp lsp qc pass: interop9: ldp mp2mp lsp qc pass: interop9: ospf transit area qc pass: interop9: ospf stub area qc pass: interop9: ospf nssa area qc pass: interop9: ospf te qc pass: interop9: ospf prefix withdraw qc pass: interop9: ospf p2mp te qc pass: interop9: ospf sr ---------------------------------- 2018-06-17 15:24:38 todo: ilnp (rfc6740) ---------------------------------- 2018-06-19 13:55:53 todo: online insertion (and never removal) ---------------------------------- 2018-06-21 12:15:45 no todo: online insertion (and never removal) ---------------------------------- 2018-06-24 17:53:40 qc pass: ethernet over packet over udp qc pass: interworking with ethernet over packet over udp ---------------------------------- 2018-07-01 20:49:46 todo: srv6 tunnel todo: test cases for srmpls, srip todo: tunnel states for bier, te, ldp, pwe, ipsec, l2tp todo: ethtyp autostate command todo: ethtyp prec/exp/cos accounting todo: sr, bier tunneling todo: bgp sr policy afi todo: bgp vpns over sr todo: autoroute todo: exp bundle todo: recursive static route todo: pipeline properties, terminal autoresize ---------------------------------- 2018-07-02 13:46:54 no todo: autoroute no todo: bgp sr policy afi no todo: sr, bier tunneling no todo: ethtyp prec/exp/cos accounting no todo: ethtyp autostate command no todo: tunnel states for bier, te, ldp, pwe, ipsec, l2tp no todo: test cases for srmpls, srip no todo: srv6 tunnel todo: test cases for srmpls, srext todo: tunnel states for bier, te, pwe, ipsec, l2tp todo: remove states where possible from cfgIfc's = "" + tunTrg; todo: tunnel templates, more srv6 like modes with ipip, gre todo: mpls rx/tx only, sending-interface todo: autoroute with sr, bier support todo: bgp sr-policy afi todo: interface autostate command todo: ethtyp prec/exp/cos and protocol accounting ---------------------------------- 2018-07-03 19:36:23 no todo: ethtyp prec/exp/cos and protocol accounting no todo: interface autostate command no todo: mpls rx/tx only, sending-interface no todo: tunnel templates, more srv6 like modes with ipip, gre no todo: remove states where possible from cfgIfc's = "" + tunTrg; no todo: tunnel states for bier, te, pwe, ipsec, l2tp no todo: test cases for srmpls, srext todo: test cases for srmpls, srext, mpls redir todo: servers for ipip, gre, mplsudp, mplsip ---------------------------------- 2018-07-07 12:33:28 no todo: test cases for srmpls, srext, mpls redir todo: test cases for "srmpls", "srext", anycast prefix-sid, "mpls redir" ---------------------------------- 2018-07-08 20:30:56 no todo: exp bundle no todo: test cases for "srmpls", "srext", anycast prefix-sid, "mpls redir" no qc pass: ospf transit area with segment routing no qc pass: ospf with segment routing no qc pass: lsrp with segment routing no qc pass: isis multi-topology with segment routing no qc pass: isis inter-level with segment routing no qc pass: isis with segment routing no qc pass: bgp with segment routing no qc pass: segment routing over broadcast subnet no qc pass: othervpns over bgp over segment routing no qc pass: vpns over bgp over segment routing no qc pass: bgp with labels over segment routing no qc pass: bgp over segment routing no qc pass: pwe over segment routing no qc pass: te over segment routing no qc pass: segment routing in star no qc pass: segment routing in chain qc pass: mpls expbundle qc pass: mpls redirection qc pass: sr in chain qc pass: sr in star qc pass: te over sr qc pass: pwe over sr qc pass: bgp over sr qc pass: bgp with labels over sr qc pass: vpns over bgp over sr qc pass: othervpns over bgp over sr qc pass: sr over broadcast subnet qc pass: sr te over mpls qc pass: sr te over exthdr qc pass: bgp with sr qc pass: isis with sr qc pass: isis inter-level with sr qc pass: isis multi-topology with sr qc pass: lsrp with sr qc pass: ospf with sr qc pass: ospf transit area with sr ---------------------------------- 2018-07-11 06:24:12 no todo: servers for ipip, gre, mplsudp, mplsip todo: servers for etherip, ipip, gre, mplsudp, mplsip ---------------------------------- 2018-07-13 22:37:36 no todo: bgp vpns over sr no todo: servers for etherip, ipip, gre, mplsudp, mplsip qc pass: iponly qc pass: mplsip server todo: servers for ipip, gre, etherip, mplsudp todo: bgp vpns with sr-policy ---------------------------------- 2018-07-14 21:22:26 no todo: servers for ipip, gre, etherip, mplsudp qc pass: mplsudp server todo: servers for ipip, gre, etherip todo: clean up javadoc errors todo: changelog converter for https://manpages.debian.org/testing/dpkg-dev/deb-changelog.5.en.html format with notodo lines ---------------------------------- 2018-07-15 19:27:51 no todo: servers for ipip, gre, etherip qc pass: etherip server todo: servers for ipip todo: silently accept ipv4 addr 1.1.1.1 /24 ipv6 addr 1234::1 /96 ---------------------------------- 2018-07-17 06:43:33 no todo: silently accept ipv4 addr 1.1.1.1 /24 ipv6 addr 1234::1 /96 ---------------------------------- 2018-07-19 03:48:38 no todo: servers for ipip qc pass: gre server todo: configurable session close behavior on reload todo: sorted filter for any column ---------------------------------- 2018-07-19 21:13:07 no todo: sorted filter for any column no todo: configurable session close behavior on reload ---------------------------------- 2018-07-22 23:32:50 todo: access-map and access-policy that checks for source within servers todo: router trigger todo: sorted, uniq | filter for any column todo: terminal mode colorized todo: protocol traceroute todo: temper: web access log todo: http server: access log to syslog todo: ttl handling follow the selected forwarder, reconfigurable if more ---------------------------------- 2018-07-24 20:58:43 no todo: access-map and access-policy that checks for source within servers ---------------------------------- 2018-07-25 20:37:15 no todo: http server: access log to syslog todo: counter to the tabroute, configurable per process todo: more features with clean implementation ---------------------------------- 2018-07-26 19:05:39 no todo: counter to the tabroute, configurable per process no todo: router trigger ---------------------------------- 2018-07-28 14:55:26 no todo: terminal mode colorized todo: show bgp privateas, labels todo: terminal mode colorize, resolve todo: optimal route reflection ---------------------------------- 2018-07-30 18:39:49 no todo: show bgp privateas, labels todo: client whois, show whois todo: more configurable defaults to lines: tablemode, timestamps, configure up them on main rtrs todo: route-map/policy to match private-as origination/transit, then show, ignore, etc todo: diff n | filter ---------------------------------- 2018-07-31 19:55:39 todo: hostwatch to execute script on acl match ---------------------------------- 2018-08-07 05:17:39 no todo: client whois, show whois todo: configurable * prompt todo: access-* under http host todo: lsrp passive interface ---------------------------------- 2018-08-24 11:31:13 no todo: lsrp passive interface no todo: configurable * prompt todo: tls1.3 ---------------------------------- 2018-12-28 07:01:18 no todo: terminal mode colorize, resolve todo: terminal mode resolve ---------------------------------- 2019-01-08 01:05:56 todo: mpls inspect ---------------------------------- 2019-01-14 10:53:03 no todo: mpls inspect ---------------------------------- 2019-01-15 10:04:15 no todo: bgp sr-policy afi qc pass: unicast+srte over bgp qc pass: unicast+srte over bgp with soft-reconfig qc pass: unicast+srte over bgp with additional path ---------------------------------- 2019-01-25 11:35:44 qc pass: bgp interas vpn with asbr peering qc pass: bgp interas vpn with rr peering qc pass: bgp interas othervpn with asbr peering qc pass: bgp interas othervpn with rr peering ---------------------------------- 2019-01-28 16:02:01 qc pass: bgp interas csc vpn with asbr peering qc pass: bgp interas csc vpn with rr peering qc pass: bgp dual core vpn qc pass: bgp dual core csc vpn ---------------------------------- 2019-01-29 10:05:08 no todo: autoroute with sr, bier support qc pass: babel autoroute qc pass: eigrp autoroute qc pass: isis autoroute qc pass: lsrp autoroute qc pass: olsr autoroute qc pass: ospf autoroute qc pass: pvrp autoroute qc pass: rip autoroute ---------------------------------- 2019-02-03 11:26:38 todo: http server should honor no in the beginning for host commands todo: lsrp, ospf, isis must list lsas/lsps as reachable or not todo: padup ethertype config option todo: http host upload optional different authentication todo: display traceroute with the same parameters todo: configurable replay window under ipsec profile for macsec todo: macsec bad type in hex todo: lossdet with class util.dampening todo: reapplying the same vrf to interface as noop todo: hwdet default to binary in installation, rework rtr.bin support to binjar if needed todo: hwdet detect mac addresses todo: interactive switch for traceroute to mimic mtr with class util.dampening, similar to mtr todo: client domain-name to resolve internally first todo: client name-server multiple nodes todo: irc server should ping periodically the clients todo: call-home through irc with configurable proxyprofile, read-write access todo: http2.0 todo: vdc name tabbing ---------------------------------- 2019-02-07 15:14:06 no todo: interactive switch for traceroute to mimic mtr with class util.dampening, similar to mtr no todo: display traceroute with the same parameters todo: mac rewrite on bridge interfaces todo: bgp safe-ebgp-policy to default to neighbor shutdown todo: command authorization with local todo: reapplying the same address to interface as noop todo: entering ipvX address should remove dhcpX, slaac, gateway-*, and every related... todo: access-class should permit again with objectgroups todo: test cases for router deaggr and router mobile todo: http conditional redirect with route-map, prefix-list or route-policy todo: bridge security from dhcp, slaac, whatever server todo: p4lang todo: interactive switch for traceroute to mimic mtr with class util.dampening, similar to mtr - display traceroute with the same parameters or so todo: traceroute to query bgp forasn todo: traceroute to display mpls labels todo: command authorization with radius and tacacs ---------------------------------- 2019-02-08 16:19:17 no todo: macsec bad type in hex no todo: bgp safe-ebgp-policy to default to neighbor shutdown qc pass: loss detection ---------------------------------- 2019-02-09 21:17:27 todo: looking glass rfc8522 ---------------------------------- 2019-02-10 12:24:29 no todo: mac rewrite on bridge interfaces no todo: test cases for router deaggr and router mobile todo: test cases for router deaggr and router mobile, bridge-macrewrite ---------------------------------- 2019-02-11 09:20:02 no todo: test cases for router deaggr and router mobile, bridge-macrewrite qc pass: bridged mac rewrite qc pass: redistribution with mobile qc pass: redistribution with deaggr ---------------------------------- 2019-06-29 23:15:41 no todo: access-* under http host no todo: hwdet detect mac addresses no todo: p4lang ---------------------------------- 2019-07-12 00:56:07 qc pass: bgp hub and spoke vpn multiple rt import qc pass: bgp hub and spoke vpn multiple rt export qc pass: bgp vpn with export list qc pass: bgp vpn with import list qc pass: bgp vpn with export map qc pass: bgp vpn with import map qc pass: bgp vpn with export policy qc pass: bgp vpn with import policy ---------------------------------- 2019-08-01 03:36:17 no todo: call-home through irc with configurable proxyprofile, read-write access no todo: irc server should ping periodically the clients no todo: traceroute to query bgp forasn no todo: lossdet with class util.dampening no todo: access-class should permit again with objectgroups todo: traceroute to query bgp for asn ---------------------------------- 2019-08-17 02:12:57 no todo: more configurable defaults to lines: tablemode, timestamps, configure up them on main rtrs no todo: client name-server multiple nodes no todo: traceroute to display mpls labels no todo: traceroute to query bgp for asn no todo: configurable replay window under ipsec profile for macsec ---------------------------------- 2019-08-17 16:59:49 no todo: command authorization with local ---------------------------------- 2019-08-19 07:47:27 no todo: command authorization with radius and tacacs ---------------------------------- 2019-09-04 16:28:52 no todo: diff n | filter no todo: sorted, uniq | filter for any column ---------------------------------- 2019-09-28 05:38:37 qc pass: interop1: evpn/cmac over bgp qc pass: vpns over srv6 qc pass: evpn/pbb over srv6 qc pass: evpn/cmac over srv6 ---------------------------------- 2019-09-29 02:49:20 qc pass: interop1: bgp 6pe qc pass: interop2: bgp vpnv4 over srv6 qc pass: interop2: bgp vpnv6 over srv6 qc pass: interop2: bgp 6pe qc pass: vpns over srv6 over ipv4 bgp qc pass: evpn/pbb over srv6 over ipv4 bgp qc pass: evpn/cmac over srv6 over ipv4 bgp ---------------------------------- 2019-09-30 03:23:02 no qc pass: unicast+other over bgp qc pass: unicast+other over ebgp qc pass: unicast+other over ibgp qc pass: unicast+other over ibgp rr qc pass: unicast+other over confed bgp qc pass: unicast+other over bgp route server ---------------------------------- 2019-10-01 01:54:22 qc pass: other over srv6 ---------------------------------- 2019-10-01 16:03:44 qc pass: nat64 translation qc pass: dns64 server ---------------------------------- 2019-10-03 02:01:52 no todo: reapplying the same vrf to interface as noop no todo: reapplying the same address to interface as noop no qc pass: other over srv6 no qc pass: evpn/cmac over srv6 over ipv4 bgp no qc pass: evpn/pbb over srv6 over ipv4 bgp no qc pass: vpns over srv6 over ipv4 bgp no qc pass: evpn/cmac over srv6 no qc pass: evpn/pbb over srv6 no qc pass: vpns over srv6 qc pass: vpns over srv6 over ibgp qc pass: evpn/pbb over srv6 over ibgp qc pass: evpn/cmac over srv6 over ibgp qc pass: other over srv6 over ibgp qc pass: vpns over srv6 over ebgp qc pass: evpn/pbb over srv6 over ebgp qc pass: evpn/cmac over srv6 over ebgp qc pass: other over srv6 over ebgp qc pass: vpns over srv6 over ibgp rr qc pass: evpn/pbb over srv6 over ibgp rr qc pass: evpn/cmac over srv6 over ibgp rr qc pass: other over srv6 over ibgp rr qc pass: vpns over srv6 over confed bgp qc pass: evpn/pbb over srv6 over confed bgp qc pass: evpn/cmac over srv6 over confed bgp qc pass: other over srv6 over confed bgp qc pass: vpns over srv6 over bgp route server qc pass: evpn/pbb over srv6 over bgp route server qc pass: evpn/cmac over srv6 over bgp route server qc pass: other over srv6 over bgp route server qc pass: vpns over srv6 over bgp with soft-reconfig qc pass: evpn/pbb over srv6 over bgp with soft-reconfig qc pass: evpn/cmac over srv6 over bgp with soft-reconfig qc pass: other over srv6 over bgp with soft-reconfig qc pass: vpns over srv6 over bgp additional path qc pass: evpn/pbb over srv6 over bgp additional path qc pass: evpn/cmac over srv6 over bgp additional path qc pass: other over srv6 over bgp additional path ---------------------------------- 2019-10-19 19:08:16 qc pass: interop2: evpn/vpws over bgp qc pass: evpn/vpws over ebgp qc pass: evpn/vpws over ibgp qc pass: evpn/vpws over bgp additional path qc pass: evpn/vpws over ibgp rr qc pass: evpn/vpws over confed bgp qc pass: evpn/vpws over bgp route server qc pass: ethersite evpn/vpws over ibgp qc pass: evpn/vpws over bgp with soft-reconfig qc pass: unicast+evpn/vpws over bgp qc pass: unicast+evpn/vpws over bgp with soft-reconfig qc pass: unicast+evpn/vpws over bgp additional path qc pass: evpn/vpws over bgp auto mesh tunnel qc pass: evpn/vpws over srv6 over ibgp qc pass: evpn/vpws over srv6 over ebgp qc pass: evpn/vpws over srv6 over ibgp rr qc pass: evpn/vpws over srv6 over confed bgp qc pass: evpn/vpws over srv6 over bgp route server qc pass: evpn/vpws over srv6 over bgp with soft-reconfig qc pass: evpn/vpws over srv6 over bgp additional path ---------------------------------- 2020-01-01 15:31:55 qc pass: ethernet over gretap pwhe ---------------------------------- 2020-01-11 16:16:31 qc pass: p4lang: routing qc pass: p4lang: bridging qc pass: p4lang: mpls qc pass: p4lang: vlan routing qc pass: p4lang: vlan bridging qc pass: p4lang: vpn with bgp qc pass: p4lang: vpls/ldp with bgp qc pass: p4lang: evpn/cmac with bgp qc pass: p4lang: eompls qc pass: p4lang: vpn with bgp over srv6 qc pass: p4lang: evpn/cmac with bgp over srv6 ---------------------------------- 2020-01-12 07:23:43 qc pass: p4lang: vlan mpls ---------------------------------- 2020-01-13 13:37:48 qc pass: interop1: bgp aigp qc pass: interop1: isis lsp authentication qc pass: interop2: bgp aigp qc pass: interop2: isis lsp authentication qc pass: interop8: ebgp qc pass: interop8: ibgp qc pass: interop8: bgp locpref qc pass: interop8: bgp origin qc pass: interop8: bgp metric qc pass: interop8: bgp community qc pass: interop8: bgp aspath qc pass: interop8: bgp with labels qc pass: interop8: bgp addpath qc pass: interop8: bgp prefix withdraw qc pass: interop8: bgp authentication qc pass: interop8: bgp extended community qc pass: interop8: bgp large community qc pass: interop8: point2point isis qc pass: interop8: isis dis qc pass: interop8: isis nondis qc pass: interop8: isis narrow metric qc pass: interop8: isis prefix withdraw qc pass: interop8: isis authentication qc pass: interop8: ldp lsp qc pass: interop8: point2point ospf qc pass: interop8: ospf dr qc pass: interop8: ospf nondr qc pass: interop8: ospf transit area qc pass: interop8: ospf stub area qc pass: interop8: ospf nssa area qc pass: interop8: ospf prefix withdraw qc pass: interop8: ospf authentication qc pass: interop9: isis lsp authentication qc pass: isis lsp authentication ---------------------------------- 2020-01-18 17:41:05 qc pass: satp over ipv4 qc pass: satp over ipv6 qc pass: satp over satp qc pass: satp over loopback qc pass: satp with des qc pass: satp with blowfish qc pass: satp with 3des qc pass: satp with aes128 qc pass: satp with aes192 qc pass: satp with aes256 qc pass: satp with md5 qc pass: satp with sha1 qc pass: satp with sha256 qc pass: satp with sha512 ---------------------------------- 2020-02-11 10:32:45 qc pass: isis change in tag qc pass: isis multi-topology change in tag ---------------------------------- 2020-03-13 01:12:08 qc pass: wireguard over ipv4 qc pass: wireguard over ipv6 qc pass: wireguard over wireguard qc pass: wireguard over loopback ---------------------------------- 2020-03-18 10:18:13 qc pass: p4lang: bundle routing qc pass: p4lang: bundle mpls ---------------------------------- 2020-04-03 16:34:56 no todo: clean up javadoc errors ---------------------------------- 2020-05-06 05:26:53 no todo: client domain-name to resolve internally first no todo: padup ethertype config option no todo: entering ipvX address should remove dhcpX, slaac, gateway-*, and every related... ---------------------------------- 2020-05-14 08:57:45 qc pass: sreth over ipv4 qc pass: sreth over ipv6 qc pass: sreth over loopback qc pass: hdlc tunneling with sreth qc pass: ppp tunneling with sreth qc pass: lapb tunneling with sreth qc pass: framerelay tunneling with sreth qc pass: atmdxi tunneling with sreth qc pass: isdn tunneling with sreth qc pass: sep tunneling with sreth qc pass: ethernet tunneling with sreth qc pass: vlan tunneling with sreth qc pass: tunnel interface with sreth qc pass: ethernet over sreth pwhe qc pass: cross connect with sreth qc pass: cross connect interworking with sreth ---------------------------------- 2020-06-02 05:01:33 qc pass: lsrp stub qc pass: lsrp unstub ---------------------------------- 2020-06-04 04:42:12 qc pass: unified mpls with ldp qc pass: unified mpls with sr ---------------------------------- 2020-06-10 17:04:05 no qc pass: p4lang: mpls qc pass: p4lang: copp qc pass: p4lang: ingress access list qc pass: p4lang: egress access list qc pass: p4lang: mpls core qc pass: p4lang: mpls edge ---------------------------------- 2020-06-12 09:59:25 qc pass: source port randomization qc pass: p4lang: nat ---------------------------------- 2020-06-13 15:51:00 no qc pass: telnet inspection qc pass: route inspection qc pass: flow inspection qc pass: interface inspection qc pass: bridge inspection qc pass: mpls inspection ---------------------------------- 2020-06-14 05:24:12 no qc pass: lsrp unstub no qc pass: lsrp stub qc pass: lsrp stub node qc pass: lsrp stub interface qc pass: lsrp unstub interface qc pass: lsrp default address suppression qc pass: lsrp address unsuppression qc pass: pvrp default address suppression qc pass: pvrp address unsuppression ---------------------------------- 2020-06-14 17:24:25 qc pass: udp forwarder server ---------------------------------- 2020-06-20 17:54:33 qc pass: ethernet qinq1 encapsulation qc pass: ethernet qinq2 encapsulation qc pass: ethernet qinq3 encapsulation ---------------------------------- 2020-06-24 11:47:00 qc pass: p4lang: bundle ingress access list qc pass: p4lang: bundle egress access list qc pass: p4lang: bundle vlan ingress access list qc pass: p4lang: bundle vlan egress access list qc pass: p4lang: bundle vlan routing qc pass: p4lang: bundle vlan mpls qc pass: p4lang: bundle vlan bridging ---------------------------------- 2020-07-03 07:38:23 qc pass: interop8: eigrp qc pass: interop8: rip ---------------------------------- 2020-07-06 13:48:46 qc pass: lisp over asymmetric ports qc pass: mplsudp over asymmetric ports qc pass: packet over udp over asymmetric ports qc pass: openvpn over asymmetric ports qc pass: satp over asymmetric ports qc pass: wireguard over asymmetric ports ---------------------------------- 2020-07-09 16:56:37 qc pass: ldp php qc pass: ebgp with php labels qc pass: ibgp with php labels qc pass: bgp additional path with php labels qc pass: ibgp rr with labels qc pass: confed bgp with labels qc pass: bgp route server with labels qc pass: bgp soft-reconfig with labels qc pass: isis with php sr qc pass: lsrp with php sr qc pass: ospf with php sr qc pass: pvrp with php labels ---------------------------------- 2020-07-10 07:54:04 qc pass: interop1: bgp with php labels qc pass: interop1: isis php sr qc pass: interop1: ldp php lsp qc pass: interop1: ospf php sr qc pass: interop2: bgp with php labels qc pass: interop2: isis php sr qc pass: interop2: ldp php lsp qc pass: interop2: ospf php sr qc pass: interop8: bgp with php labels qc pass: interop8: ldp php lsp qc pass: interop9: bgp with php labels qc pass: interop9: isis php sr qc pass: interop9: ldp php lsp qc pass: interop9: ospf php sr qc pass: ingress label filtering with pvrp qc pass: egress label filtering with pvrp ---------------------------------- 2020-07-13 15:11:45 qc pass: bgp remove private as in with routemap qc pass: bgp remove private as out with routemap qc pass: bgp remove private as in with routepolicy qc pass: bgp remove private as out with routepolicy qc pass: conditional redistribution with routemap qc pass: conditional redistribution with routepolicy ---------------------------------- 2020-07-14 04:08:58 qc pass: ethernet qinqX encapsulation qc pass: ethernet qinqX custom encapsulation qc pass: bgp with php labels over sr qc pass: pvrp stub node qc pass: pvrp stub interface qc pass: pvrp unstub interface ---------------------------------- 2020-07-19 04:12:38 no todo: route-map/policy to match private-as origination/transit, then show, ignore, etc ---------------------------------- 2020-07-22 14:26:16 todo: tunnels with pcep ---------------------------------- 2020-07-24 07:04:23 no todo: tunnels with pcep qc pass: interop1: isis te with pcep qc pass: interop1: ospf te with pcep qc pass: interop2: isis te with pcep qc pass: interop2: ospf te with pcep qc pass: sr te with pcep qc pass: te with pcep qc pass: bgp with srgb sr qc pass: isis with srgb sr qc pass: lsrp with srgb sr qc pass: ospf with srgb sr ---------------------------------- 2020-07-25 13:36:49 qc pass: p4lang: bridge ingress access list qc pass: p4lang: bridge egress access list qc pass: p4lang: vlan bridge ingress access list qc pass: p4lang: vlan bridge egress access list qc pass: p4lang: bridge routing qc pass: p4lang: bridge mpls qc pass: p4lang: vlan bridge routing qc pass: p4lang: vlan bridge mpls ---------------------------------- 2020-07-27 18:29:22 qc pass: source interface translation to address qc pass: target interface translation to address ---------------------------------- 2020-07-28 18:46:26 qc pass: p4lang: vlan vpls/ldp with bgp qc pass: p4lang: vlan eompls qc pass: p4lang: bundle vlan vpls/ldp with bgp qc pass: p4lang: bundle vlan eompls ---------------------------------- 2020-07-31 14:57:45 no qc pass: bgp interas csc vpn with asbr peering no work: bgp interas csc vpn with asbr peering ---------------------------------- 2020-07-31 16:57:35 qc pass: bgp interas csc vpn with asbr peering ---------------------------------- 2020-08-01 10:04:20 qc pass: interop1: point2point ethernet encapsulation qc pass: interop1: ldp over point2point ethernet qc pass: interop2: point2point ethernet encapsulation qc pass: interop2: ldp over point2point ethernet qc pass: ldp over point2point ethernet qc pass: te over point2point ethernet qc pass: babel over point2point ethernet qc pass: bgp over point2point ethernet qc pass: eigrp over point2point ethernet qc pass: isis over point2point ethernet qc pass: lsrp over point2point ethernet qc pass: olsr over point2point ethernet qc pass: ospf over point2point ethernet qc pass: pvrp over point2point ethernet qc pass: rip over point2point ethernet qc pass: static routing over point2point ethernet ---------------------------------- 2020-08-06 08:32:41 qc pass: ospf multi area qc pass: ospf asymmetric multi area ---------------------------------- 2020-08-09 13:04:24 qc pass: p4lang: ingress pppoe access list qc pass: p4lang: egress pppoe access list qc pass: p4lang: ingress vlan pppoe access list qc pass: p4lang: egress vlan pppoe access list qc pass: p4lang: pppoe routing qc pass: p4lang: vlan pppoe routing ---------------------------------- 2020-08-09 16:30:18 qc pass: p4lang: pppoe mpls qc pass: p4lang: vlan pppoe mpls ---------------------------------- 2020-08-10 10:40:16 qc pass: interop2: pppoe with pap qc pass: interop2: pppoe with chap ---------------------------------- 2020-08-13 15:39:57 qc pass: p4lang: hairpin ingress access list qc pass: p4lang: hairpin egress access list qc pass: p4lang: hairpin vlan ingress access list qc pass: p4lang: hairpin vlan egress access list qc pass: p4lang: hairpin pppoe ingress access list qc pass: p4lang: hairpin pppoe egress access list qc pass: p4lang: hairpin vlan pppoe ingress access list qc pass: p4lang: hairpin vlan pppoe egress access list qc pass: p4lang: hairpin routing qc pass: p4lang: hairpin bridging qc pass: p4lang: hairpin mpls qc pass: p4lang: hairpin vlan routing qc pass: p4lang: hairpin vlan bridging qc pass: p4lang: hairpin vlan mpls qc pass: p4lang: hairpin pppoe routing qc pass: p4lang: hairpin vlan pppoe routing qc pass: p4lang: hairpin pppoe mpls qc pass: p4lang: hairpin vlan pppoe mpls ---------------------------------- 2020-08-13 18:26:52 qc pass: p4lang: hairpin vpls/ldp with bgp qc pass: p4lang: hairpin vlan vpls/ldp with bgp qc pass: p4lang: hairpin eompls qc pass: p4lang: hairpin vlan eompls ---------------------------------- 2020-08-14 01:14:34 qc pass: p4lang: vlan evpn/cmac with bgp qc pass: p4lang: bundle vlan evpn/cmac with bgp qc pass: p4lang: hairpin evpn/cmac with bgp qc pass: p4lang: hairpin vlan evpn/cmac with bgp ---------------------------------- 2020-08-15 17:13:27 qc pass: ingress protocol matching common access list qc pass: egress protocol matching common access list qc pass: ingress destination matching common access list qc pass: egress destination matching common access list qc pass: ingress source matching common access list qc pass: egress source matching common access list ---------------------------------- 2020-08-16 03:43:39 qc pass: ingress ttl matching common access list qc pass: egress ttl matching common access list qc pass: ingress tos matching common access list qc pass: egress tos matching common access list qc pass: ingress length matching common access list qc pass: egress length matching common access list qc pass: ingress source port matching access list qc pass: egress source port matching access list qc pass: ingress destination port matching access list qc pass: egress destination port matching access list qc pass: ingress source port matching hibryd access list qc pass: egress source port matching hibryd access list qc pass: ingress destination port matching hibryd access list qc pass: egress destination port matching hibryd access list qc pass: ingress source port matching common access list qc pass: egress source port matching common access list qc pass: ingress destination port matching common access list qc pass: egress destination port matching common access list ---------------------------------- 2020-08-16 08:00:16 qc pass: qos ingress transmit copp qc pass: qos egress transmit copp qc pass: qos ingress drop copp qc pass: qos egress drop copp qc pass: qos ingress policer copp qc pass: qos egress policer copp qc pass: qos transmit dapp qc pass: qos drop dapp qc pass: qos policer dapp qc pass: qos priority dapp ---------------------------------- 2020-08-16 16:26:30 qc pass: qos transmit flowspec qc pass: qos drop flowspec qc pass: qos policer flowspec qc pass: qos priority flowspec ---------------------------------- 2020-08-17 04:26:30 qc pass: lsrp with selective sr qc pass: lsrp with selective bier ---------------------------------- 2020-08-19 03:45:01 qc pass: lsrp peer metric qc pass: pvrp peer metric ---------------------------------- 2020-08-19 07:09:57 qc pass: redistribution with interfaces qc pass: redistribution with metric ---------------------------------- 2020-08-20 09:55:55 qc pass: ppp over ssh qc pass: ppp over tcp ---------------------------------- 2020-08-21 13:19:26 no todo: recursive static route qc pass: recursive static routing qc pass: recursive static routing with labels ---------------------------------- 2020-08-23 11:28:44 qc pass: isis with bidir check qc pass: isis narrow metric with bidir check qc pass: isis chain of broadcast nets with bidir check qc pass: isis multi-topology with bidir check qc pass: lsrp point2point connection with bidir check qc pass: lsrp point2multipoint connection with bidir check qc pass: ospf point2point chain with bidir check qc pass: ospf broadcast chain with bidir check ---------------------------------- 2020-08-25 04:34:11 qc pass: p4lang: vlan ingress access list qc pass: p4lang: vlan egress access list qc pass: p4lang: ingress gre access list qc pass: p4lang: egress gre access list qc pass: p4lang: ingress vlan gre access list qc pass: p4lang: egress vlan gre access list qc pass: p4lang: gre routing over ipv4 qc pass: p4lang: gre routing over ipv6 qc pass: p4lang: gre routing over ipv4 loopback qc pass: p4lang: gre routing over ipv6 loopback qc pass: p4lang: gre routing over vlan qc pass: p4lang: gre routing over bundle qc pass: p4lang: gre routing over bundle vlan qc pass: p4lang: gre routing over hairpin qc pass: p4lang: gre routing over hairpin vlan qc pass: p4lang: gre routing over bridge qc pass: p4lang: gre routing over vlan bridge qc pass: p4lang: gre mpls over ipv4 qc pass: p4lang: gre mpls over ipv6 qc pass: p4lang: gre mpls over ipv4 loopback qc pass: p4lang: gre mpls over ipv6 loopback qc pass: p4lang: gre mpls over vlan qc pass: p4lang: gre mpls over bundle qc pass: p4lang: gre mpls over bundle vlan qc pass: p4lang: gre mpls over hairpin qc pass: p4lang: gre mpls over hairpin vlan qc pass: p4lang: gre mpls over bridge qc pass: p4lang: gre mpls over vlan bridge ---------------------------------- 2020-08-27 16:53:21 qc pass: p4lang: ingress l2tp access list qc pass: p4lang: egress l2tp access list qc pass: p4lang: ingress vlan l2tp access list qc pass: p4lang: egress vlan l2tp access list qc pass: p4lang: l2tp routing over ipv4 qc pass: p4lang: l2tp routing over ipv6 qc pass: p4lang: l2tp routing over ipv4 loopback qc pass: p4lang: l2tp routing over ipv6 loopback qc pass: p4lang: l2tp routing over vlan qc pass: p4lang: l2tp routing over bundle qc pass: p4lang: l2tp mpls over ipv4 qc pass: p4lang: l2tp mpls over ipv6 qc pass: p4lang: l2tp mpls over ipv4 loopback qc pass: p4lang: l2tp mpls over ipv6 loopback qc pass: p4lang: l2tp mpls over vlan qc pass: p4lang: l2tp mpls over bundle ---------------------------------- 2020-08-28 18:43:50 qc pass: p4lang: bridging over gre qc pass: p4lang: bridging over gre vlan qc pass: p4lang: bridging over pppoe qc pass: p4lang: bridging over pppoe vlan qc pass: p4lang: bridging over l2tp qc pass: p4lang: bridging over l2tp vlan ---------------------------------- 2020-09-02 02:45:03 qc pass: p4lang: vxlan over ipv4 qc pass: p4lang: vxlan over ipv6 qc pass: p4lang: vxlan over ipv4 loopback qc pass: p4lang: vxlan over ipv6 loopback qc pass: p4lang: evpn/vxlan with bgp qc pass: p4lang: vlan evpn/vxlan with bgp qc pass: p4lang: bundle vlan evpn/vxlan with bgp qc pass: p4lang: hairpin evpn/vxlan with bgp ---------------------------------- 2020-09-03 09:30:27 qc pass: p4lang: ingress ipip access list qc pass: p4lang: egress ipip access list qc pass: p4lang: ingress vlan ipip access list qc pass: p4lang: egress vlan ipip access list qc pass: p4lang: vxlan over vlan qc pass: p4lang: vxlan over bundle qc pass: p4lang: ipip routing over ipv4 qc pass: p4lang: ipip routing over ipv6 qc pass: p4lang: ipip routing over ipv4 loopback qc pass: p4lang: ipip routing over ipv6 loopback qc pass: p4lang: ipip routing over vlan qc pass: p4lang: ipip routing over bundle ---------------------------------- 2020-09-05 03:36:08 qc pass: macsec over ethernet bundle qc pass: macsec over ethernet hairpin qc pass: p4lang: macsec with des qc pass: p4lang: macsec with 3des qc pass: p4lang: macsec with aes128 qc pass: p4lang: macsec with aes192 qc pass: p4lang: macsec with aes256 qc pass: p4lang: macsec with md5 qc pass: p4lang: macsec with sha1 qc pass: p4lang: macsec with sha256 qc pass: p4lang: macsec with sha512 qc pass: p4lang: macsec over ethernet qc pass: p4lang: macsec over vlan qc pass: p4lang: macsec over bundle vlan qc pass: p4lang: macsec over gre qc pass: p4lang: macsec over pppoe qc pass: p4lang: macsec over l2tp qc pass: p4lang: macsec over hairpin qc pass: p4lang: macsec ingress access list qc pass: p4lang: macsec egress access list qc pass: p4lang: macsec vlan ingress access list qc pass: p4lang: macsec vlan egress access list ---------------------------------- 2020-09-05 14:55:42 qc pass: p4lang: ipsec with des qc pass: p4lang: ipsec with 3des qc pass: p4lang: ipsec with aes128 qc pass: p4lang: ipsec with aes192 qc pass: p4lang: ipsec with aes256 qc pass: p4lang: ipsec with md5 qc pass: p4lang: ipsec with sha1 qc pass: p4lang: ipsec with sha256 qc pass: p4lang: ipsec with sha512 qc pass: p4lang: ipv4 over ipsec qc pass: p4lang: ipv6 over ipsec qc pass: p4lang: ipsec over ipv4 qc pass: p4lang: ipsec over ipv6 qc pass: p4lang: ipsec over ipv4 loopback qc pass: p4lang: ipsec over ipv6 loopback qc pass: p4lang: ipsec over vlan qc pass: p4lang: ipv4 over ipsec with ingress access list qc pass: p4lang: ipv4 over ipsec with egress access list qc pass: p4lang: ipv6 over ipsec with ingress access list qc pass: p4lang: ipv6 over ipsec with egress access list qc pass: p4lang: ipsec with ike1 qc pass: p4lang: ipsec with ike2 ---------------------------------- 2020-09-06 07:52:44 qc pass: p4lang: pckoudp over ipv4 qc pass: p4lang: pckoudp over ipv6 qc pass: p4lang: pckoudp over ipv4 loopback qc pass: p4lang: pckoudp over ipv6 loopback qc pass: p4lang: pckoudp over vlan qc pass: p4lang: pckoudp over bundle qc pass: p4lang: pckoudp server over ipv4 qc pass: p4lang: pckoudp server over ipv6 qc pass: p4lang: pckoudp server over ipv4 loopback qc pass: p4lang: pckoudp server over ipv6 loopback ---------------------------------- 2020-09-06 14:16:10 qc pass: p4lang: vxlan server over ipv4 qc pass: p4lang: vxlan server over ipv6 qc pass: p4lang: vxlan server over ipv4 loopback qc pass: p4lang: vxlan server over ipv6 loopback ---------------------------------- 2020-09-11 03:54:36 qc pass: p4lang: ingress common access list qc pass: p4lang: egress common access list qc pass: p4lang: ingress hibryd access list qc pass: p4lang: egress hibryd access list ---------------------------------- 2020-09-12 10:53:03 qc pass: p4lang: openvpn with des qc pass: p4lang: openvpn with 3des qc pass: p4lang: openvpn with aes128 qc pass: p4lang: openvpn with aes192 qc pass: p4lang: openvpn with aes256 qc pass: p4lang: openvpn with md5 qc pass: p4lang: openvpn with sha1 qc pass: p4lang: openvpn with sha256 qc pass: p4lang: openvpn with sha512 qc pass: p4lang: openvpn over ipv4 qc pass: p4lang: openvpn over ipv6 qc pass: p4lang: openvpn over ipv4 loopback qc pass: p4lang: openvpn over ipv6 loopback qc pass: p4lang: openvpn over asymmetric ports qc pass: p4lang: openvpn with ingress access list qc pass: p4lang: openvpn with egress access list ---------------------------------- 2020-09-12 14:35:22 qc pass: p4lang: wireguard over ipv4 qc pass: p4lang: wireguard over ipv6 qc pass: p4lang: wireguard over ipv4 loopback qc pass: p4lang: wireguard over ipv6 loopback qc pass: p4lang: wireguard over vlan qc pass: p4lang: wireguard over asymmetric ports qc pass: p4lang: wireguard with ingress access list qc pass: p4lang: wireguard with egress access list ---------------------------------- 2020-09-13 03:31:43 no todo: protocol traceroute ---------------------------------- 2020-09-14 14:18:14 qc pass: ingress protocol matching hierarchical access list qc pass: egress protocol matching hierarchical access list qc pass: ingress destination matching hierarchical access list qc pass: egress destination matching hierarchical access list qc pass: ingress source matching hierarchical access list qc pass: egress source matching hierarchical access list qc pass: ingress ttl matching hierarchical access list qc pass: egress ttl matching hierarchical access list qc pass: ingress tos matching hierarchical access list qc pass: egress tos matching hierarchical access list qc pass: ingress length matching hierarchical access list qc pass: egress length matching hierarchical access list qc pass: ingress source port matching hierarchical access list qc pass: egress source port matching hierarchical access list qc pass: ingress destination port matching hierarchical access list qc pass: egress destination port matching hierarchical access list qc pass: reflexive access list qc pass: p4lang: ingress hierarchical access list qc pass: p4lang: egress hierarchical access list qc pass: redistribution filtering with hierarchical prefixlist ---------------------------------- 2020-09-17 08:14:54 qc pass: p4lang: pppoe server routing qc pass: p4lang: vlan pppoe server routing qc pass: p4lang: pppoe server mpls qc pass: p4lang: vlan pppoe server mpls qc pass: p4lang: l2tp server routing qc pass: p4lang: vlan l2tp server routing qc pass: p4lang: l2tp server mpls qc pass: p4lang: vlan l2tp server mpls ---------------------------------- 2020-09-18 17:42:12 qc pass: ppp routes with local authentication qc pass: ppp routes with radius authentication ---------------------------------- 2020-09-19 14:57:26 qc pass: p4lang: p2p ldp tail+head qc pass: p4lang: p2p ldp mid qc pass: p4lang: p2p te tail+head qc pass: p4lang: p2p te mid qc pass: p4lang: sr te over mpls tail+head qc pass: p4lang: sr te over mpls mid ---------------------------------- 2020-09-23 06:53:15 no todo: bgp compare should write out that which attributes changed ---------------------------------- 2020-09-24 13:25:08 todo: show ipvX rousrc, ecmp... todo: ecmp test cases ---------------------------------- 2020-09-25 03:42:53 no todo: show ipvX rousrc, ecmp... ---------------------------------- 2020-09-25 16:40:33 no todo: ecmp test cases qc pass: babel ecmp connection qc pass: bgp ecmp connection qc pass: eigrp ecmp connection qc pass: isis ecmp connection qc pass: lsrp ecmp connection qc pass: olsr ecmp connection qc pass: ospf ecmp connection qc pass: pvrp ecmp connection qc pass: rip ecmp connection qc pass: static routing with ecmp ---------------------------------- 2020-09-27 05:59:21 todo: nat and pbr config to have reindex todo: chatscript and authlist to use tablisting and have reindex ---------------------------------- 2020-10-05 14:11:06 qc pass: bgp routemap filtering with peer asn qc pass: bgp routepolicy filtering with peer asn qc pass: bgp routemap filtering with peer asn with soft-reconfig qc pass: bgp routepolicy filtering with peer asn with soft-reconfig ---------------------------------- 2020-10-05 17:00:28 qc pass: bgp routemap filtering with peer standard community qc pass: bgp routepolicy filtering with peer standard community qc pass: bgp routemap filtering with peer standard community with soft-reconfig qc pass: bgp routepolicy filtering with peer standard community with soft-reconfig qc pass: bgp routemap filtering with peer large community qc pass: bgp routepolicy filtering with peer large community qc pass: bgp routemap filtering with peer large community with soft-reconfig qc pass: bgp routepolicy filtering with peer large community with soft-reconfig ---------------------------------- 2020-10-06 14:49:06 todo: decouple counters in sho ipv4 proto todo: prometheus per metric exclude todo: route count in sho vrf todo: sho gc ---------------------------------- 2020-10-06 18:15:36 no todo: route count in sho vrf no todo: prometheus per metric exclude no todo: decouple counters in sho ipv4 proto ---------------------------------- 2020-10-06 18:42:28 no todo: sho gc ---------------------------------- 2020-10-10 08:29:16 todo: fully paraeterizable sho dash ---------------------------------- 2020-10-17 18:13:47 no todo: http2.0 ---------------------------------- 2020-10-19 08:50:04 no todo: parse privilege levels from radius and tacacs no todo: looking glass rfc8522 no todo: fully paraeterizable sho dash todo: parse privilege levels from tacacs ---------------------------------- 2020-10-20 02:14:27 qc pass: unicast+linkstate over bgp qc pass: unicast+linkstate over bgp with soft-reconfig qc pass: unicast+linkstate over bgp with additional path qc pass: isis with bgp linkstate qc pass: lsrp with bgp linkstate qc pass: ospf with bgp linkstate ---------------------------------- 2020-11-09 13:32:15 no todo: yang over netconf, proto over grpc ---------------------------------- 2020-11-12 20:34:44 qc pass: integrated isis over ethernet qc pass: integrated isis over hdlc qc pass: integrated isis over gre qc pass: integrated isis narrow metric qc pass: integrated isis attached qc pass: integrated isis chain of broadcast nets qc pass: integrated isis broadcast subnet qc pass: integrated isis address suppression qc pass: integrated isis inter-level routes qc pass: integrated isis inter level ingress filtering with prefixlist qc pass: integrated isis inter level egress filtering with prefixlist qc pass: integrated isis inter level ingress filtering with routemap qc pass: integrated isis inter level egress filtering with routemap qc pass: integrated isis inter level ingress filtering with routepolicy qc pass: integrated isis inter level egress filtering with routepolicy qc pass: integrated isis default route qc pass: integrated isis multi-topology qc pass: integrated isis with sr qc pass: integrated isis inter-level with sr qc pass: integrated isis multi-topology with sr qc pass: integrated isis prefix withdraw qc pass: integrated isis change in metric ---------------------------------- 2020-11-12 21:20:31 qc pass: integrated isis aggregate qc pass: integrated isis prefix movement qc pass: integrated isis with bier qc pass: integrated isis inter-level with bier qc pass: integrated isis multi-topology with bier qc pass: integrated isis change in tag qc pass: integrated isis over point2point ethernet qc pass: integrated isis ecmp connection ---------------------------------- 2020-11-13 03:37:49 qc pass: interop1: integrated isis qc pass: interop2: integrated isis qc pass: interop8: integrated isis qc pass: interop9: integrated isis qc pass: integrated isis with php sr qc pass: asymmetric integrated isis ---------------------------------- 2020-11-13 12:16:42 no todo: bfd need to send with ttl=255 ---------------------------------- 2020-11-14 13:55:57 qc pass: interop2: isis bidir te qc pass: interop2: ospf bidir te qc pass: bidir te without global id qc pass: bidir te with global id ---------------------------------- 2020-11-23 08:45:00 no qc pass: other over srv6 over bgp additional path no qc pass: other over srv6 over bgp with soft-reconfig no qc pass: other over srv6 over bgp route server no qc pass: other over srv6 over confed bgp no qc pass: other over srv6 over ibgp rr no qc pass: other over srv6 over ebgp no qc pass: other over srv6 over ibgp no qc pass: unicast+other over bgp route server no qc pass: unicast+other over confed bgp no qc pass: unicast+other over ibgp rr no qc pass: unicast+other over ibgp no qc pass: unicast+other over bgp with additional path no qc pass: unicast+other over bgp with soft-reconfig no qc pass: unicast+other over ebgp qc pass: unicast+olab over ebgp qc pass: unicast+olab over bgp with soft-reconfig qc pass: unicast+olab over bgp with additional path qc pass: unicast+olab over ibgp qc pass: unicast+olab over ibgp rr qc pass: unicast+olab over confed bgp qc pass: unicast+olab over bgp route server qc pass: olab over srv6 over ibgp qc pass: olab over srv6 over ebgp qc pass: olab over srv6 over ibgp rr qc pass: olab over srv6 over confed bgp qc pass: olab over srv6 over bgp route server qc pass: olab over srv6 over bgp with soft-reconfig qc pass: olab over srv6 over bgp additional path ---------------------------------- 2020-11-24 04:45:07 qc pass: unicast+ouni over ebgp qc pass: unicast+ouni over bgp with soft-reconfig qc pass: unicast+ouni over bgp with additional path qc pass: unicast+ouni over ibgp qc pass: unicast+ouni over ibgp rr qc pass: unicast+ouni over confed bgp qc pass: unicast+ouni over bgp route server ---------------------------------- 2020-11-24 11:18:36 qc pass: unicast+omul over bgp qc pass: unicast+omul over bgp with soft-reconfig qc pass: unicast+omul over bgp with additional path qc pass: unicast+oflw over bgp qc pass: unicast+oflw over bgp with soft-reconfig qc pass: unicast+oflw over bgp with additional path qc pass: unicast+osrt over bgp qc pass: unicast+osrt over bgp with soft-reconfig qc pass: unicast+osrt over bgp with additional path ---------------------------------- 2020-11-24 14:47:55 qc pass: qos transmit otherflowspec qc pass: qos drop otherflowspec qc pass: qos policer otherflowspec qc pass: qos priority otherflowspec ---------------------------------- 2020-11-26 18:37:43 qc pass: ouni bgp ingress route filtering with prefixlist qc pass: ouni bgp egress route filtering with prefixlist qc pass: ouni bgp ingress route filtering with routemap qc pass: ouni bgp egress route filtering with routemap qc pass: ouni bgp ingress route filtering with prefixlist with soft-reconfig qc pass: ouni bgp egress route filtering with prefixlist with soft-reconfig qc pass: ouni bgp ingress route filtering with routemap with soft-reconfig qc pass: ouni bgp egress route filtering with routemap with soft-reconfig qc pass: ouni bgp ingress route filtering with routepolicy qc pass: ouni bgp egress route filtering with routepolicy qc pass: ouni bgp ingress route filtering with routepolicy with soft-reconfig qc pass: ouni bgp egress route filtering with routepolicy with soft-reconfig ---------------------------------- 2020-11-26 18:48:06 qc pass: ouni bgp default route ---------------------------------- 2020-11-26 19:21:48 qc pass: vpns with default route ---------------------------------- 2020-11-26 20:13:11 qc pass: olab bgp default route qc pass: othervpns with default route ---------------------------------- 2020-11-26 22:02:52 qc pass: vpns ingress route filtering with routemap qc pass: vpns egress route filtering with routemap qc pass: vpns ingress route filtering with routemap with soft-reconfig qc pass: vpns egress route filtering with routemap with soft-reconfig qc pass: vpns ingress route filtering with routepolicy qc pass: vpns egress route filtering with routepolicy qc pass: vpns ingress route filtering with routepolicy with soft-reconfig qc pass: vpns egress route filtering with routepolicy with soft-reconfig qc pass: othervpns ingress route filtering with routemap qc pass: othervpns egress route filtering with routemap qc pass: othervpns ingress route filtering with routemap with soft-reconfig qc pass: othervpns egress route filtering with routemap with soft-reconfig qc pass: othervpns ingress route filtering with routepolicy qc pass: othervpns egress route filtering with routepolicy qc pass: othervpns ingress route filtering with routepolicy with soft-reconfig qc pass: othervpns egress route filtering with routepolicy with soft-reconfig ---------------------------------- 2020-11-27 08:10:39 qc pass: labels bgp ingress route filtering with prefixlist qc pass: labels bgp egress route filtering with prefixlist qc pass: labels bgp ingress route filtering with routemap qc pass: labels bgp ingress route filtering with routemap qc pass: labels bgp egress route filtering with routemap qc pass: labels bgp ingress route filtering with prefixlist with soft-reconfig qc pass: labels bgp egress route filtering with prefixlist with soft-reconfig qc pass: labels bgp ingress route filtering with routemap with soft-reconfig qc pass: labels bgp egress route filtering with routemap with soft-reconfig qc pass: labels bgp ingress route filtering with routepolicy qc pass: labels bgp egress route filtering with routepolicy qc pass: labels bgp ingress route filtering with routepolicy with soft-reconfig qc pass: labels bgp egress route filtering with routepolicy with soft-reconfig qc pass: labels bgp default route qc pass: olab bgp ingress route filtering with prefixlist qc pass: olab bgp egress route filtering with prefixlist qc pass: olab bgp ingress route filtering with routemap qc pass: olab bgp ingress route filtering with routemap qc pass: olab bgp egress route filtering with routemap qc pass: olab bgp ingress route filtering with prefixlist with soft-reconfig qc pass: olab bgp egress route filtering with prefixlist with soft-reconfig qc pass: olab bgp ingress route filtering with routemap with soft-reconfig qc pass: olab bgp egress route filtering with routemap with soft-reconfig qc pass: olab bgp ingress route filtering with routepolicy qc pass: olab bgp egress route filtering with routepolicy qc pass: olab bgp ingress route filtering with routepolicy with soft-reconfig qc pass: olab bgp egress route filtering with routepolicy with soft-reconfig qc pass: labels bgp aggregation qc pass: olab bgp aggregation qc pass: ouni bgp aggregation qc pass: redistribution with ouni bgp qc pass: redistribution with bgp labels qc pass: redistribution with olab bgp ---------------------------------- 2020-11-27 08:26:00 qc pass: bgp vpns aggregation qc pass: bgp othervpns aggregation ---------------------------------- 2020-11-28 14:57:25 no todo: multilink ppp, fr qc pass: ppp with short multilink fragmentation qc pass: ppp with long multilink fragmentation qc pass: ppp with asymmetric multilink fragmentation qc pass: ppp with asymmetric multilink qc pass: interop1: pppoe with long multilink fragmentation ---------------------------------- 2020-11-29 10:30:51 qc pass: interop9: pppoe client qc pass: interop9: pppoe server qc pass: interop9: mpls over pppoe ---------------------------------- 2020-11-30 09:00:58 qc pass: ppp address propagation ---------------------------------- 2020-12-06 22:54:09 qc pass: ip over framerelay ---------------------------------- 2020-12-07 04:39:16 qc pass: framerelay asymmetric fragmentation ---------------------------------- 2020-12-07 21:33:32 qc pass: tdmoudp with middle channels qc pass: ppp with tdmoudp qc pass: hdlc with tdmoudp qc pass: lapb with tdmoudp qc pass: framerelay with tdmoudp qc pass: atmdxi with tdmoudp qc pass: isdn with tdmoudp qc pass: sep with tdmoudp ---------------------------------- 2020-12-12 13:16:39 qc pass: access class qc pass: access map qc pass: access policy qc pass: access subnet qc pass: remote triggered blackhole access qc pass: remote triggered whitelist access ---------------------------------- 2020-12-13 09:05:18 qc pass: eapol qc pass: lacp ---------------------------------- 2020-12-14 06:18:12 qc pass: interop1: lacp qc pass: interop2: ethernet encapsulation ---------------------------------- 2020-12-14 07:41:16 no qc pass: interop2: ethernet encapsulation qc pass: interop2: lacp ---------------------------------- 2020-12-19 15:13:44 no todo: pipeline properties, terminal autoresize ---------------------------------- 2020-12-21 19:54:27 qc pass: te explicit path qc pass: bgp over te ---------------------------------- 2020-12-25 14:34:56 no todo: igmp4/6 snoop, pim4/6 snoop for bridging ---------------------------------- 2020-12-25 17:56:17 qc pass: multicast routing with pim snooping qc pass: multicast routing with igmp/mld snooping ---------------------------------- 2021-01-06 14:13:11 qc pass: interop1: bgp large community qc pass: p4lang: policy routing between vrfs qc pass: p4lang: policy routing with nexthop qc pass: p4lang: policy routing with interface and nexthop ---------------------------------- 2021-01-14 20:08:27 qc pass: p4lang: ingress policer qc pass: p4lang: egress policer qc pass: p4lang: vlan ingress policer qc pass: p4lang: vlan egress policer ---------------------------------- 2021-01-18 10:45:56 qc pass: p4lang: transmit flowspec qc pass: p4lang: drop flowspec qc pass: p4lang: policer flowspec qc pass: p4lang: priority flowspec ---------------------------------- 2021-01-20 22:05:16 qc pass: monitor session rx qc pass: monitor session tx qc pass: monitor session sampled qc pass: monitor session truncated ---------------------------------- 2021-01-21 20:44:02 qc pass: p4lang: multicast routing qc pass: p4lang: multicast vlan routing ---------------------------------- 2021-01-22 08:22:36 qc pass: p4lang: multicast routing over macsec qc pass: p4lang: multicast routing over vlan macsec qc pass: p4lang: multicast bundle routing qc pass: p4lang: multicast bundle vlan routing qc pass: p4lang: hairpin multicast routing qc pass: p4lang: hairpin vlan multicast routing ---------------------------------- 2021-01-26 05:46:19 todo: p4bf: count hairpins in bffwd to make mcast over hairpin possible todo: p4bf: move nexthop stuff to egress pipe todo: monitor-filter todo: pack cap should use monitor-* infra ---------------------------------- 2021-01-26 06:22:07 no todo: p4bf: move nexthop stuff to egress pipe no todo: p4bf: count hairpins in bffwd to make mcast over hairpin possible todo: p4lang: count hairpins in bffwd to make mcast over hairpin possible todo: p4lang: move nexthop stuff to egress pipe ---------------------------------- 2021-01-27 10:14:06 qc pass: p4lang: mldp core qc pass: p4lang: mldp vlan core qc pass: p4lang: mldp egress edge qc pass: p4lang: mldp vlan egress edge ---------------------------------- 2021-01-27 21:24:15 qc pass: p4lang: mldp ingress edge qc pass: p4lang: mldp vlan ingress edge ---------------------------------- 2021-01-28 06:09:59 no todo: pack cap should use monitor-* infra no todo: monitor-filter no todo: p4lang: move nexthop stuff to egress pipe no todo: p4lang: count hairpins in bffwd to make mcast over hairpin possible ---------------------------------- 2021-01-28 19:08:23 qc pass: p4lang: mldp core over gre qc pass: p4lang: mldp core over l2tp ---------------------------------- 2021-01-29 05:51:29 no qc pass: bridge inspection failed: bridge inspection ---------------------------------- 2021-01-29 06:58:20 no failed: bridge inspection qc pass: bridge inspection ---------------------------------- 2021-01-29 08:12:02 qc pass: interface inspection with ingress drop qc pass: interface inspection with egress drop qc pass: mpls inspection with ingress drop qc pass: mpls inspection with egress drop ---------------------------------- 2021-01-30 09:21:35 qc pass: interface inspection with selective ingress drop qc pass: interface inspection with selective egress drop qc pass: mpls inspection with selective ingress drop qc pass: mpls inspection with selective egress drop ---------------------------------- 2021-01-30 16:56:39 qc pass: ingress mpls access list qc pass: egress mpls access list qc pass: ingress mpls common access list qc pass: egress mpls common access list ---------------------------------- 2021-02-03 07:07:12 qc pass: p4lang: mldp core and egress edge qc pass: p4lang: vlan mldp core and egress edge ---------------------------------- 2021-02-04 21:54:21 qc pass: p4lang: bier core qc pass: p4lang: bier vlan core qc pass: p4lang: bier core over gre qc pass: p4lang: bier core over l2tp ---------------------------------- 2021-02-04 22:29:57 qc pass: p4lang: bier bundle core qc pass: p4lang: bier bundle vlan core qc pass: p4lang: hairpin bier core qc pass: p4lang: hairpin vlan bier core ---------------------------------- 2021-02-05 04:16:32 qc pass: p4lang: mldp bundle core qc pass: p4lang: mldp bundle vlan core qc pass: p4lang: hairpin mldp core qc pass: p4lang: hairpin vlan mldp core ---------------------------------- 2021-02-05 06:28:52 qc pass: p4lang: bier egress edge qc pass: p4lang: bier vlan egress edge ---------------------------------- 2021-02-05 15:55:15 qc pass: p4lang: bier ingress edge qc pass: p4lang: bier vlan ingress edge qc pass: p4lang: bier core and egress edge qc pass: p4lang: vlan bier core and egress edge ---------------------------------- 2021-02-10 12:50:26 qc pass: dummy test qc pass: ip over anyconnect qc pass: atmdxi encapsulation qc pass: atmsar encapsulation qc pass: ppp with ax25 qc pass: hdlc with ax25 qc pass: lapb with ax25 qc pass: framerelay with ax25 qc pass: atmdxi with ax25 qc pass: isdn with ax25 qc pass: sep with ax25 qc pass: chain bridged ethernet qc pass: chain bridged ethernet vlan qc pass: star bridged ethernet qc pass: bridged ethernet over hdlc qc pass: bridged ethernet over ppp qc pass: bridged ethernet over framerelay qc pass: bridged ethernet over atmdxi qc pass: bridged ethernet over atmsar qc pass: bridged ethernet over gre qc pass: bridge with spantree qc pass: bridged ethernet over bridge qc pass: bridge split horizon qc pass: bridge mac learning qc pass: bridged mac rewrite qc pass: ppp over bstun qc pass: bundle of ethernet port qc pass: bundle of serial port qc pass: bundle of ethernet ports qc pass: bundle of serial ports qc pass: bundle over bridge qc pass: bridge over bundle qc pass: replicating bundle qc pass: unreplicating bundle qc pass: dejittering bundle qc pass: loadbalancing bundle qc pass: multichassis bundle qc pass: backup bundle qc pass: dhcp qc pass: dlsw over ipv4 qc pass: dlsw over ipv6 qc pass: dlsw over loopback qc pass: hdlc tunneling with dlsw qc pass: ppp tunneling with dlsw qc pass: lapb tunneling with dlsw qc pass: framerelay tunneling with dlsw qc pass: atmdxi tunneling with dlsw qc pass: isdn tunneling with dlsw qc pass: sep tunneling with dlsw qc pass: ethernet tunneling with dlsw qc pass: vlan tunneling with dlsw qc pass: tunnel interface with dlsw qc pass: erspan over ipv4 qc pass: erspan over ipv6 qc pass: erspan over loopback qc pass: hdlc tunneling with erspan qc pass: ppp tunneling with erspan qc pass: lapb tunneling with erspan qc pass: framerelay tunneling with erspan qc pass: atmdxi tunneling with erspan qc pass: isdn tunneling with erspan qc pass: sep tunneling with erspan qc pass: ethernet tunneling with erspan qc pass: vlan tunneling with erspan qc pass: tunnel interface with erspan qc pass: ethernet encapsulation qc pass: point2point ethernet encapsulation qc pass: ethernet dot1q encapsulation qc pass: ethernet qinq encapsulation qc pass: ethernet dot1ad encapsulation qc pass: ethernet dot1ah encapsulation qc pass: ethernet qinq1 encapsulation qc pass: ethernet qinq2 encapsulation qc pass: ethernet qinq3 encapsulation qc pass: ethernet qinqX encapsulation qc pass: ethernet qinqX custom encapsulation qc pass: ethernet isl encapsulation qc pass: proxy remote arp/nd qc pass: proxy local arp/nd qc pass: static arp/nd entry qc pass: loss detection qc pass: eapol qc pass: lacp qc pass: monitor session rx qc pass: monitor session tx qc pass: monitor session sampled qc pass: monitor session truncated qc pass: etherip over ipv4 qc pass: etherip over ipv6 qc pass: etherip over loopback qc pass: hdlc tunneling with etherip qc pass: ppp tunneling with etherip qc pass: lapb tunneling with etherip qc pass: framerelay tunneling with etherip qc pass: atmdxi tunneling with etherip qc pass: isdn tunneling with etherip qc pass: sep tunneling with etherip qc pass: ethernet tunneling with etherip qc pass: vlan tunneling with etherip qc pass: tunnel interface with etherip qc pass: etherip server qc pass: framerelay ansi qc pass: framerelay cisco qc pass: framerelay q933 qc pass: framerelay fragmentation qc pass: framerelay asymmetric fragmentation qc pass: ppp over framerelay qc pass: ip over framerelay qc pass: geneve over ipv4 qc pass: geneve over ipv6 qc pass: geneve over loopback qc pass: hdlc tunneling with geneve qc pass: ppp tunneling with geneve qc pass: lapb tunneling with geneve qc pass: framerelay tunneling with geneve qc pass: atmdxi tunneling with geneve qc pass: isdn tunneling with geneve qc pass: sep tunneling with geneve qc pass: ethernet tunneling with geneve qc pass: vlan tunneling with geneve qc pass: tunnel interface with geneve qc pass: multipoint ethernet over geneve qc pass: gre over ipv4 qc pass: gre over ipv6 qc pass: gre over gre qc pass: gre over loopback qc pass: ppp with gre qc pass: hdlc with gre qc pass: lapb with gre qc pass: framerelay with gre qc pass: atmdxi with gre qc pass: isdn with gre qc pass: sep with gre qc pass: gre server qc pass: ppp over gtp qc pass: ethernet hairpin qc pass: serial hairpin qc pass: bundle hairpin qc pass: bridge hairpin qc pass: hsrp over ethernet qc pass: icmptunnel over ipv4 qc pass: icmptunnel over ipv6 qc pass: icmptunnel over icmptunnel qc pass: icmptunnel over loopback qc pass: ipcomp over ipv4 qc pass: ipcomp over ipv6 qc pass: ipcomp over ipcomp qc pass: ipcomp over loopback qc pass: ipenc over ipv4 qc pass: ipenc over ipv6 qc pass: ipenc over ipenc qc pass: ipenc over loopback qc pass: ipip over ipv4 qc pass: ipip over ipv6 qc pass: ipip over ipip qc pass: ipip over loopback qc pass: iponly qc pass: isdn qc pass: ppp over l2f qc pass: ppp over authenticated l2f qc pass: ppp over l2tp2 qc pass: ppp over l2tp3 server qc pass: ppp over l2tp3 qc pass: hdlc over l2tp3 qc pass: lapb over l2tp3 qc pass: framerelay over l2tp3 qc pass: atmdxi over l2tp3 qc pass: isdn over l2tp3 qc pass: sep over l2tp3 qc pass: port mode ppp over l2tp3 qc pass: ethernet over l2tp3 qc pass: vlan over l2tp3 qc pass: multipoint ethernet over l2tp3 qc pass: hdlc tunneling with l2tp3 qc pass: ppp tunneling with l2tp3 qc pass: lapb tunneling with l2tp3 qc pass: framerelay tunneling with l2tp3 qc pass: atmdxi tunneling with l2tp3 qc pass: isdn tunneling with l2tp3 qc pass: sep tunneling with l2tp3 qc pass: ethernet tunneling with l2tp3 qc pass: vlan tunneling with l2tp3 qc pass: tunnel interface with l2tp3 qc pass: ppp over authenticated l2tp2 qc pass: ppp over authenticated l2tp3 server qc pass: ppp over authenticated l2tp3 qc pass: lapb mod8 qc pass: lapb mod128 qc pass: lapb mod32768 qc pass: lisp over ipv4 qc pass: lisp over ipv6 qc pass: lisp over lisp qc pass: lisp over loopback qc pass: lisp over asymmetric ports qc pass: minenc over ipv4 qc pass: minenc over ipv6 qc pass: minenc over minenc qc pass: minenc over loopback qc pass: modem with alaw qc pass: modem with ulaw qc pass: modem with alaw through proxy qc pass: modem with ulaw through proxy qc pass: modem with alaw through peer qc pass: modem with ulaw through peer qc pass: modem with alaw and ulaw through peer qc pass: modem through ipv4 peer qc pass: modem through ipv6 peer qc pass: modem through udp peer qc pass: modem through tcp peer qc pass: mplsip over ipv4 qc pass: mplsip over ipv6 qc pass: mplsip over mplsip qc pass: mplsip over loopback qc pass: mplsip server qc pass: mplsudp over ipv4 qc pass: mplsudp over ipv6 qc pass: mplsudp over mplsudp qc pass: mplsudp over loopback qc pass: mplsudp server qc pass: mplsudp over asymmetric ports qc pass: nos over ipv4 qc pass: nos over ipv6 qc pass: nos over nos qc pass: nos over loopback qc pass: nvgre over ipv4 qc pass: nvgre over ipv6 qc pass: nvgre over loopback qc pass: hdlc tunneling with nvgre qc pass: ppp tunneling with nvgre qc pass: lapb tunneling with nvgre qc pass: framerelay tunneling with nvgre qc pass: atmdxi tunneling with nvgre qc pass: isdn tunneling with nvgre qc pass: sep tunneling with nvgre qc pass: ethernet tunneling with nvgre qc pass: vlan tunneling with nvgre qc pass: tunnel interface with nvgre qc pass: pckoip over ipv4 qc pass: pckoip over ipv6 qc pass: pckoip over pckoip qc pass: pckoip over loopback qc pass: ppp with packet over udp qc pass: ethernet with packet over udp qc pass: hdlc tunneling with packet over udp qc pass: ppp tunneling with packet over udp qc pass: lapb tunneling with packet over udp qc pass: framerelay tunneling with packet over udp qc pass: atmdxi tunneling with packet over udp qc pass: isdn tunneling with packet over udp qc pass: sep tunneling with packet over udp qc pass: ethernet tunneling with packet over udp qc pass: vlan tunneling with packet over udp qc pass: tunnel interface with packet over udp qc pass: ppp over packet over udp qc pass: ethernet over packet over udp qc pass: interworking with ethernet over packet over udp qc pass: interworking with packet over dtls qc pass: ppp with packet over dtls qc pass: ppp with packet over tcp qc pass: ppp with packet over tls qc pass: ppp with packet over txt qc pass: ppp with packet over txtls qc pass: packet over udp over asymmetric ports qc pass: pim over ipv4 qc pass: pim over ipv6 qc pass: pim over pim qc pass: pim over loopback qc pass: pipe over ipv4 qc pass: pipe over ipv6 qc pass: pipe over pipe qc pass: pipe over loopback qc pass: ppp encapsulation qc pass: ppp with local authentication qc pass: ppp with radius authentication qc pass: ppp with tacacs authentication qc pass: ppp with pap authentication qc pass: ppp with chap authentication qc pass: ppp with eap authentication qc pass: ppp routes with local authentication qc pass: ppp routes with radius authentication qc pass: ppp with short multilink fragmentation qc pass: ppp with long multilink fragmentation qc pass: ppp with asymmetric multilink fragmentation qc pass: ppp with asymmetric multilink qc pass: ppp address propagation qc pass: pppoe over ethernet encapsulation qc pass: pppoe over bridge encapsulation qc pass: ppp relay over pppoe qc pass: ppp over pptp qc pass: raw encapsulation qc pass: process redundancy qc pass: sep qc pass: slaac qc pass: sreth over ipv4 qc pass: sreth over ipv6 qc pass: sreth over loopback qc pass: hdlc tunneling with sreth qc pass: ppp tunneling with sreth qc pass: lapb tunneling with sreth qc pass: framerelay tunneling with sreth qc pass: atmdxi tunneling with sreth qc pass: isdn tunneling with sreth qc pass: sep tunneling with sreth qc pass: ethernet tunneling with sreth qc pass: vlan tunneling with sreth qc pass: tunnel interface with sreth qc pass: ppp over ssh qc pass: ppp over sstp qc pass: spantree over ethernet qc pass: ppp over stun qc pass: ppp over tcp qc pass: tdmoudp with middle channels qc pass: ppp with tdmoudp qc pass: hdlc with tdmoudp qc pass: lapb with tdmoudp qc pass: framerelay with tdmoudp qc pass: atmdxi with tdmoudp qc pass: isdn with tdmoudp qc pass: sep with tdmoudp qc pass: ppp over telnet qc pass: ppp over tls qc pass: tmux over ipv4 qc pass: tmux over ipv6 qc pass: tmux over tmux qc pass: tmux over loopback qc pass: udpgre over ipv4 qc pass: udpgre over ipv6 qc pass: udpgre over udpgre qc pass: udpgre over loopback qc pass: uti over ipv4 qc pass: uti over ipv6 qc pass: uti over loopback qc pass: hdlc tunneling with uti qc pass: ppp tunneling with uti qc pass: lapb tunneling with uti qc pass: framerelay tunneling with uti qc pass: atmdxi tunneling with uti qc pass: isdn tunneling with uti qc pass: sep tunneling with uti qc pass: ethernet tunneling with uti qc pass: vlan tunneling with uti qc pass: tunnel interface with uti qc pass: vdc parent interface qc pass: vdc parent connect qc pass: vdc peer connect qc pass: vrrp over ethernet qc pass: vxlan over ipv4 qc pass: vxlan over ipv6 qc pass: vxlan over loopback qc pass: hdlc tunneling with vxlan qc pass: ppp tunneling with vxlan qc pass: lapb tunneling with vxlan qc pass: framerelay tunneling with vxlan qc pass: atmdxi tunneling with vxlan qc pass: isdn tunneling with vxlan qc pass: sep tunneling with vxlan qc pass: ethernet tunneling with vxlan qc pass: vlan tunneling with vxlan qc pass: tunnel interface with vxlan qc pass: multipoint ethernet over vxlan qc pass: cross connect hdlc interfaces qc pass: cross connect ppp interfaces qc pass: cross connect lapb interfaces qc pass: cross connect framerelay interfaces qc pass: cross connect atmdxi interfaces qc pass: cross connect isdn interfaces qc pass: cross connect sep interfaces qc pass: cross connect ethernet interfaces qc pass: cross connect vlan subinterfaces qc pass: cross connect vlan subinterfaces of same interface qc pass: access class qc pass: access map qc pass: access policy qc pass: access subnet qc pass: remote triggered blackhole access qc pass: remote triggered whitelist access qc pass: ingress protocol matching access list qc pass: egress protocol matching access list qc pass: ingress destination matching access list qc pass: egress destination matching access list qc pass: ingress source matching access list qc pass: egress source matching access list qc pass: ingress bridged access list qc pass: egress bridged access list qc pass: ingress ttl matching access list qc pass: egress ttl matching access list qc pass: ingress tos matching access list qc pass: egress tos matching access list qc pass: ingress dscp matching access list qc pass: egress dscp matching access list qc pass: ingress precedence matching access list qc pass: egress precedence matching access list qc pass: ingress length matching access list qc pass: egress length matching access list qc pass: ingress destination matching hibryd access list qc pass: egress destination matching hibryd access list qc pass: ingress source matching hibryd access list qc pass: egress source matching hibryd access list qc pass: ingress protocol matching common access list qc pass: egress protocol matching common access list qc pass: ingress destination matching common access list qc pass: egress destination matching common access list qc pass: ingress source matching common access list qc pass: egress source matching common access list qc pass: ingress ttl matching common access list qc pass: egress ttl matching common access list qc pass: ingress tos matching common access list qc pass: egress tos matching common access list qc pass: ingress length matching common access list qc pass: egress length matching common access list qc pass: ingress source port matching access list qc pass: egress source port matching access list qc pass: ingress destination port matching access list qc pass: egress destination port matching access list qc pass: ingress source port matching hibryd access list qc pass: egress source port matching hibryd access list qc pass: ingress destination port matching hibryd access list qc pass: egress destination port matching hibryd access list qc pass: ingress source port matching common access list qc pass: egress source port matching common access list qc pass: ingress destination port matching common access list qc pass: egress destination port matching common access list qc pass: ingress protocol matching hierarchical access list qc pass: egress protocol matching hierarchical access list qc pass: ingress destination matching hierarchical access list qc pass: egress destination matching hierarchical access list qc pass: ingress source matching hierarchical access list qc pass: egress source matching hierarchical access list qc pass: ingress ttl matching hierarchical access list qc pass: egress ttl matching hierarchical access list qc pass: ingress tos matching hierarchical access list qc pass: egress tos matching hierarchical access list qc pass: ingress length matching hierarchical access list qc pass: egress length matching hierarchical access list qc pass: ingress source port matching hierarchical access list qc pass: egress source port matching hierarchical access list qc pass: ingress destination port matching hierarchical access list qc pass: egress destination port matching hierarchical access list qc pass: reflexive access list qc pass: ingress mpls access list qc pass: egress mpls access list qc pass: ingress mpls common access list qc pass: egress mpls common access list qc pass: dtls test qc pass: ipv4 in esp over ipv4 qc pass: ipv4 in esp over ipv6 qc pass: ipv6 in esp over ipv4 qc pass: ipv6 in esp over ipv6 qc pass: ipv4 in ike1 over ipv4 qc pass: ipv4 in ike1 over ipv6 qc pass: ipv6 in ike1 over ipv4 qc pass: ipv6 in ike1 over ipv6 qc pass: ike1 with des qc pass: ike1 with blowfish qc pass: ike1 with 3des qc pass: ike1 with aes128 qc pass: ike1 with aes192 qc pass: ike1 with aes256 qc pass: ike1 with md5 qc pass: ike1 with sha1 qc pass: ike1 with sha256 qc pass: ike1 with sha512 qc pass: ike1 with group1 qc pass: ike1 with group2 qc pass: ike1 with group5 qc pass: ike1 with group14 qc pass: ike1 with group15 qc pass: ike1 with group16 qc pass: ike1 with group17 qc pass: ike1 with group18 qc pass: ike1 with group22 qc pass: ike1 with group23 qc pass: ike1 with group24 qc pass: ike1 over ipsec qc pass: ipv4 in ike2 over ipv4 qc pass: ipv4 in ike2 over ipv6 qc pass: ipv6 in ike2 over ipv4 qc pass: ipv6 in ike2 over ipv6 qc pass: ike2 with des qc pass: ike2 with blowfish qc pass: ike2 with 3des qc pass: ike2 with aes128 qc pass: ike2 with aes192 qc pass: ike2 with aes256 qc pass: ike2 with md5 qc pass: ike2 with sha1 qc pass: ike2 with sha256 qc pass: ike2 with sha512 qc pass: ike2 with group1 qc pass: ike2 with group2 qc pass: ike2 with group5 qc pass: ike2 with group14 qc pass: ike2 with group15 qc pass: ike2 with group16 qc pass: ike2 with group17 qc pass: ike2 with group18 qc pass: ike2 with group22 qc pass: ike2 with group23 qc pass: ike2 with group24 qc pass: ike2 over ipsec qc pass: inlsp over ipv4 qc pass: inlsp over ipv6 qc pass: inlsp over inlsp qc pass: inlsp over loopback qc pass: inlsp with des qc pass: inlsp with blowfish qc pass: inlsp with 3des qc pass: inlsp with aes128 qc pass: inlsp with aes192 qc pass: inlsp with aes256 qc pass: inlsp with md5 qc pass: inlsp with sha1 qc pass: inlsp with sha256 qc pass: inlsp with sha512 qc pass: route inspection qc pass: flow inspection qc pass: interface inspection qc pass: bridge inspection qc pass: mpls inspection qc pass: interface inspection with ingress drop qc pass: interface inspection with egress drop qc pass: mpls inspection with ingress drop qc pass: mpls inspection with egress drop qc pass: interface inspection with selective ingress drop qc pass: interface inspection with selective egress drop qc pass: mpls inspection with selective ingress drop qc pass: mpls inspection with selective egress drop qc pass: macsec over ethernet qc pass: macsec over ethernet vlan qc pass: macsec over ethernet bridge qc pass: macsec over hdlc qc pass: macsec over ppp qc pass: macsec over framerelay qc pass: macsec over atmdxi qc pass: macsec over atmsar qc pass: macsec over tunnel qc pass: macsec with des qc pass: macsec with blowfish qc pass: macsec with 3des qc pass: macsec with aes128 qc pass: macsec with aes192 qc pass: macsec with aes256 qc pass: macsec with md5 qc pass: macsec with sha1 qc pass: macsec with sha256 qc pass: macsec with sha512 qc pass: macsec with group1 qc pass: macsec with group2 qc pass: macsec with group5 qc pass: macsec with group14 qc pass: macsec with group15 qc pass: macsec with group16 qc pass: macsec with group17 qc pass: macsec with group18 qc pass: macsec with group22 qc pass: macsec with group23 qc pass: macsec with group24 qc pass: macsec over ethernet bundle qc pass: macsec over ethernet hairpin qc pass: source list translation to interface qc pass: source list translation to address qc pass: source address translation to interface qc pass: source address translation to address qc pass: target address translation to address qc pass: more sources translation to interface qc pass: ipv4-ipv6 protocol translation qc pass: source prefix translation qc pass: target prefix translation qc pass: nat64 translation qc pass: source port randomization qc pass: source interface translation to address qc pass: target interface translation to address qc pass: openvpn over ipv4 qc pass: openvpn over ipv6 qc pass: openvpn over openvpn qc pass: openvpn over loopback qc pass: openvpn with des qc pass: openvpn with blowfish qc pass: openvpn with 3des qc pass: openvpn with aes128 qc pass: openvpn with aes192 qc pass: openvpn with aes256 qc pass: openvpn with md5 qc pass: openvpn with sha1 qc pass: openvpn with sha256 qc pass: openvpn with sha512 qc pass: openvpn over asymmetric ports qc pass: transparent proxy qc pass: satp over ipv4 qc pass: satp over ipv6 qc pass: satp over satp qc pass: satp over loopback qc pass: satp with des qc pass: satp with blowfish qc pass: satp with 3des qc pass: satp with aes128 qc pass: satp with aes192 qc pass: satp with aes256 qc pass: satp with md5 qc pass: satp with sha1 qc pass: satp with sha256 qc pass: satp with sha512 qc pass: satp over asymmetric ports qc pass: skip over ipv4 qc pass: skip over ipv6 qc pass: skip over skip qc pass: skip over loopback qc pass: skip with des qc pass: skip with blowfish qc pass: skip with 3des qc pass: skip with aes128 qc pass: skip with aes192 qc pass: skip with aes256 qc pass: skip with md5 qc pass: skip with sha1 qc pass: skip with sha256 qc pass: skip with sha512 qc pass: ssh test qc pass: swipe over ipv4 qc pass: swipe over ipv6 qc pass: swipe over swipe qc pass: swipe over loopback qc pass: swipe with des qc pass: swipe with blowfish qc pass: swipe with 3des qc pass: swipe with aes128 qc pass: swipe with aes192 qc pass: swipe with aes256 qc pass: swipe with md5 qc pass: swipe with sha1 qc pass: swipe with sha256 qc pass: swipe with sha512 qc pass: tls test qc pass: wireguard over ipv4 qc pass: wireguard over ipv6 qc pass: wireguard over wireguard qc pass: wireguard over loopback qc pass: wireguard over asymmetric ports qc pass: empty demo network qc pass: addressed demo network qc pass: interop1: ebgp qc pass: interop1: ibgp qc pass: interop1: bgp locpref qc pass: interop1: bgp origin qc pass: interop1: bgp metric qc pass: interop1: bgp community qc pass: interop1: bgp aspath qc pass: interop1: bgp with labels qc pass: interop1: bgp addpath qc pass: interop1: bgp prefix withdraw qc pass: interop1: bgp vpnv4 qc pass: interop1: bgp authentication qc pass: interop1: bgp vpnv6 qc pass: interop1: vpls/ldp over bgp qc pass: interop1: vpls/bgp over bgp qc pass: interop1: bgp extended community qc pass: interop1: evpn/cmac over bgp qc pass: interop1: bgp 6pe qc pass: interop1: bgp aigp qc pass: interop1: bgp with php labels qc pass: interop1: bgp large community qc pass: interop1: dhcp server qc pass: interop1: dhcp client qc pass: interop1: dns qc pass: interop1: eigrp qc pass: interop1: eigrp prefix withdraw qc pass: interop1: ethernet encapsulation qc pass: interop1: dot1q encapsulation qc pass: interop1: spantree nonroot qc pass: interop1: spantree root qc pass: interop1: point2point ethernet encapsulation qc pass: interop1: lacp qc pass: interop1: ike1 with ipv4 qc pass: interop1: ike1 with ipv6 qc pass: interop1: ike1 with 3des qc pass: interop1: ike1 with aes128 qc pass: interop1: ike1 with aes192 qc pass: interop1: ike1 with aes256 qc pass: interop1: ike1 with sha1 qc pass: interop1: ike1 with sha256 qc pass: interop1: ike1 with sha512 qc pass: interop1: ike1 with group2 qc pass: interop1: ike1 with group5 qc pass: interop1: ike1 with group14 qc pass: interop1: ike1 with group15 qc pass: interop1: ike1 with group16 qc pass: interop1: ike1 with group24 qc pass: interop1: ike2 with ipv4 qc pass: interop1: ike2 with ipv6 qc pass: interop1: ike2 with 3des qc pass: interop1: ike2 with aes128 qc pass: interop1: ike2 with aes192 qc pass: interop1: ike2 with aes256 qc pass: interop1: ike2 with sha1 qc pass: interop1: ike2 with sha256 qc pass: interop1: ike2 with sha512 qc pass: interop1: ike2 with group2 qc pass: interop1: ike2 with group5 qc pass: interop1: ike2 with group14 qc pass: interop1: ike2 with group15 qc pass: interop1: ike2 with group16 qc pass: interop1: ike2 with group24 qc pass: interop1: point2point isis qc pass: interop1: isis dis qc pass: interop1: isis nondis qc pass: interop1: isis narrow metric qc pass: interop1: isis te qc pass: interop1: isis multi-topology qc pass: interop1: isis prefix withdraw qc pass: interop1: isis authentication qc pass: interop1: isis p2mp te qc pass: interop1: isis sr qc pass: interop1: isis lsp authentication qc pass: interop1: isis php sr qc pass: interop1: isis te with pcep qc pass: interop1: integrated isis qc pass: interop1: l2tp2 client qc pass: interop1: l2tp2 server qc pass: interop1: l2tp3 server qc pass: interop1: ethernet tunneling with l2tp3 qc pass: interop1: ldp lsp qc pass: interop1: ethernet over mpls qc pass: interop1: ldp p2mp lsp qc pass: interop1: ldp mp2mp lsp qc pass: interop1: ldp php lsp qc pass: interop1: ldp over point2point ethernet qc pass: interop1: igmp3/mld2 qc pass: interop1: pim qc pass: interop1: modem with alaw qc pass: interop1: modem with ulaw qc pass: interop1: point2point ospf qc pass: interop1: ospf dr qc pass: interop1: ospf nondr qc pass: interop1: ospf transit area qc pass: interop1: ospf stub area qc pass: interop1: ospf nssa area qc pass: interop1: ospf te qc pass: interop1: ospf prefix withdraw qc pass: interop1: ospf authentication qc pass: interop1: ospf p2mp te qc pass: interop1: ospf sr qc pass: interop1: ospf php sr qc pass: interop1: ospf te with pcep qc pass: interop1: pppoe client qc pass: interop1: pppoe server qc pass: interop1: pppoe with pap qc pass: interop1: pppoe with chap qc pass: interop1: pppoe with eap qc pass: interop1: pppoe with long multilink fragmentation qc pass: interop1: radius qc pass: interop1: rip qc pass: interop1: rip prefix withdraw qc pass: interop1: rip authentication qc pass: interop1: ssh qc pass: interop1: tacacs qc pass: interop1: gre tunnel qc pass: interop1: ipip tunnel qc pass: interop1: vxlan tunnel qc pass: interop2: ebgp qc pass: interop2: ibgp qc pass: interop2: bgp locpref qc pass: interop2: bgp origin qc pass: interop2: bgp metric qc pass: interop2: bgp community qc pass: interop2: bgp aspath qc pass: interop2: bgp with labels qc pass: interop2: bgp addpath qc pass: interop2: bgp prefix withdraw qc pass: interop2: bgp vpnv4 qc pass: interop2: bgp authentication qc pass: interop2: bgp vpnv6 qc pass: interop2: vpls/ldp over bgp qc pass: interop2: vpls/bgp over bgp qc pass: interop2: evpn/pbb over bgp qc pass: interop2: bgp extended community qc pass: interop2: bgp large community qc pass: interop2: bgp vpnv4 over srv6 qc pass: interop2: bgp vpnv6 over srv6 qc pass: interop2: bgp 6pe qc pass: interop2: evpn/vpws over bgp qc pass: interop2: bgp aigp qc pass: interop2: bgp with php labels qc pass: interop2: eigrp qc pass: interop2: eigrp prefix withdraw qc pass: interop2: ethernet encapsulation qc pass: interop2: dot1q encapsulation qc pass: interop2: dot1ad encapsulation qc pass: interop2: point2point ethernet encapsulation qc pass: interop2: lacp qc pass: interop2: point2point isis qc pass: interop2: isis dis qc pass: interop2: isis nondis qc pass: interop2: isis narrow metric qc pass: interop2: isis te qc pass: interop2: isis multi-topology qc pass: interop2: isis prefix withdraw qc pass: interop2: isis authentication qc pass: interop2: isis p2mp te qc pass: interop2: isis sr qc pass: interop2: isis lsp authentication qc pass: interop2: isis php sr qc pass: interop2: isis te with pcep qc pass: interop2: integrated isis qc pass: interop2: isis bidir te qc pass: interop2: ldp lsp qc pass: interop2: ethernet over mpls qc pass: interop2: ldp p2mp lsp qc pass: interop2: ldp mp2mp lsp qc pass: interop2: ldp php lsp qc pass: interop2: ldp over point2point ethernet qc pass: interop2: igmp3/mld2 qc pass: interop2: pim qc pass: interop2: point2point ospf qc pass: interop2: ospf dr qc pass: interop2: ospf nondr qc pass: interop2: ospf transit area qc pass: interop2: ospf stub area qc pass: interop2: ospf nssa area qc pass: interop2: ospf te qc pass: interop2: ospf prefix withdraw qc pass: interop2: ospf authentication qc pass: interop2: ospf p2mp te qc pass: interop2: ospf sr qc pass: interop2: ospf php sr qc pass: interop2: ospf te with pcep qc pass: interop2: ospf bidir te qc pass: interop2: pppoe with pap qc pass: interop2: pppoe with chap qc pass: interop2: rip qc pass: interop2: rip prefix withdraw qc pass: interop2: rip authentication qc pass: interop2: gre tunnel qc pass: interop2: ipip tunnel qc pass: interop8: ebgp qc pass: interop8: ibgp qc pass: interop8: bgp locpref qc pass: interop8: bgp origin qc pass: interop8: bgp metric qc pass: interop8: bgp community qc pass: interop8: bgp aspath qc pass: interop8: bgp with labels qc pass: interop8: bgp addpath qc pass: interop8: bgp prefix withdraw qc pass: interop8: bgp authentication qc pass: interop8: bgp extended community qc pass: interop8: bgp large community qc pass: interop8: bgp with php labels qc pass: interop8: eigrp qc pass: interop8: point2point isis qc pass: interop8: isis dis qc pass: interop8: isis nondis qc pass: interop8: isis narrow metric qc pass: interop8: isis prefix withdraw qc pass: interop8: isis authentication qc pass: interop8: integrated isis qc pass: interop8: ldp lsp qc pass: interop8: ldp php lsp qc pass: interop8: point2point ospf qc pass: interop8: ospf dr qc pass: interop8: ospf nondr qc pass: interop8: ospf transit area qc pass: interop8: ospf stub area qc pass: interop8: ospf nssa area qc pass: interop8: ospf prefix withdraw qc pass: interop8: ospf authentication qc pass: interop8: rip qc pass: interop9: ebgp qc pass: interop9: ibgp qc pass: interop9: bgp locpref qc pass: interop9: bgp origin qc pass: interop9: bgp metric qc pass: interop9: bgp community qc pass: interop9: bgp aspath qc pass: interop9: bgp with labels qc pass: interop9: bgp addpath qc pass: interop9: bgp prefix withdraw qc pass: interop9: bgp vpnv4 qc pass: interop9: bgp authentication qc pass: interop9: bgp vpnv6 qc pass: interop9: vpls/ldp over bgp qc pass: interop9: vpls/bgp over bgp qc pass: interop9: bgp extended community qc pass: interop9: bgp large community qc pass: interop9: bgp with php labels qc pass: interop9: ethernet encapsulation qc pass: interop9: dot1q encapsulation qc pass: interop9: point2point isis qc pass: interop9: isis dis qc pass: interop9: isis nondis qc pass: interop9: isis te qc pass: interop9: isis prefix withdraw qc pass: interop9: isis p2mp te qc pass: interop9: isis sr qc pass: interop9: isis lsp authentication qc pass: interop9: isis php sr qc pass: interop9: integrated isis qc pass: interop9: ldp lsp qc pass: interop9: ethernet over mpls qc pass: interop9: ldp p2mp lsp qc pass: interop9: ldp mp2mp lsp qc pass: interop9: ldp php lsp qc pass: interop9: point2point ospf qc pass: interop9: ospf dr qc pass: interop9: ospf nondr qc pass: interop9: ospf transit area qc pass: interop9: ospf stub area qc pass: interop9: ospf nssa area qc pass: interop9: ospf te qc pass: interop9: ospf prefix withdraw qc pass: interop9: ospf p2mp te qc pass: interop9: ospf sr qc pass: interop9: ospf php sr qc pass: interop9: pppoe client qc pass: interop9: pppoe server qc pass: interop9: mpls over pppoe qc pass: interop9: rip qc pass: bier in chain qc pass: bier in star qc pass: bier in dense chain qc pass: bier in dense star qc pass: bier on multiple si qc pass: bier on mixed si qc pass: bier with 64b bsl qc pass: bier with 128b bsl qc pass: bier with 256b bsl qc pass: bier with 512b bsl qc pass: bier with 1k bsl qc pass: bier with 2k bsl qc pass: bier with 4k bsl qc pass: bier over broadcast subnet qc pass: mixed protocol over bier qc pass: mpls over bier qc pass: bridged evcs over ethernet qc pass: bridged evcs over hdlc qc pass: bridged evcs over gre qc pass: bridged evcs and subif qc pass: bridged evcs and main qc pass: xconnect evcs terminated on xconnects qc pass: xconnect evcs terminated on pwhes qc pass: xconnect terminated on pwhe subifs qc pass: xconnect terminated on pwhe bridged evcs qc pass: xconnect terminated on pwhe xconnect evcs qc pass: xconnect evcs terminated on vpdns qc pass: ldp over ethernet qc pass: ldp over ethernet vlan qc pass: ldp over ethernet bridge qc pass: ldp over hdlc qc pass: ldp over ppp qc pass: ldp over framerelay qc pass: ldp over atmdxi qc pass: ldp over gre qc pass: ldp over broadcast subnet qc pass: ldp over hub and spoke subnet qc pass: ldp over loopback qc pass: p2p ldp tunnel qc pass: p2mp ldp tunnel qc pass: p2mp ldp tunnel head+mid qc pass: mp2mp ldp tunnel qc pass: mp2mp ldp tunnel mid+head qc pass: targeted ldp qc pass: ldp password qc pass: targeted ldp password qc pass: ingress label filtering with ldp qc pass: egress label filtering with ldp qc pass: vrf label filtering with ldp qc pass: mpls expbundle qc pass: mpls redirection qc pass: ldp php qc pass: ldp over point2point ethernet qc pass: nsh over ethernet qc pass: nsh over ethernet vlan qc pass: nsh over ethernet bridge qc pass: nsh over hdlc qc pass: nsh over ppp qc pass: nsh over framerelay qc pass: nsh over atmdxi qc pass: nsh over gre qc pass: nsh chain qc pass: nsh loop qc pass: nsh switch qc pass: nsh ip qc pass: nsh mix of ip and ethernet qc pass: ppp over mpls qc pass: hdlc over mpls qc pass: lapb over mpls qc pass: framerelay over mpls qc pass: atmdxi over mpls qc pass: isdn over mpls qc pass: sep over mpls qc pass: port mode ppp over mpls qc pass: ethernet over mpls qc pass: vlan over mpls qc pass: multipoint ethernet over mpls qc pass: interworking between l2tp3 and ethernet over mpls qc pass: hdlc tunneling with mpls qc pass: ppp tunneling with mpls qc pass: lapb tunneling with mpls qc pass: framerelay tunneling with mpls qc pass: atmdxi tunneling with mpls qc pass: isdn tunneling with mpls qc pass: sep tunneling with mpls qc pass: ethernet tunneling with mpls qc pass: vlan tunneling with mpls qc pass: tunnel interface with mpls qc pass: ethernet over mpls with cw qc pass: ppp over packet over udp pwhe qc pass: ethernet over packet over udp pwhe qc pass: ethernet over vxlan pwhe qc pass: ethernet over geneve pwhe qc pass: ethernet over erspan pwhe qc pass: ethernet over dlsw pwhe qc pass: ethernet over etherip pwhe qc pass: ethernet over uti pwhe qc pass: ethernet over nvgre pwhe qc pass: ppp over greppp pwhe qc pass: ppp over ax25 pwhe qc pass: ppp over l2f pwhe qc pass: ppp over pptp pwhe qc pass: ppp over l2tp2 pwhe qc pass: ppp over l2tp3 pwhe qc pass: ethernet over l2tp3 pwhe qc pass: ppp over mpls pwhe qc pass: ethernet over mpls pwhe qc pass: ethernet over mpls pwhe with cw qc pass: ethernet over gretap pwhe qc pass: ethernet over sreth pwhe qc pass: sr in chain qc pass: sr in star qc pass: te over sr qc pass: pwe over sr qc pass: bgp over sr qc pass: bgp with labels over sr qc pass: vpns over bgp over sr qc pass: othervpns over bgp over sr qc pass: sr over broadcast subnet qc pass: sr te over mpls qc pass: sr te over exthdr qc pass: bgp with php labels over sr qc pass: sr te with pcep qc pass: te over ethernet qc pass: te over ethernet vlan qc pass: te over ethernet bridge qc pass: te over hdlc qc pass: te over ppp qc pass: te over framerelay qc pass: te over atmdxi qc pass: te over gre qc pass: te in chain qc pass: ldp over te qc pass: pwe over te qc pass: ldp and te qc pass: p2mp te qc pass: p2mp te tail+mid qc pass: te with pcep qc pass: te over point2point ethernet qc pass: bidir te without global id qc pass: bidir te with global id qc pass: te explicit path qc pass: bgp over te qc pass: cross connect with pwe over mpls qc pass: cross connect with packet over udp qc pass: cross connect with vxlan qc pass: cross connect with geneve qc pass: cross connect with erspan qc pass: cross connect with etherip qc pass: cross connect with sreth qc pass: cross connect with nvgre qc pass: cross connect with uti qc pass: cross connect with pwe over mpls with cw qc pass: cross connect interworking with packet over udp qc pass: cross connect interworking with vxlan qc pass: cross connect interworking with geneve qc pass: cross connect interworking with erspan qc pass: cross connect interworking with etherip qc pass: cross connect interworking with sreth qc pass: cross connect interworking with nvgre qc pass: cross connect interworking with uti qc pass: cross connect interworking with dlsw qc pass: cross connect with everything qc pass: openflow: software routing qc pass: openflow: bridging and routing qc pass: openflow: ip routing qc pass: openflow: mpls routing qc pass: openflow: multicast routing qc pass: openflow: mldp routing qc pass: p4lang: copp qc pass: p4lang: ingress access list qc pass: p4lang: egress access list qc pass: p4lang: nat qc pass: p4lang: vlan ingress access list qc pass: p4lang: vlan egress access list qc pass: p4lang: bundle ingress access list qc pass: p4lang: bundle egress access list qc pass: p4lang: bundle vlan ingress access list qc pass: p4lang: bundle vlan egress access list qc pass: p4lang: bridge ingress access list qc pass: p4lang: bridge egress access list qc pass: p4lang: vlan bridge ingress access list qc pass: p4lang: vlan bridge egress access list qc pass: p4lang: ingress pppoe access list qc pass: p4lang: egress pppoe access list qc pass: p4lang: ingress vlan pppoe access list qc pass: p4lang: egress vlan pppoe access list qc pass: p4lang: hairpin ingress access list qc pass: p4lang: hairpin egress access list qc pass: p4lang: hairpin vlan ingress access list qc pass: p4lang: hairpin vlan egress access list qc pass: p4lang: hairpin pppoe ingress access list qc pass: p4lang: hairpin pppoe egress access list qc pass: p4lang: hairpin vlan pppoe ingress access list qc pass: p4lang: hairpin vlan pppoe egress access list qc pass: p4lang: ingress gre access list qc pass: p4lang: egress gre access list qc pass: p4lang: ingress vlan gre access list qc pass: p4lang: egress vlan gre access list qc pass: p4lang: ingress l2tp access list qc pass: p4lang: egress l2tp access list qc pass: p4lang: ingress vlan l2tp access list qc pass: p4lang: egress vlan l2tp access list qc pass: p4lang: ingress ipip access list qc pass: p4lang: egress ipip access list qc pass: p4lang: ingress vlan ipip access list qc pass: p4lang: egress vlan ipip access list qc pass: p4lang: ingress common access list qc pass: p4lang: egress common access list qc pass: p4lang: ingress hibryd access list qc pass: p4lang: egress hibryd access list qc pass: p4lang: ingress hierarchical access list qc pass: p4lang: egress hierarchical access list qc pass: p4lang: ingress policer qc pass: p4lang: egress policer qc pass: p4lang: vlan ingress policer qc pass: p4lang: vlan egress policer qc pass: p4lang: transmit flowspec qc pass: p4lang: drop flowspec qc pass: p4lang: policer flowspec qc pass: p4lang: priority flowspec qc pass: p4lang: macsec with des qc pass: p4lang: macsec with 3des qc pass: p4lang: macsec with aes128 qc pass: p4lang: macsec with aes192 qc pass: p4lang: macsec with aes256 qc pass: p4lang: macsec with md5 qc pass: p4lang: macsec with sha1 qc pass: p4lang: macsec with sha256 qc pass: p4lang: macsec with sha512 qc pass: p4lang: macsec over ethernet qc pass: p4lang: macsec over vlan qc pass: p4lang: macsec over bundle vlan qc pass: p4lang: macsec over gre qc pass: p4lang: macsec over pppoe qc pass: p4lang: macsec over l2tp qc pass: p4lang: macsec over hairpin qc pass: p4lang: macsec ingress access list qc pass: p4lang: macsec egress access list qc pass: p4lang: macsec vlan ingress access list qc pass: p4lang: macsec vlan egress access list qc pass: p4lang: ipsec with des qc pass: p4lang: ipsec with 3des qc pass: p4lang: ipsec with aes128 qc pass: p4lang: ipsec with aes192 qc pass: p4lang: ipsec with aes256 qc pass: p4lang: ipsec with md5 qc pass: p4lang: ipsec with sha1 qc pass: p4lang: ipsec with sha256 qc pass: p4lang: ipsec with sha512 qc pass: p4lang: ipv4 over ipsec qc pass: p4lang: ipv6 over ipsec qc pass: p4lang: ipsec over ipv4 qc pass: p4lang: ipsec over ipv6 qc pass: p4lang: ipsec over ipv4 loopback qc pass: p4lang: ipsec over ipv6 loopback qc pass: p4lang: ipsec over vlan qc pass: p4lang: ipv4 over ipsec with ingress access list qc pass: p4lang: ipv4 over ipsec with egress access list qc pass: p4lang: ipv6 over ipsec with ingress access list qc pass: p4lang: ipv6 over ipsec with egress access list qc pass: p4lang: ipsec with ike1 qc pass: p4lang: ipsec with ike2 qc pass: p4lang: openvpn with des qc pass: p4lang: openvpn with 3des qc pass: p4lang: openvpn with aes128 qc pass: p4lang: openvpn with aes192 qc pass: p4lang: openvpn with aes256 qc pass: p4lang: openvpn with md5 qc pass: p4lang: openvpn with sha1 qc pass: p4lang: openvpn with sha256 qc pass: p4lang: openvpn with sha512 qc pass: p4lang: openvpn over ipv4 qc pass: p4lang: openvpn over ipv6 qc pass: p4lang: openvpn over ipv4 loopback qc pass: p4lang: openvpn over ipv6 loopback qc pass: p4lang: openvpn over asymmetric ports qc pass: p4lang: openvpn with ingress access list qc pass: p4lang: openvpn with egress access list qc pass: p4lang: wireguard over ipv4 qc pass: p4lang: wireguard over ipv6 qc pass: p4lang: wireguard over ipv4 loopback qc pass: p4lang: wireguard over ipv6 loopback qc pass: p4lang: wireguard over vlan qc pass: p4lang: wireguard over asymmetric ports qc pass: p4lang: wireguard with ingress access list qc pass: p4lang: wireguard with egress access list qc pass: p4lang: multicast routing over macsec qc pass: p4lang: multicast routing over vlan macsec qc pass: p4lang: routing qc pass: p4lang: bridging qc pass: p4lang: mpls core qc pass: p4lang: mpls edge qc pass: p4lang: vlan routing qc pass: p4lang: vlan bridging qc pass: p4lang: vlan mpls qc pass: p4lang: vpn with bgp qc pass: p4lang: vpls/ldp with bgp qc pass: p4lang: evpn/cmac with bgp qc pass: p4lang: eompls qc pass: p4lang: vpn with bgp over srv6 qc pass: p4lang: evpn/cmac with bgp over srv6 qc pass: p4lang: bundle routing qc pass: p4lang: bundle mpls qc pass: p4lang: bundle vlan routing qc pass: p4lang: bundle vlan mpls qc pass: p4lang: bundle vlan bridging qc pass: p4lang: bridge routing qc pass: p4lang: bridge mpls qc pass: p4lang: vlan bridge routing qc pass: p4lang: vlan bridge mpls qc pass: p4lang: vlan vpls/ldp with bgp qc pass: p4lang: vlan eompls qc pass: p4lang: bundle vlan vpls/ldp with bgp qc pass: p4lang: bundle vlan eompls qc pass: p4lang: pppoe routing qc pass: p4lang: vlan pppoe routing qc pass: p4lang: pppoe mpls qc pass: p4lang: vlan pppoe mpls qc pass: p4lang: hairpin routing qc pass: p4lang: hairpin bridging qc pass: p4lang: hairpin mpls qc pass: p4lang: hairpin vlan routing qc pass: p4lang: hairpin vlan bridging qc pass: p4lang: hairpin vlan mpls qc pass: p4lang: hairpin pppoe routing qc pass: p4lang: hairpin vlan pppoe routing qc pass: p4lang: hairpin pppoe mpls qc pass: p4lang: hairpin vlan pppoe mpls qc pass: p4lang: hairpin vpls/ldp with bgp qc pass: p4lang: hairpin vlan vpls/ldp with bgp qc pass: p4lang: hairpin eompls qc pass: p4lang: hairpin vlan eompls qc pass: p4lang: vlan evpn/cmac with bgp qc pass: p4lang: bundle vlan evpn/cmac with bgp qc pass: p4lang: hairpin evpn/cmac with bgp qc pass: p4lang: hairpin vlan evpn/cmac with bgp qc pass: p4lang: gre routing over ipv4 qc pass: p4lang: gre routing over ipv6 qc pass: p4lang: gre routing over ipv4 loopback qc pass: p4lang: gre routing over ipv6 loopback qc pass: p4lang: gre routing over vlan qc pass: p4lang: gre routing over bundle qc pass: p4lang: gre routing over bundle vlan qc pass: p4lang: gre routing over hairpin qc pass: p4lang: gre routing over hairpin vlan qc pass: p4lang: gre routing over bridge qc pass: p4lang: gre routing over vlan bridge qc pass: p4lang: gre mpls over ipv4 qc pass: p4lang: gre mpls over ipv6 qc pass: p4lang: gre mpls over ipv4 loopback qc pass: p4lang: gre mpls over ipv6 loopback qc pass: p4lang: gre mpls over vlan qc pass: p4lang: gre mpls over bundle qc pass: p4lang: gre mpls over bundle vlan qc pass: p4lang: gre mpls over hairpin qc pass: p4lang: gre mpls over hairpin vlan qc pass: p4lang: gre mpls over bridge qc pass: p4lang: gre mpls over vlan bridge qc pass: p4lang: l2tp routing over ipv4 qc pass: p4lang: l2tp routing over ipv6 qc pass: p4lang: l2tp routing over ipv4 loopback qc pass: p4lang: l2tp routing over ipv6 loopback qc pass: p4lang: l2tp routing over vlan qc pass: p4lang: l2tp routing over bundle qc pass: p4lang: l2tp mpls over ipv4 qc pass: p4lang: l2tp mpls over ipv6 qc pass: p4lang: l2tp mpls over ipv4 loopback qc pass: p4lang: l2tp mpls over ipv6 loopback qc pass: p4lang: l2tp mpls over vlan qc pass: p4lang: l2tp mpls over bundle qc pass: p4lang: bridging over gre qc pass: p4lang: bridging over gre vlan qc pass: p4lang: bridging over pppoe qc pass: p4lang: bridging over pppoe vlan qc pass: p4lang: bridging over l2tp qc pass: p4lang: bridging over l2tp vlan qc pass: p4lang: vxlan over ipv4 qc pass: p4lang: vxlan over ipv6 qc pass: p4lang: vxlan over ipv4 loopback qc pass: p4lang: vxlan over ipv6 loopback qc pass: p4lang: vxlan over vlan qc pass: p4lang: vxlan over bundle qc pass: p4lang: evpn/vxlan with bgp qc pass: p4lang: vlan evpn/vxlan with bgp qc pass: p4lang: bundle vlan evpn/vxlan with bgp qc pass: p4lang: hairpin evpn/vxlan with bgp qc pass: p4lang: ipip routing over ipv4 qc pass: p4lang: ipip routing over ipv6 qc pass: p4lang: ipip routing over ipv4 loopback qc pass: p4lang: ipip routing over ipv6 loopback qc pass: p4lang: ipip routing over vlan qc pass: p4lang: ipip routing over bundle qc pass: p4lang: pckoudp over ipv4 qc pass: p4lang: pckoudp over ipv6 qc pass: p4lang: pckoudp over ipv4 loopback qc pass: p4lang: pckoudp over ipv6 loopback qc pass: p4lang: pckoudp over vlan qc pass: p4lang: pckoudp over bundle qc pass: p4lang: pckoudp server over ipv4 qc pass: p4lang: pckoudp server over ipv6 qc pass: p4lang: pckoudp server over ipv4 loopback qc pass: p4lang: pckoudp server over ipv6 loopback qc pass: p4lang: vxlan server over ipv4 qc pass: p4lang: vxlan server over ipv6 qc pass: p4lang: vxlan server over ipv4 loopback qc pass: p4lang: vxlan server over ipv6 loopback qc pass: p4lang: pppoe server routing qc pass: p4lang: vlan pppoe server routing qc pass: p4lang: pppoe server mpls qc pass: p4lang: vlan pppoe server mpls qc pass: p4lang: l2tp server routing qc pass: p4lang: vlan l2tp server routing qc pass: p4lang: l2tp server mpls qc pass: p4lang: vlan l2tp server mpls qc pass: p4lang: p2p ldp tail+head qc pass: p4lang: p2p ldp mid qc pass: p4lang: p2p te tail+head qc pass: p4lang: p2p te mid qc pass: p4lang: sr te over mpls tail+head qc pass: p4lang: sr te over mpls mid qc pass: p4lang: policy routing between vrfs qc pass: p4lang: policy routing with nexthop qc pass: p4lang: policy routing with interface and nexthop qc pass: p4lang: multicast routing qc pass: p4lang: multicast vlan routing qc pass: p4lang: multicast bundle routing qc pass: p4lang: multicast bundle vlan routing qc pass: p4lang: hairpin multicast routing qc pass: p4lang: hairpin vlan multicast routing qc pass: p4lang: mldp core qc pass: p4lang: mldp vlan core qc pass: p4lang: mldp core over gre qc pass: p4lang: mldp core over l2tp qc pass: p4lang: mldp bundle core qc pass: p4lang: mldp bundle vlan core qc pass: p4lang: hairpin mldp core qc pass: p4lang: hairpin vlan mldp core qc pass: p4lang: mldp egress edge qc pass: p4lang: mldp vlan egress edge qc pass: p4lang: mldp ingress edge qc pass: p4lang: mldp vlan ingress edge qc pass: p4lang: mldp core and egress edge qc pass: p4lang: vlan mldp core and egress edge qc pass: p4lang: bier core qc pass: p4lang: bier vlan core qc pass: p4lang: bier core over gre qc pass: p4lang: bier core over l2tp qc pass: p4lang: bier bundle core qc pass: p4lang: bier bundle vlan core qc pass: p4lang: hairpin bier core qc pass: p4lang: hairpin vlan bier core qc pass: p4lang: bier egress edge qc pass: p4lang: bier vlan egress edge qc pass: p4lang: bier ingress edge qc pass: p4lang: bier vlan ingress edge qc pass: p4lang: bier core and egress edge qc pass: p4lang: vlan bier core and egress edge qc pass: qos ingress transmit action qc pass: qos egress transmit action qc pass: qos ingress drop action qc pass: qos egress drop action qc pass: qos ingress policer action qc pass: qos egress policer action qc pass: qos ingress priority action qc pass: qos egress priority action qc pass: qos ingress bandwidth action qc pass: qos egress bandwidth action qc pass: qos ingress shaper action qc pass: qos egress shaper action qc pass: qos ingress hierarchical action qc pass: qos egress hierarchical action qc pass: qos ingress transmit copp qc pass: qos egress transmit copp qc pass: qos ingress drop copp qc pass: qos egress drop copp qc pass: qos ingress policer copp qc pass: qos egress policer copp qc pass: qos transmit dapp qc pass: qos drop dapp qc pass: qos policer dapp qc pass: qos priority dapp qc pass: qos transmit flowspec qc pass: qos drop flowspec qc pass: qos policer flowspec qc pass: qos priority flowspec qc pass: qos transmit otherflowspec qc pass: qos drop otherflowspec qc pass: qos policer otherflowspec qc pass: qos priority otherflowspec qc pass: qos ingress length matcher qc pass: qos egress length matcher qc pass: qos ingress tos matcher qc pass: qos egress tos matcher qc pass: qos ingress dscp matcher qc pass: qos egress dscp matcher qc pass: qos ingress prec matcher qc pass: qos egress prec matcher qc pass: qos ingress acl matcher qc pass: qos egress acl matcher qc pass: qos ingress ethertype matcher qc pass: qos egress ethertype matcher qc pass: qos ingress matcher on bridged traffic qc pass: qos egress matcher on bridged traffic qc pass: qos ingress ttl matcher qc pass: qos egress ttl matcher qc pass: qos ingress qosgroup set qc pass: qos ingress tos set qc pass: qos egress tos set qc pass: qos ingress dscp set qc pass: qos egress dscp set qc pass: qos ingress prec set qc pass: qos egress prec set qc pass: qos cos set qc pass: qos ingress exp set qc pass: qos egress exp set qc pass: qos ingress ttl set qc pass: qos egress ttl set qc pass: babel on one subnet qc pass: babel in chain qc pass: babel ingress route filtering with prefixlist qc pass: babel egress route filtering with prefixlist qc pass: babel ingress route filtering with routemap qc pass: babel egress route filtering with routemap qc pass: babel ingress route filtering with routepolicy qc pass: babel egress route filtering with routepolicy qc pass: babel max metric qc pass: babel address suppression qc pass: babel default route qc pass: babel incoming interface metric qc pass: babel outgoing interface metric qc pass: babel incoming metric with routemap qc pass: babel outgoing metric with routemap qc pass: babel incoming metric with routepolicy qc pass: babel outgoing metric with routepolicy qc pass: babel with bfd qc pass: babel peer template qc pass: babel prefix withdraw qc pass: babel aggregation qc pass: babel auto mesh tunnel qc pass: babel triangle connection qc pass: babel autoroute qc pass: babel over point2point ethernet qc pass: babel ecmp connection qc pass: ebgp in chain qc pass: confed bgp in chain qc pass: ibgp in chain qc pass: ebgp in subnet qc pass: confed bgp in subnet qc pass: ibgp in subnet qc pass: ibgp fullmesh in subnet qc pass: ibgp rr in subnet qc pass: ebgp over loopback qc pass: ibgp over loopback qc pass: ibgp with mpls qc pass: ebgp with long as number qc pass: ibgp with long as number qc pass: bgp default route qc pass: bgp ingress route filtering with prefixlist qc pass: bgp egress route filtering with prefixlist qc pass: bgp ingress route filtering with routemap qc pass: bgp egress route filtering with routemap qc pass: bgp routemap filtering with locpref qc pass: bgp routemap filtering with origin qc pass: bgp routemap filtering with metric qc pass: bgp routemap filtering with standard community qc pass: bgp routemap filtering with aspath qc pass: bgp locpref qc pass: bgp aspath qc pass: bgp origin qc pass: bgp metric qc pass: bgp locpref vs aspath qc pass: bgp aspath vs origin qc pass: bgp origin vs metric qc pass: bgp routemap filtering with extended community qc pass: ebgp with labels qc pass: ibgp with labels qc pass: ebgp with bfd qc pass: vpns over ebgp qc pass: vpns over ibgp qc pass: bgp route server qc pass: bgp enforce first as qc pass: bgp aspath check qc pass: bgp allow as in qc pass: bgp remove private as out qc pass: bgp override as out qc pass: bgp nexthop self qc pass: bgp nexthop peer qc pass: vpls/ldp over ebgp qc pass: vpls/ldp over ibgp qc pass: bgp peer template qc pass: bgp listen qc pass: ebgp password qc pass: bgp routemap filtering with aigp qc pass: bgp routemap filtering with bandwidth qc pass: bgp rpki qc pass: bgp additional path qc pass: bgp additional path with labels qc pass: vpns over bgp additional path qc pass: vpls/ldp over bgp additional path qc pass: bgp nexthop unchanged qc pass: bgp remove private as in qc pass: bgp override as in qc pass: ebgp with nexthop tracking routemap qc pass: ibgp with nexthop tracking routemap qc pass: vpns over ibgp rr qc pass: vpls/ldp over ibgp rr qc pass: bgp clustlist qc pass: bgp metric vs clustlist qc pass: bgp distance qc pass: bgp distance vs locpref qc pass: ebgp in chain with soft-reconfig qc pass: confed bgp in chain with soft-reconfig qc pass: ibgp in chain with soft-reconfig qc pass: ibgp rr in subnet with soft-reconfig qc pass: bgp ingress route filtering with prefixlist with soft-reconfig qc pass: bgp egress route filtering with prefixlist with soft-reconfig qc pass: bgp ingress route filtering with routemap with soft-reconfig qc pass: bgp egress route filtering with routemap with soft-reconfig qc pass: bgp routemap filtering with locpref with soft-reconfig qc pass: bgp routemap filtering with origin with soft-reconfig qc pass: bgp routemap filtering with metric with soft-reconfig qc pass: bgp routemap filtering with standard community with soft-reconfig qc pass: bgp routemap filtering with aspath with soft-reconfig qc pass: bgp locpref with soft-reconfig qc pass: bgp aspath with soft-reconfig qc pass: bgp origin with soft-reconfig qc pass: bgp metric with soft-reconfig qc pass: bgp locpref vs aspath with soft-reconfig qc pass: bgp aspath vs origin with soft-reconfig qc pass: bgp origin vs metric with soft-reconfig qc pass: bgp routemap filtering with extended community with soft-reconfig qc pass: bgp clustlist with soft-reconfig qc pass: bgp metric vs clustlist with soft-reconfig qc pass: bgp distance with soft-reconfig qc pass: bgp distance vs locpref with soft-reconfig qc pass: bgp routemap filtering with aigp with soft-reconfig qc pass: bgp routemap filtering with bandwidth with soft-reconfig qc pass: bgp with a lot prefix qc pass: ebgp prefix withdraw qc pass: confed bgp prefix withdraw qc pass: ibgp prefix withdraw qc pass: ibgp fullmesh prefix withdraw qc pass: ibgp rr prefix withdraw qc pass: ebgp prefix withdraw with soft-reconfig qc pass: confed bgp prefix withdraw with soft-reconfig qc pass: ibgp prefix withdraw with soft-reconfig qc pass: ibgp fullmesh prefix withdraw with soft-reconfig qc pass: ibgp rr prefix withdraw with soft-reconfig qc pass: vpns over confed bgp qc pass: vpls/ldp over confed bgp qc pass: vpns over bgp route server qc pass: vpls/ldp over bgp route server qc pass: bgp route server with soft-reconfig qc pass: bgp route server prefix withdraw qc pass: bgp route server prefix withdraw with soft-reconfig qc pass: multisite vpns over ibgp rr qc pass: multisite vpls/ldp over ibgp rr qc pass: bgp change in locpref qc pass: bgp change in aspath qc pass: bgp change in origin qc pass: bgp change in metric qc pass: bgp change in aigp qc pass: bgp change in bandwidth qc pass: bgp change in standard community qc pass: bgp change in extended community qc pass: bgp change in locpref with soft-reconfig qc pass: bgp change in aspath with soft-reconfig qc pass: bgp change in origin with soft-reconfig qc pass: bgp change in metric with soft-reconfig qc pass: bgp change in aigp with soft-reconfig qc pass: bgp change in bandwidth with soft-reconfig qc pass: bgp change in standard community with soft-reconfig qc pass: bgp change in extended community with soft-reconfig qc pass: bgp aggregation qc pass: bgp maximum prefix qc pass: evpn/pbb over ebgp qc pass: evpn/pbb over ibgp qc pass: evpn/pbb over bgp additional path qc pass: evpn/pbb over ibgp rr qc pass: evpn/pbb over confed bgp qc pass: evpn/pbb over bgp route server qc pass: multisite evpn/pbb over ibgp rr qc pass: ethersite vpls/ldp over ibgp qc pass: ethersite evpn/pbb over ibgp qc pass: ethersite vpns over ibgp qc pass: vpns over bgp with soft-reconfig qc pass: vpls/ldp over bgp with soft-reconfig qc pass: evpn/pbb over bgp with soft-reconfig qc pass: unicast+vpns over bgp qc pass: unicast+vpls/ldp over bgp qc pass: unicast+evpn/pbb over bgp qc pass: unicast+vpns over bgp with soft-reconfig qc pass: unicast+vpls/ldp over bgp with soft-reconfig qc pass: unicast+evpn/pbb over bgp with soft-reconfig qc pass: unicast+vpns over bgp additional path qc pass: unicast+vpls/ldp over bgp additional path qc pass: unicast+evpn/pbb over bgp additional path qc pass: bgp auto mesh tunnel qc pass: vpns over bgp auto mesh tunnel qc pass: vpls/ldp over bgp auto mesh tunnel qc pass: evpn/pbb over bgp auto mesh tunnel qc pass: vpls/bgp over ebgp qc pass: vpls/bgp over ibgp qc pass: vpls/bgp over bgp additional path qc pass: vpls/bgp over ibgp rr qc pass: vpls/bgp over confed bgp qc pass: vpls/bgp over bgp route server qc pass: multisite vpls/bgp over ibgp rr qc pass: ethersite vpls/bgp over ibgp qc pass: vpls/bgp over bgp with soft-reconfig qc pass: unicast+vpls/bgp over bgp qc pass: unicast+vpls/bgp over bgp with soft-reconfig qc pass: unicast+vpls/bgp over bgp additional path qc pass: vpls/bgp over bgp auto mesh tunnel qc pass: vpls/ldp+vpls/bgp over bgp qc pass: ibgp conquer rr in subnet qc pass: ibgp conquer rr in subnet with soft-reconfig qc pass: ibgp conquer rr prefix withdraw qc pass: ibgp conquer rr prefix withdraw with soft-reconfig qc pass: unicast+vpnmul over bgp qc pass: unicast+mdt over bgp qc pass: unicast+flowspec over bgp qc pass: unicast+flowspecvpn over bgp qc pass: unicast+vpnmul over bgp with soft-reconfig qc pass: unicast+mdt over bgp with soft-reconfig qc pass: unicast+flowspec over bgp with soft-reconfig qc pass: unicast+flowspecvpn over bgp with soft-reconfig qc pass: unicast+vpnmul over bgp with additional path qc pass: unicast+mdt over bgp with additional path qc pass: unicast+flowspec over bgp with additional path qc pass: unicast+flowspecvpn over bgp with additional path qc pass: evpn/vxlan over ebgp qc pass: evpn/vxlan over ibgp qc pass: evpn/vxlan over bgp additional path qc pass: evpn/vxlan over ibgp rr qc pass: evpn/vxlan over confed bgp qc pass: evpn/vxlan over bgp route server qc pass: multisite evpn/vxlan over ibgp rr qc pass: ethersite evpn/vxlan over ibgp qc pass: evpn/vxlan over bgp with soft-reconfig qc pass: unicast+evpn/vxlan over bgp qc pass: unicast+evpn/vxlan over bgp with soft-reconfig qc pass: unicast+evpn/vxlan over bgp additional path qc pass: evpn/vxlan over bgp auto mesh tunnel qc pass: evpn/pbb+vpls/vxlan over ebgp qc pass: evpn/cmac over ebgp qc pass: evpn/cmac over ibgp qc pass: evpn/cmac over bgp additional path qc pass: evpn/cmac over ibgp rr qc pass: evpn/cmac over confed bgp qc pass: evpn/cmac over bgp route server qc pass: multisite evpn/cmac over ibgp rr qc pass: ethersite evpn/cmac over ibgp qc pass: evpn/cmac over bgp with soft-reconfig qc pass: unicast+evpn/cmac over bgp qc pass: unicast+evpn/cmac over bgp with soft-reconfig qc pass: unicast+evpn/cmac over bgp additional path qc pass: evpn/cmac over bgp auto mesh tunnel qc pass: evpn/pbb+vpls/cmac over ebgp qc pass: ibgp with ttl-security qc pass: ebgp with ttl-security qc pass: bgp routemap filtering with large community qc pass: bgp routemap filtering with large community with soft-reconfig qc pass: bgp change in large community qc pass: bgp change in large community with soft-reconfig qc pass: bgp triangle connection qc pass: bgp routemap filtering with aspath length qc pass: bgp routepolicy filtering with aspath length qc pass: bgp routemap filtering with aspath length with soft-reconfig qc pass: bgp routepolicy filtering with aspath length with soft-reconfig qc pass: bgp ingress route filtering with routepolicy qc pass: bgp egress route filtering with routepolicy qc pass: bgp routepolicy filtering with locpref qc pass: bgp routepolicy filtering with origin qc pass: bgp routepolicy filtering with metric qc pass: bgp routepolicy filtering with aspath qc pass: bgp routepolicy filtering with extended community qc pass: bgp routepolicy filtering with aigp qc pass: bgp routepolicy filtering with bandwidth qc pass: bgp ingress route filtering with routepolicy with soft-reconfig qc pass: bgp egress route filtering with routepolicy with soft-reconfig qc pass: bgp routepolicy filtering with locpref with soft-reconfig qc pass: bgp routepolicy filtering with origin with soft-reconfig qc pass: bgp routepolicy filtering with metric with soft-reconfig qc pass: bgp routepolicy filtering with standard community with soft-reconfig qc pass: bgp routepolicy filtering with aspath with soft-reconfig qc pass: bgp routepolicy filtering with extended community with soft-reconfig qc pass: bgp routepolicy filtering with aigp with soft-reconfig qc pass: bgp routepolicy filtering with bandwidth with soft-reconfig qc pass: bgp routepolicy filtering with large community qc pass: bgp routepolicy filtering with large community with soft-reconfig qc pass: ebgp with nexthop tracking routepolicy qc pass: ibgp with nexthop tracking routepolicy qc pass: othervpns over ebgp qc pass: othervpns over ibgp qc pass: othervpns over bgp additional path qc pass: othervpns over ibgp rr qc pass: othervpns over confed bgp qc pass: othervpns over bgp route server qc pass: multisite othervpns over ibgp rr qc pass: ethersite othervpns over ibgp qc pass: othervpns over bgp with soft-reconfig qc pass: unicast+othervpns over bgp qc pass: unicast+othervpns over bgp with soft-reconfig qc pass: unicast+othervpns over bgp additional path qc pass: othervpns over bgp auto mesh tunnel qc pass: unicast+mvpn over bgp qc pass: unicast+mvpn over bgp with soft-reconfig qc pass: unicast+mvpn over bgp with additional path qc pass: unicast+othermvpn over bgp qc pass: unicast+othermvpn over bgp with soft-reconfig qc pass: unicast+othermvpn over bgp with additional path qc pass: unicast+otherflowspecvpn over bgp qc pass: unicast+otherflowspecvpn over bgp with soft-reconfig qc pass: unicast+otherflowspecvpn over bgp with additional path qc pass: unicast+othervpnmul over bgp qc pass: unicast+othervpnmul over bgp with soft-reconfig qc pass: unicast+othervpnmul over bgp with additional path qc pass: unicast+multicast over bgp qc pass: unicast+multicast over bgp with soft-reconfig qc pass: unicast+multicast over bgp with additional path qc pass: bgp csc vpn qc pass: unicast+olab over ebgp qc pass: unicast+olab over bgp with soft-reconfig qc pass: unicast+olab over bgp with additional path qc pass: ebgp prefix movement qc pass: confed bgp prefix movement qc pass: ibgp rr prefix movement qc pass: bgp route server prefix movement qc pass: ibgp conquer rr prefix movement qc pass: ibgp fullmesh prefix movement qc pass: ebgp prefix movement with soft-reconfig qc pass: confed bgp prefix movement with soft-reconfig qc pass: ibgp rr prefix movement with soft-reconfig qc pass: bgp route server prefix movement with soft-reconfig qc pass: ibgp conquer rr prefix movement with soft-reconfig qc pass: ibgp fullmesh prefix movement with soft-reconfig qc pass: bgp csc othervpn qc pass: bgp prefix hammering qc pass: bgp csc vpn with ldp qc pass: bgp csc othervpn with ldp qc pass: unicast+mspw over bgp qc pass: unicast+mspw over bgp with soft-reconfig qc pass: unicast+mspw over bgp with additional path qc pass: bgp with sr qc pass: ebgp vpn client qc pass: ibgp vpn client qc pass: ebgp vpn client with soft-reconfig qc pass: ibgp vpn client with soft-reconfig qc pass: bgp symmetric compression qc pass: bgp asymmetric compression qc pass: bgp none compression qc pass: bgp prefix packing qc pass: ebgp with nexthop tracking interface qc pass: ibgp with nexthop tracking interface qc pass: bgp with bier qc pass: bgp routemap filtering with rd qc pass: bgp routepolicy filtering with rd qc pass: bgp routemap filtering with rd with soft-reconfig qc pass: bgp routepolicy filtering with rd with soft-reconfig qc pass: bgp routemap filtering with afi qc pass: bgp routepolicy filtering with afi qc pass: bgp routemap filtering with afi with soft-reconfig qc pass: bgp routepolicy filtering with afi with soft-reconfig qc pass: bgp hard reset qc pass: bgp hard reset with soft-reconfig qc pass: bgp soft in reset qc pass: bgp soft in reset with soft-reconfig qc pass: bgp soft out reset qc pass: bgp soft out reset with soft-reconfig qc pass: unicast+srte over bgp qc pass: unicast+srte over bgp with soft-reconfig qc pass: unicast+srte over bgp with additional path qc pass: bgp interas vpn with asbr peering qc pass: bgp interas vpn with rr peering qc pass: bgp interas othervpn with asbr peering qc pass: bgp interas othervpn with rr peering qc pass: bgp interas csc vpn with asbr peering qc pass: bgp interas csc vpn with rr peering qc pass: bgp dual core vpn qc pass: bgp dual core csc vpn qc pass: bgp hub and spoke vpn multiple rt import qc pass: bgp hub and spoke vpn multiple rt export qc pass: bgp vpn with export list qc pass: bgp vpn with import list qc pass: bgp vpn with export map qc pass: bgp vpn with import map qc pass: bgp vpn with export policy qc pass: bgp vpn with import policy qc pass: vpns over srv6 over ibgp qc pass: evpn/pbb over srv6 over ibgp qc pass: evpn/cmac over srv6 over ibgp qc pass: unicast+olab over ibgp qc pass: unicast+olab over ibgp rr qc pass: unicast+olab over confed bgp qc pass: unicast+olab over bgp route server qc pass: olab over srv6 over ibgp qc pass: vpns over srv6 over ebgp qc pass: evpn/pbb over srv6 over ebgp qc pass: evpn/cmac over srv6 over ebgp qc pass: olab over srv6 over ebgp qc pass: vpns over srv6 over ibgp rr qc pass: evpn/pbb over srv6 over ibgp rr qc pass: evpn/cmac over srv6 over ibgp rr qc pass: olab over srv6 over ibgp rr qc pass: vpns over srv6 over confed bgp qc pass: evpn/pbb over srv6 over confed bgp qc pass: evpn/cmac over srv6 over confed bgp qc pass: olab over srv6 over confed bgp qc pass: vpns over srv6 over bgp route server qc pass: evpn/pbb over srv6 over bgp route server qc pass: evpn/cmac over srv6 over bgp route server qc pass: olab over srv6 over bgp route server qc pass: vpns over srv6 over bgp with soft-reconfig qc pass: evpn/pbb over srv6 over bgp with soft-reconfig qc pass: evpn/cmac over srv6 over bgp with soft-reconfig qc pass: olab over srv6 over bgp with soft-reconfig qc pass: vpns over srv6 over bgp additional path qc pass: evpn/pbb over srv6 over bgp additional path qc pass: evpn/cmac over srv6 over bgp additional path qc pass: olab over srv6 over bgp additional path qc pass: evpn/vpws over ebgp qc pass: evpn/vpws over ibgp qc pass: evpn/vpws over bgp additional path qc pass: evpn/vpws over ibgp rr qc pass: evpn/vpws over confed bgp qc pass: evpn/vpws over bgp route server qc pass: ethersite evpn/vpws over ibgp qc pass: evpn/vpws over bgp with soft-reconfig qc pass: unicast+evpn/vpws over bgp qc pass: unicast+evpn/vpws over bgp with soft-reconfig qc pass: unicast+evpn/vpws over bgp additional path qc pass: evpn/vpws over bgp auto mesh tunnel qc pass: evpn/vpws over srv6 over ibgp qc pass: evpn/vpws over srv6 over ebgp qc pass: evpn/vpws over srv6 over ibgp rr qc pass: evpn/vpws over srv6 over confed bgp qc pass: evpn/vpws over srv6 over bgp route server qc pass: evpn/vpws over srv6 over bgp with soft-reconfig qc pass: evpn/vpws over srv6 over bgp additional path qc pass: unified mpls with ldp qc pass: unified mpls with sr qc pass: ebgp with php labels qc pass: ibgp with php labels qc pass: bgp additional path with php labels qc pass: ibgp rr with labels qc pass: confed bgp with labels qc pass: bgp route server with labels qc pass: bgp soft-reconfig with labels qc pass: bgp remove private as in with routemap qc pass: bgp remove private as out with routemap qc pass: bgp remove private as in with routepolicy qc pass: bgp remove private as out with routepolicy qc pass: bgp with srgb sr qc pass: bgp over point2point ethernet qc pass: bgp ecmp connection qc pass: bgp routemap filtering with peer asn qc pass: bgp routepolicy filtering with peer asn qc pass: bgp routemap filtering with peer asn with soft-reconfig qc pass: bgp routepolicy filtering with peer asn with soft-reconfig qc pass: bgp routemap filtering with peer standard community qc pass: bgp routepolicy filtering with peer standard community qc pass: bgp routemap filtering with peer standard community with soft-reconfig qc pass: bgp routepolicy filtering with peer standard community with soft-reconfig qc pass: bgp routemap filtering with peer large community qc pass: bgp routepolicy filtering with peer large community qc pass: bgp routemap filtering with peer large community with soft-reconfig qc pass: bgp routepolicy filtering with peer large community with soft-reconfig qc pass: unicast+linkstate over bgp qc pass: unicast+linkstate over bgp with soft-reconfig qc pass: unicast+linkstate over bgp with additional path qc pass: unicast+ouni over ebgp qc pass: unicast+ouni over bgp with soft-reconfig qc pass: unicast+ouni over bgp with additional path qc pass: unicast+ouni over ibgp qc pass: unicast+ouni over ibgp rr qc pass: unicast+ouni over confed bgp qc pass: unicast+ouni over bgp route server qc pass: unicast+omul over bgp qc pass: unicast+omul over bgp with soft-reconfig qc pass: unicast+omul over bgp with additional path qc pass: unicast+oflw over bgp qc pass: unicast+oflw over bgp with soft-reconfig qc pass: unicast+oflw over bgp with additional path qc pass: unicast+osrt over bgp qc pass: unicast+osrt over bgp with soft-reconfig qc pass: unicast+osrt over bgp with additional path qc pass: ouni bgp ingress route filtering with prefixlist qc pass: ouni bgp egress route filtering with prefixlist qc pass: ouni bgp ingress route filtering with routemap qc pass: ouni bgp egress route filtering with routemap qc pass: ouni bgp ingress route filtering with prefixlist with soft-reconfig qc pass: ouni bgp egress route filtering with prefixlist with soft-reconfig qc pass: ouni bgp ingress route filtering with routemap with soft-reconfig qc pass: ouni bgp egress route filtering with routemap with soft-reconfig qc pass: ouni bgp ingress route filtering with routepolicy qc pass: ouni bgp egress route filtering with routepolicy qc pass: ouni bgp ingress route filtering with routepolicy with soft-reconfig qc pass: ouni bgp egress route filtering with routepolicy with soft-reconfig qc pass: ouni bgp default route qc pass: vpns with default route qc pass: olab bgp default route qc pass: othervpns with default route qc pass: vpns ingress route filtering with routemap qc pass: vpns egress route filtering with routemap qc pass: vpns ingress route filtering with routemap with soft-reconfig qc pass: vpns egress route filtering with routemap with soft-reconfig qc pass: vpns ingress route filtering with routepolicy qc pass: vpns egress route filtering with routepolicy qc pass: vpns ingress route filtering with routepolicy with soft-reconfig qc pass: vpns egress route filtering with routepolicy with soft-reconfig qc pass: othervpns ingress route filtering with routemap qc pass: othervpns egress route filtering with routemap qc pass: othervpns ingress route filtering with routemap with soft-reconfig qc pass: othervpns egress route filtering with routemap with soft-reconfig qc pass: othervpns ingress route filtering with routepolicy qc pass: othervpns egress route filtering with routepolicy qc pass: othervpns ingress route filtering with routepolicy with soft-reconfig qc pass: othervpns egress route filtering with routepolicy with soft-reconfig qc pass: labels bgp ingress route filtering with prefixlist qc pass: labels bgp egress route filtering with prefixlist qc pass: labels bgp ingress route filtering with routemap qc pass: labels bgp ingress route filtering with routemap qc pass: labels bgp egress route filtering with routemap qc pass: labels bgp ingress route filtering with prefixlist with soft-reconfig qc pass: labels bgp egress route filtering with prefixlist with soft-reconfig qc pass: labels bgp ingress route filtering with routemap with soft-reconfig qc pass: labels bgp egress route filtering with routemap with soft-reconfig qc pass: labels bgp ingress route filtering with routepolicy qc pass: labels bgp egress route filtering with routepolicy qc pass: labels bgp ingress route filtering with routepolicy with soft-reconfig qc pass: labels bgp egress route filtering with routepolicy with soft-reconfig qc pass: labels bgp default route qc pass: olab bgp ingress route filtering with prefixlist qc pass: olab bgp egress route filtering with prefixlist qc pass: olab bgp ingress route filtering with routemap qc pass: olab bgp ingress route filtering with routemap qc pass: olab bgp egress route filtering with routemap qc pass: olab bgp ingress route filtering with prefixlist with soft-reconfig qc pass: olab bgp egress route filtering with prefixlist with soft-reconfig qc pass: olab bgp ingress route filtering with routemap with soft-reconfig qc pass: olab bgp egress route filtering with routemap with soft-reconfig qc pass: olab bgp ingress route filtering with routepolicy qc pass: olab bgp egress route filtering with routepolicy qc pass: olab bgp ingress route filtering with routepolicy with soft-reconfig qc pass: olab bgp egress route filtering with routepolicy with soft-reconfig qc pass: labels bgp aggregation qc pass: olab bgp aggregation qc pass: ouni bgp aggregation qc pass: bgp vpns aggregation qc pass: bgp othervpns aggregation qc pass: eigrp point2point connection qc pass: eigrp point2multipoint connection qc pass: eigrp point2point chain qc pass: eigrp ingress delay qc pass: eigrp egress delay qc pass: eigrp address suppression qc pass: eigrp ingress route filtering with prefixlist qc pass: eigrp egress route filtering with prefixlist qc pass: eigrp ingress route filtering with routemap qc pass: eigrp egress route filtering with routemap qc pass: eigrp ingress route filtering with routepolicy qc pass: eigrp egress route filtering with routepolicy qc pass: eigrp default route qc pass: eigrp with bfd qc pass: eigrp peer template qc pass: eigrp prefix withdraw qc pass: eigrp aggregation qc pass: eigrp auto mesh tunnel qc pass: eigrp stub qc pass: eigrp triangle connection qc pass: eigrp autoroute qc pass: eigrp over point2point ethernet qc pass: eigrp ecmp connection qc pass: isis over ethernet qc pass: isis over ethernet vlan qc pass: isis over ethernet bridge qc pass: isis over hdlc qc pass: isis over ppp qc pass: isis over framerelay qc pass: isis over atmdxi qc pass: isis over gre qc pass: isis narrow metric qc pass: isis overload qc pass: isis attached qc pass: isis chain of broadcast nets qc pass: isis broadcast subnet qc pass: isis updown bit qc pass: isis updown bit with narrow metric qc pass: isis address suppression qc pass: isis inter-level routes qc pass: isis authentication qc pass: isis intra level metric qc pass: isis external metric qc pass: isis external narrow metric qc pass: isis external metric vs intra level metric qc pass: isis inter level ingress filtering with prefixlist qc pass: isis inter level egress filtering with prefixlist qc pass: isis inter level ingress filtering with routemap qc pass: isis inter level egress filtering with routemap qc pass: isis inter level ingress filtering with routepolicy qc pass: isis inter level egress filtering with routepolicy qc pass: isis default route qc pass: isis with bfd qc pass: isis with te qc pass: isis peer template qc pass: isis chain of broadcast nets with narrow metric qc pass: isis broadcast subnet with narrow metric qc pass: isis multi-topology qc pass: isis updown bit with multi-topology qc pass: isis external multi-topology qc pass: isis multi-topology with te qc pass: isis chain of broadcast nets with multi-topology qc pass: isis broadcast subnet with multi-topology qc pass: isis with sr qc pass: isis inter-level with sr qc pass: isis multi-topology with sr qc pass: isis prefix withdraw qc pass: isis change in metric qc pass: isis aggregate qc pass: isis auto mesh tunnel qc pass: isis triangle connection qc pass: isis prefix movement qc pass: isis with bier qc pass: isis inter-level with bier qc pass: isis multi-topology with bier qc pass: isis autoroute qc pass: isis lsp authentication qc pass: isis change in tag qc pass: isis multi-topology change in tag qc pass: isis with php sr qc pass: isis with srgb sr qc pass: isis over point2point ethernet qc pass: isis with bidir check qc pass: isis narrow metric with bidir check qc pass: isis chain of broadcast nets with bidir check qc pass: isis multi-topology with bidir check qc pass: isis ecmp connection qc pass: isis with bgp linkstate qc pass: integrated isis over ethernet qc pass: integrated isis over hdlc qc pass: integrated isis over gre qc pass: integrated isis narrow metric qc pass: integrated isis attached qc pass: integrated isis chain of broadcast nets qc pass: integrated isis broadcast subnet qc pass: integrated isis address suppression qc pass: integrated isis inter-level routes qc pass: integrated isis inter level ingress filtering with prefixlist qc pass: integrated isis inter level egress filtering with prefixlist qc pass: integrated isis inter level ingress filtering with routemap qc pass: integrated isis inter level egress filtering with routemap qc pass: integrated isis inter level ingress filtering with routepolicy qc pass: integrated isis inter level egress filtering with routepolicy qc pass: integrated isis default route qc pass: integrated isis multi-topology qc pass: integrated isis with sr qc pass: integrated isis inter-level with sr qc pass: integrated isis multi-topology with sr qc pass: integrated isis prefix withdraw qc pass: integrated isis change in metric qc pass: integrated isis aggregate qc pass: integrated isis prefix movement qc pass: integrated isis with bier qc pass: integrated isis inter-level with bier qc pass: integrated isis multi-topology with bier qc pass: integrated isis change in tag qc pass: integrated isis with php sr qc pass: integrated isis over point2point ethernet qc pass: integrated isis ecmp connection qc pass: asymmetric integrated isis qc pass: lsrp point2point connection qc pass: lsrp point2multipoint connection qc pass: lsrp point2point chain qc pass: lsrp metric qc pass: lsrp address suppression qc pass: lsrp route filtering with prefixlist qc pass: lsrp route filtering with routemap qc pass: lsrp route filtering with routepolicy qc pass: lsrp tag qc pass: lsrp default route qc pass: lsrp with bfd qc pass: lsrp authentication qc pass: lsrp ssh encryption qc pass: lsrp tls encryption qc pass: lsrp peer template qc pass: lsrp with sr qc pass: lsrp prefix withdraw qc pass: lsrp change in metric qc pass: lsrp change in tag qc pass: lsrp auto mesh tunnel qc pass: lsrp triangle connection qc pass: lsrp prefix movement qc pass: lsrp with bier qc pass: lsrp autoroute qc pass: lsrp stub node qc pass: lsrp stub interface qc pass: lsrp unstub interface qc pass: lsrp default address suppression qc pass: lsrp address unsuppression qc pass: lsrp with php sr qc pass: lsrp with srgb sr qc pass: lsrp over point2point ethernet qc pass: lsrp with selective sr qc pass: lsrp with selective bier qc pass: lsrp peer metric qc pass: lsrp point2point connection with bidir check qc pass: lsrp point2multipoint connection with bidir check qc pass: lsrp ecmp connection qc pass: lsrp with bgp linkstate qc pass: multicast routing with static flooding qc pass: multicast routing with pim ssm qc pass: multicast routing with igmp/mld qc pass: multicast routing with mldp qc pass: multicast between pim and mldp qc pass: multicast vpn routing with mldp qc pass: multicast vpn between pim and mldp qc pass: multicast othervpn routing with mldp qc pass: multicast othervpn between pim and mldp qc pass: multicast routing ttl treshold qc pass: multicast routing decoupled from unicast qc pass: multicast routing with pim join source qc pass: multicast routing with pim over bier qc pass: multicast between pim and pim over bier qc pass: multicast routing with pim snooping qc pass: multicast routing with igmp/mld snooping qc pass: olsr on one subnet qc pass: olsr in chain qc pass: olsr ingress route filtering with prefixlist qc pass: olsr egress route filtering with prefixlist qc pass: olsr ingress route filtering with routemap qc pass: olsr egress route filtering with routemap qc pass: olsr ingress route filtering with routepolicy qc pass: olsr egress route filtering with routepolicy qc pass: olsr max metric qc pass: olsr address suppression qc pass: olsr default route qc pass: olsr incoming interface metric qc pass: olsr outgoing interface metric qc pass: olsr incoming metric with routemap qc pass: olsr outgoing metric with routemap qc pass: olsr incoming metric with routepolicy qc pass: olsr outgoing metric with routepolicy qc pass: olsr with bfd qc pass: olsr peer template qc pass: olsr prefix withdraw qc pass: olsr aggregation qc pass: olsr auto mesh tunnel qc pass: olsr triangle connection qc pass: olsr autoroute qc pass: olsr over point2point ethernet qc pass: olsr ecmp connection qc pass: ospf point2point connection qc pass: ospf point2multipoint connection qc pass: ospf point2multipoint nonbroadcast connection qc pass: ospf broadcast connection qc pass: ospf nonbroadcast connection qc pass: ospf point2point chain qc pass: ospf broadcast chain qc pass: ospf stub area qc pass: ospf nssa area qc pass: ospf transit area qc pass: ospf intra area metric qc pass: ospf intra area vs inter area qc pass: ospf inter area vs external qc pass: ospf external1 vs external2 qc pass: ospf external1 metric qc pass: ospf external2 metric qc pass: ospf address suppression qc pass: ospf authentication qc pass: ospf inter area ingress filtering with prefixlist qc pass: ospf inter area ingress filtering with routemap qc pass: ospf inter area egress filtering with prefixlist qc pass: ospf inter area egress filtering with routemap qc pass: ospf inter area ingress filtering with routepolicy qc pass: ospf inter area egress filtering with routepolicy qc pass: ospf default route qc pass: ospf with bfd qc pass: ospf with te qc pass: ospf peer template qc pass: ospf with sr qc pass: ospf transit area with sr qc pass: ospf prefix withdraw qc pass: ospf change in metric qc pass: ospf change in tag qc pass: ospf aggregate qc pass: ospf auto mesh tunnel qc pass: ospf triangle connection qc pass: ospf prefix movement qc pass: ospf with bier qc pass: ospf transit area with bier qc pass: ospf autoroute qc pass: ospf with php sr qc pass: ospf with srgb sr qc pass: ospf over point2point ethernet qc pass: ospf multi area qc pass: ospf asymmetric multi area qc pass: ospf point2point chain with bidir check qc pass: ospf broadcast chain with bidir check qc pass: ospf ecmp connection qc pass: ospf with bgp linkstate qc pass: policy routing with nexthop qc pass: policy routing with interface and nexthop between vrfs qc pass: policy routing with interface and nexthop qc pass: policy routing between vrfs with routing qc pass: policy routing with nexthop on interface qc pass: policy routing with nexthop on interface between vrfs qc pass: pvrp point2point connection qc pass: pvrp point2multipoint connection qc pass: pvrp point2point chain qc pass: pvrp incoming interface metric qc pass: pvrp outgoing interface metric qc pass: pvrp incoming routemap metric qc pass: pvrp outgoing routemap metric qc pass: pvrp incoming routepolicy metric qc pass: pvrp outgoing routepolicy metric qc pass: pvrp address suppression qc pass: pvrp ingress route filtering with prefixlist qc pass: pvrp egress route filtering with prefixlist qc pass: pvrp ingress route filtering with routemap qc pass: pvrp egress route filtering with routemap qc pass: pvrp ingress route filtering with routepolicy qc pass: pvrp egress route filtering with routepolicy qc pass: pvrp tag qc pass: pvrp default route qc pass: pvrp with bfd qc pass: pvrp authentication qc pass: pvrp ssh encryption qc pass: pvrp tls encryption qc pass: pvrp peer template qc pass: pvrp with labels qc pass: pvrp prefix withdraw qc pass: pvrp aggregation qc pass: pvrp auto mesh tunnel qc pass: pvrp triangle connection qc pass: pvrp prefix movement qc pass: pvrp autoroute qc pass: pvrp default address suppression qc pass: pvrp address unsuppression qc pass: pvrp with php labels qc pass: ingress label filtering with pvrp qc pass: egress label filtering with pvrp qc pass: pvrp stub node qc pass: pvrp stub interface qc pass: pvrp unstub interface qc pass: pvrp over point2point ethernet qc pass: pvrp peer metric qc pass: pvrp ecmp connection qc pass: redistribution with isis qc pass: redistribution with ospf qc pass: redistribution with rip qc pass: redistribution with bgp qc pass: redistribution with bgp vpn qc pass: redistribution with bgp othervpn qc pass: redistribution with pvrp qc pass: redistribution with eigrp qc pass: redistribution with babel qc pass: redistribution with olsr qc pass: redistribution with lsrp qc pass: redistribution filtering with prefixlist qc pass: redistribution filtering with routemap qc pass: redistribution filtering with hierarchical routemap qc pass: redistribution filtering with routepolicy qc pass: redistribution filtering with hierarchical routepolicy qc pass: redistribution with prefixes qc pass: redistribution with everything qc pass: redistribution prefix withdraw qc pass: redistribution change in metric qc pass: redistribution prefix movement qc pass: redistribution with mobile qc pass: redistribution with deaggr qc pass: conditional redistribution with routemap qc pass: conditional redistribution with routepolicy qc pass: redistribution with interfaces qc pass: redistribution with metric qc pass: redistribution filtering with hierarchical prefixlist qc pass: redistribution with ouni bgp qc pass: redistribution with bgp labels qc pass: redistribution with olab bgp qc pass: rip on one subnet qc pass: rip in chain qc pass: rip ingress route filtering with prefixlist qc pass: rip egress route filtering with prefixlist qc pass: rip ingress route filtering with routemap qc pass: rip egress route filtering with routemap qc pass: rip ingress route filtering with routepolicy qc pass: rip egress route filtering with routepolicy qc pass: rip hop count qc pass: rip tag qc pass: rip address suppression qc pass: rip default route qc pass: rip authentication qc pass: rip incoming interface metric qc pass: rip outgoing interface metric qc pass: rip incoming routemap metric qc pass: rip outgoing routemap metric qc pass: rip incoming routepolicy metric qc pass: rip outgoing routepolicy metric qc pass: rip with bfd qc pass: rip peer template qc pass: rip prefix withdraw qc pass: rip aggregation qc pass: rip auto mesh tunnel qc pass: rip triangle connection qc pass: rip autoroute qc pass: rip over point2point ethernet qc pass: rip ecmp connection qc pass: static routing qc pass: static routing with distance qc pass: static routing with icmp tracker qc pass: static routing with tcp tracker qc pass: static routing with bfd tracker qc pass: static routing with labels qc pass: static routing with interface qc pass: static routing over point2point ethernet qc pass: recursive static routing qc pass: recursive static routing with labels qc pass: static routing with ecmp qc pass: authoritative dns server qc pass: recursive dns server qc pass: relaying dns server qc pass: dns64 server qc pass: dynamic tunnel destination qc pass: event manager qc pass: forwarder server qc pass: load balancer server qc pass: proxy server qc pass: radius server qc pass: scheduler qc pass: socks4 server qc pass: socks5 server qc pass: tacacs server qc pass: udp forwarder server todo: nat and pbr config to have reindex todo: chatscript and authlist to use tablisting and have reindex todo: http conditional redirect with route-map, prefix-list or route-policy todo: bridge security from dhcp, slaac, whatever server todo: lsrp, ospf, isis must list lsas/lsps as reachable or not todo: hwdet default to binary in installation, rework rtr.bin support to binjar if needed todo: interactive switch for traceroute to mimic mtr with class util.dampening, similar to mtr - display traceroute with the same parameters or so todo: http server should honor no in the beginning for host commands todo: http host upload optional different authentication todo: tls1.3 todo: terminal mode resolve todo: hostwatch to execute script on acl match todo: optimal route reflection todo: bgp vpns with sr-policy todo: temper: web access log todo: changelog converter for https://manpages.debian.org/testing/dpkg-dev/deb-changelog.5.en.html format with notodo lines todo: interface range command todo: reenable which elliptic courves? sure? why that? todo: https://tools.ietf.org/html/draft-ietf-tn3270e-telnet-tls-06 todo: parse privilege levels from tacacs todo: ldap client, server todo: trustpoint for certificates todo: vdc name tabbing todo: interface name tabbing todo: int eth1/int eth2 todo: dhcp relay support todo: tcp selective ack todo: xot, x75 switching todo: preallocate qos buffers todo: ilnp (rfc6740) todo: lisp4, lisp6 todo: l2vpn for isis todo: hip (rfc4423) todo: ttl handling follow the selected forwarder, reconfigurable if more todo: more show commands todo: more clear commands todo: more interactive tools todo: more features with clean implementation todo: x25 todo: default vrf for show commands ---------------------------------- 2021-02-13 11:47:31 no qc pass: pvrp tls encryption no qc pass: lsrp tls encryption no qc pass: ppp over tls failed: ppp over tls failed: lsrp tls encryption failed: pvrp tls encryption ---------------------------------- 2021-02-13 15:52:27 no failed: pvrp tls encryption no failed: lsrp tls encryption no failed: ppp over tls qc pass: ppp over tls qc pass: lsrp tls encryption qc pass: pvrp tls encryption ---------------------------------- 2021-02-13 16:21:36 no todo: reenable which elliptic courves? sure? why that? no todo: tls1.3 ---------------------------------- 2021-02-15 10:16:01 no qc pass: dtls test no qc pass: ppp with packet over dtls failed: ppp with packet over dtls failed: dtls test ---------------------------------- 2021-02-15 11:05:00 no failed: dtls test no failed: ppp with packet over dtls qc pass: ppp with packet over dtls qc pass: dtls test ---------------------------------- 2021-02-20 15:42:23 qc pass: interop9: isis bier qc pass: interop9: ospf bier ---------------------------------- 2021-03-08 07:38:52 todo: generate a test case from a config archive ---------------------------------- 2021-03-12 18:37:13 no todo: generate a test case from a config archive ---------------------------------- 2021-03-25 02:18:14 todo: secondary addresses todo: fhrp security ---------------------------------- 2021-03-25 02:27:29 todo: sho run this todo: nat log knob ---------------------------------- 2021-03-25 02:38:28 todo: virtual ip/mac icmp ---------------------------------- 2021-03-25 11:35:37 no todo: nat log knob todo: introduce int for sw/hw forwarders ---------------------------------- 2021-03-25 19:43:05 no todo: virtual ip/mac icmp no todo: secondary addresses qc pass: secondary addresses over ethernet qc pass: secondary addresses over dot1q vlan ---------------------------------- 2021-03-26 06:49:39 todo: p4 pipe demux to vdc ---------------------------------- 2021-03-26 15:18:18 no todo: fhrp security ---------------------------------- 2021-03-26 18:21:19 no todo: sho run this ---------------------------------- 2021-04-01 18:41:13 todo: test cases for route-map/policy clear things ---------------------------------- 2021-04-02 04:10:57 todo: shame texts in cmd.err todo: ---------------------------------- 2021-04-02 22:26:15 todo: disable-macsec command todo: dataplane says ---------------------------------- 2021-04-03 05:57:17 no todo: todo: remove from player favorites ---------------------------------- 2021-04-03 09:23:04 todo: serv bmp bugfix: last pack timer ---------------------------------- 2021-04-03 18:40:59 todo: client anycast-name-server todo: aaa randomizer ---------------------------------- 2021-04-03 20:17:00 no todo: aaa randomizer todo: more randomizers ---------------------------------- 2021-04-03 21:48:29 todo: max heat interval to temper ---------------------------------- 2021-04-04 08:51:15 todo: exec monitor todo: hwcfg auto-stop process todo: average of the non-discards to temper todo: tolerance up/down to temper todo: trackmap img--stat swap todo: secondary config archive ---------------------------------- 2021-04-04 09:42:12 todo: last but one: rare team should hire a mathy girly thingy who barely speak hungarian and fluent in written english ---------------------------------- 2021-04-04 10:01:31 no todo: last but one: rare team should hire a mathy girly thingy who barely speak hungarian and fluent in written english todo: last but one: rare team should contract for some months a thing i call mathy-thingy-a-bit-oldshchool-c-coder-who-does-not-afraid-of-openjdk who is fluent in written english and speaks at conversation level, and does not afraid to say fuck a way too loudly and have a will to travel monthly or so ---------------------------------- 2021-04-04 10:47:57 todo: wg 3rd optional param todo: ask hbone team if they can host ns3.(net.)nop.hu which have a ro tacacs access from the regular places ---------------------------------- 2021-04-04 11:54:18 no todo: last but one: rare team should contract for some months a thing i call mathy-thingy-a-bit-oldshchool-c-coder-who-does-not-afraid-of-openjdk who is fluent in written english and speaks at conversation level, and does not afraid to say fuck a way too loudly and have a will to travel monthly or so todo: lsrp/pvrp to have hello distance measurement, reread bfd rfc to see if possible todo: consider bgp neigh recursive-nexthop knob with proper limiters todo: last but one: rare team should contract for some months a thing i call mathy-thingy-a-bit-oldshchool-c-coder-who-does-not-afraid-of-openjdk who is fluent in written english and speaks at conversation level, and does not afraid to "you're way too stpuy" a way too loudly and have a will to travel monthly or so ---------------------------------- 2021-04-04 12:01:59 no todo: last but one: rare team should contract for some months a thing i call mathy-thingy-a-bit-oldshchool-c-coder-who-does-not-afraid-of-openjdk who is fluent in written english and speaks at conversation level, and does not afraid to "you're way too stpuy" a way too loudly and have a will to travel monthly or so todo: last but one: rare team should contract for some months a thing i call mathy-thingy-a-bit-oldshchool-c-coder-who-does-not-afraid-of-openjdk who is fluent in written english and speaks at conversation level, and does not afraid to "you're way too stpuy" a way too loudly and have a will to travel monthly or so... hopefully both of us will survive :) ---------------------------------- 2021-04-05 06:30:24 no todo: more randomizers todo: refresh button to temper todo: backup interface todo: sho log file todo: sho log old-file todo: more randomizers, arp, prefix, everything :) ---------------------------------- 2021-04-05 10:14:52 todo: bug: * diff/old/new time: 00:48:03/2021-04-05 11:20:19/2021-04-05 12:08:23 ---------------------------------- 2021-04-06 04:50:08 no todo: bug: * diff/old/new time: 00:48:03/2021-04-05 11:20:19/2021-04-05 12:08:23 ---------------------------------- 2021-04-06 08:01:16 todo: loopdetect for bridge ---------------------------------- 2021-08-12 14:09:23 todo: show logins ---------------------------------- 2021-08-12 17:03:13 no todo: disable-macsec command ---------------------------------- 2021-08-13 05:28:09 no todo: dataplane says no todo: exec monitor ---------------------------------- 2021-08-13 05:55:07 no todo: serv bmp bugfix: last pack timer ---------------------------------- 2021-08-13 11:43:52 no todo: secondary config archive no todo: trackmap img--stat swap no todo: sho log old-file no todo: sho log file no todo: backup interface no todo: average of the non-discards to temper no todo: client anycast-name-server no todo: hwcfg auto-stop process no todo: show logins ---------------------------------- 2021-08-13 14:29:46 no todo: p4 pipe demux to vdc ---------------------------------- 2021-08-15 07:29:46 no todo: http conditional redirect with route-map, prefix-list or route-policy no todo: introduce int for sw/hw forwarders no todo: lsrp/pvrp to have hello distance measurement, reread bfd rfc to see if possible no todo: remove from player favorites no todo: refresh button to temper no todo: tolerance up/down to temper no todo: max heat interval to temper todo: lsrp/pvrp to have hello distance measurement ---------------------------------- 2021-08-15 08:56:49 no todo: lsrp/pvrp to have hello distance measurement ---------------------------------- 2021-08-15 10:14:00 no todo: loopdetect for bridge ---------------------------------- 2021-08-17 03:28:59 no todo: test cases for route-map/policy clear things qc pass: bgp routemap clearing with standard community qc pass: bgp routemap filtering with extended community qc pass: bgp routemap filtering with large community qc pass: bgp routepolicy clearing with standard community qc pass: bgp routepolicy filtering with extended community qc pass: bgp routepolicy filtering with large community ---------------------------------- 2021-08-17 03:42:25 no todo: ask hbone team if they can host ns3.(net.)nop.hu which have a ro tacacs access from the regular places qc pass: bgp routemap clearing with aspath qc pass: bgp routepolicy clearing with aspath ---------------------------------- 2021-08-20 09:47:11 no todo: hwdet default to binary in installation, rework rtr.bin support to binjar if needed ---------------------------------- 2021-08-30 15:10:38 qc pass: amt over ipv4 qc pass: amt over ipv6 qc pass: amt over amt qc pass: amt over loopback ---------------------------------- 2021-09-15 06:13:57 no qc pass: bgp routepolicy filtering with large community no qc pass: bgp routepolicy filtering with extended community no qc pass: bgp routemap filtering with large community no qc pass: bgp routemap filtering with extended community qc pass: bgp routemap clearing with extended community qc pass: bgp routemap clearing with large community qc pass: bgp routepolicy clearing with extended community qc pass: bgp routepolicy clearing with large community ---------------------------------- 2021-09-17 18:20:03 qc pass: no macsec over ethernet qc pass: lsrp no authentication qc pass: lsrp database authentication qc pass: pvrp no authentication ---------------------------------- 2021-09-21 18:54:35 qc pass: ppp over forti ---------------------------------- 2021-09-22 22:07:43 qc pass: bgp autoroute ---------------------------------- 2021-10-02 10:46:09 qc pass: p4lang: amt server over ipv4 qc pass: p4lang: amt server over ipv6 qc pass: p4lang: amt server over ipv4 loopback qc pass: p4lang: amt server over ipv6 loopback ---------------------------------- 2021-10-05 17:09:12 qc pass: ingress flow matching access list qc pass: egress flow matching access list qc pass: ingress flow matching common access list qc pass: egress flow matching common access list qc pass: ingress flow matching hierarchical access list qc pass: egress flow matching hierarchical access list qc pass: qos ingress flow matcher qc pass: qos egress flow matcher qc pass: qos ingress flow set qc pass: qos egress flow set ---------------------------------- 2021-10-07 06:16:48 todo: bgp peer autoconfig todo: bgp strict bfd mode todo: bgp roles in update and open todo: bgp extended open ---------------------------------- 2021-10-07 18:38:59 no todo: bgp extended open ---------------------------------- 2021-10-07 19:21:31 qc pass: bgp extended open qc pass: bgp extended update ---------------------------------- 2021-10-08 04:19:33 qc pass: bgp multiple labels qc pass: bgp graceful restart qc pass: bgp extended nexthop ---------------------------------- 2021-10-08 08:51:58 no todo: bgp roles in update and open qc pass: bgp leak prevention with customer provider qc pass: bgp leak prevention with route server qc pass: bgp leak prevention with peer ---------------------------------- 2021-10-09 03:46:50 qc pass: p4lang: ingress amt access list qc pass: p4lang: egress amt access list ---------------------------------- 2021-10-11 03:38:42 no todo: last but one: rare team should contract for some months a thing i call mathy-thingy-a-bit-oldshchool-c-coder-who-does-not-afraid-of-openjdk who is fluent in written english and speaks at conversation level, and does not afraid to "you're way too stpuy" a way too loudly and have a will to travel monthly or so... hopefully both of us will survive :) no todo: wg 3rd optional param no todo: more randomizers, arp, prefix, everything :) no todo: https://tools.ietf.org/html/draft-ietf-tn3270e-telnet-tls-06 no todo: changelog converter for https://manpages.debian.org/testing/dpkg-dev/deb-changelog.5.en.html format with notodo lines todo: telnet tls mode todo: more randomizers ---------------------------------- 2021-10-12 03:44:33 qc pass: lsrp with strict bfd qc pass: pvrp with strict bfd ---------------------------------- 2021-10-12 15:24:42 no todo: http server should honor no in the beginning for host commands ---------------------------------- 2021-10-12 15:40:57 no todo: lsrp, ospf, isis must list lsas/lsps as reachable or not ---------------------------------- 2021-10-12 16:39:43 no todo: chatscript and authlist to use tablisting and have reindex ---------------------------------- 2021-10-20 06:22:40 qc pass: p4lang: autoroute to sr te over mpls qc pass: p4lang: autoroute to p2p te over mpls qc pass: p4lang: policy routing to sr te over mpls qc pass: p4lang: policy routing to p2p te over mpls ---------------------------------- 2021-10-22 08:50:09 no todo: telnet tls mode no todo: optimal route reflection todo: bgp optimal route reflection todo: bgp signed path ---------------------------------- 2021-10-24 05:20:22 todo: bgp nsh sfc ---------------------------------- 2021-10-24 05:35:31 todo: rift4, rift6 ---------------------------------- 2021-10-24 07:08:22 qc pass: qos ingress pps action qc pass: qos egress pps action qc pass: qos ingress pps copp qc pass: qos egress pps copp qc pass: qos pps dapp ---------------------------------- 2021-10-24 13:37:49 qc pass: unicast+nsh over bgp qc pass: unicast+nsh over bgp with soft-reconfig qc pass: unicast+nsh over bgp with additional path ---------------------------------- 2021-10-24 13:58:36 no todo: bgp nsh sfc no todo: bgp vpns with sr-policy todo: traffic through bgp sr-policy todo: traffic through bgp nsh ---------------------------------- 2021-10-25 06:07:08 qc pass: p4lang: nsh qc pass: p4lang: vlan nsh ---------------------------------- 2021-10-26 04:48:37 todo: bgp layer2 flowspec ---------------------------------- 2021-10-27 20:26:55 qc pass: polka over ethernet qc pass: polka over ethernet vlan qc pass: polka over ethernet bridge qc pass: polka over hdlc qc pass: polka over ppp qc pass: polka over framerelay qc pass: polka over atmdxi qc pass: polka over gre qc pass: polka over broadcast subnet qc pass: polka over ethernet chain qc pass: bgp with polka qc pass: isis with polka qc pass: lsrp with polka qc pass: ospf with polka ---------------------------------- 2021-10-28 05:08:40 qc pass: pwe over polka qc pass: bgp vpns over polka ---------------------------------- 2021-10-28 11:04:49 qc pass: p4lang: polka qc pass: p4lang: vlan polka ---------------------------------- 2021-11-06 08:26:03 no todo: consider bgp neigh recursive-nexthop knob with proper limiters qc pass: bgp without recursion qc pass: bgp with recursion ---------------------------------- 2021-11-08 04:21:51 no todo: interactive switch for traceroute to mimic mtr with class util.dampening, similar to mtr - display traceroute with the same parameters or so ---------------------------------- 2021-11-08 10:43:58 qc pass: bgp with route flap dampening ---------------------------------- 2021-11-08 16:39:31 qc pass: isis default address suppression qc pass: integrated isis default address suppression qc pass: isis address unsuppression qc pass: integrated isis address unsuppression qc pass: ospf default address suppression qc pass: ospf address unsuppression ---------------------------------- 2021-11-08 18:16:21 qc pass: babel default address suppression qc pass: babel address unsuppression qc pass: eigrp default address suppression qc pass: eigrp address unsuppression qc pass: olsr default address suppression qc pass: olsr address unsuppression qc pass: rip default address suppression qc pass: rip address unsuppression ---------------------------------- 2021-11-09 09:49:46 no todo: ttl handling follow the selected forwarder, reconfigurable if more no todo: interface name tabbing no todo: vdc name tabbing no todo: interface range command no todo: temper: web access log no todo: terminal mode resolve no todo: http host upload optional different authentication todo: name tabbing ---------------------------------- 2021-11-09 10:32:58 no todo: hostwatch to execute script on acl match ---------------------------------- 2021-11-10 08:40:06 qc pass: ospf maximum metric ---------------------------------- 2021-11-13 12:01:04 no todo: int eth1/int eth2 no todo: name tabbing ---------------------------------- 2021-11-14 04:54:30 no todo: preallocate qos buffers ---------------------------------- 2021-11-20 07:25:54 qc pass: static bmp peer qc pass: dynamic bmp peer ---------------------------------- 2021-11-26 06:14:57 qc pass: capwap over ipv4 qc pass: capwap over ipv6 qc pass: capwap over loopback qc pass: hdlc tunneling with capwap qc pass: ppp tunneling with capwap qc pass: lapb tunneling with capwap qc pass: framerelay tunneling with capwap qc pass: atmdxi tunneling with capwap qc pass: isdn tunneling with capwap qc pass: sep tunneling with capwap qc pass: ethernet tunneling with capwap qc pass: vlan tunneling with capwap qc pass: tunnel interface with capwap qc pass: lwapp over ipv4 qc pass: lwapp over ipv6 qc pass: lwapp over loopback qc pass: hdlc tunneling with lwapp qc pass: ppp tunneling with lwapp qc pass: lapb tunneling with lwapp qc pass: framerelay tunneling with lwapp qc pass: atmdxi tunneling with lwapp qc pass: isdn tunneling with lwapp qc pass: sep tunneling with lwapp qc pass: ethernet tunneling with lwapp qc pass: vlan tunneling with lwapp qc pass: tunnel interface with lwapp ---------------------------------- 2021-12-02 18:44:59 no qc pass: ospf authentication no qc pass: interop8: ospf authentication no qc pass: interop2: ospf authentication no qc pass: interop1: ospf authentication qc pass: interop1: ospf text authentication qc pass: interop1: ospf md5 authentication qc pass: interop2: ospf text authentication qc pass: interop2: ospf md5 authentication qc pass: interop8: ospf text authentication qc pass: interop8: ospf md5 authentication qc pass: ospf text authentication qc pass: ospf md5 authentication ---------------------------------- 2021-12-03 11:05:40 no qc pass: isis lsp authentication no qc pass: isis authentication no qc pass: interop9: isis lsp authentication no qc pass: interop8: isis authentication no qc pass: interop2: isis lsp authentication no qc pass: interop2: isis authentication no qc pass: interop1: isis lsp authentication no qc pass: interop1: isis authentication qc pass: interop1: isis text authentication qc pass: interop1: isis lsp text authentication qc pass: interop1: isis md5 authentication qc pass: interop1: isis lsp md5 authentication qc pass: interop2: isis text authentication qc pass: interop2: isis lsp text authentication qc pass: interop2: isis text authentication qc pass: interop2: isis lsp text authentication qc pass: interop8: isis text authentication qc pass: interop9: isis lsp text authentication qc pass: isis text authentication qc pass: isis lsp text authentication qc pass: isis md5 authentication qc pass: isis lsp md5 authentication ---------------------------------- 2021-12-03 12:35:57 no qc pass: interop2: isis lsp text authentication no qc pass: interop2: isis text authentication qc pass: interop2: isis md5 authentication qc pass: interop2: isis lsp md5 authentication qc pass: interop9: isis lsp md5 authentication qc pass: interop9: isis text authentication qc pass: interop9: isis md5 authentication ---------------------------------- 2021-12-03 13:33:35 qc pass: interop8: isis lsp text authentication qc pass: interop8: isis lsp md5 authentication qc pass: interop8: isis text authentication qc pass: interop8: isis md5 authentication qc pass: interop9: ospf text authentication qc pass: interop9: ospf md5 authentication ---------------------------------- 2021-12-03 16:29:47 qc pass: hdlc ---------------------------------- 2021-12-03 17:29:16 qc pass: fragmentation and reassembly qc pass: no fragmentation nor reassembly ---------------------------------- 2021-12-05 06:37:53 qc pass: interop1: fragmentation and reassembly qc pass: interop2: fragmentation and reassembly qc pass: interop8: fragmentation and reassembly qc pass: interop9: fragmentation and reassembly ---------------------------------- 2021-12-05 07:02:17 no qc pass: olab bgp ingress route filtering with routemap no qc pass: labels bgp ingress route filtering with routemap no qc pass: interop8: isis text authentication qc pass: precise mtu enforcement ---------------------------------- 2021-12-05 08:55:38 no todo: shame texts in cmd.err ---------------------------------- 2021-12-06 09:25:02 qc pass: p4lang: replay window with openvpn qc pass: p4lang: replay window with wireguard ---------------------------------- 2021-12-07 07:42:31 qc pass: lsrp dynamic metric qc pass: pvrp dynamic metric ---------------------------------- 2021-12-08 16:40:08 no qc pass: pvrp dynamic metric no qc pass: lsrp dynamic metric qc pass: lsrp dynamic inband metric qc pass: lsrp dynamic icmp metric qc pass: lsrp dynamic udp metric qc pass: lsrp dynamic twamp metric qc pass: pvrp dynamic inband metric qc pass: pvrp dynamic icmp metric qc pass: pvrp dynamic udp metric qc pass: pvrp dynamic twamp metric ---------------------------------- 2021-12-09 10:45:49 qc pass: isis dynamic icmp metric qc pass: isis dynamic udp metric qc pass: isis dynamic twamp metric qc pass: ospf dynamic icmp cost qc pass: ospf dynamic udp cost qc pass: ospf dynamic twamp cost ---------------------------------- 2021-12-21 21:13:40 qc pass: monitor session over tunnel qc pass: monitor session over pwhe ---------------------------------- 2021-12-21 21:27:35 qc pass: ingress mask matching access list qc pass: egress mask matching access list ---------------------------------- 2022-01-10 14:14:43 qc pass: vrf route limit ---------------------------------- 2022-01-12 09:09:57 qc pass: static routing with udp tracker qc pass: static routing with twamp tracker qc pass: static routing with interface tracker qc pass: static routing with prefix tracker qc pass: static routing with other tracker qc pass: static routing with check tracker qc pass: static routing with nrpe tracker ---------------------------------- 2022-01-15 09:53:32 no qc pass: p4lang: openvpn with aes256 no qc pass: p4lang: openvpn with aes192 no qc pass: p4lang: openvpn with aes128 no qc pass: p4lang: ipsec with aes256 no qc pass: p4lang: ipsec with aes192 no qc pass: p4lang: ipsec with aes128 no qc pass: p4lang: macsec with aes256 no qc pass: p4lang: macsec with aes192 no qc pass: p4lang: macsec with aes128 no qc pass: interop1: ike2 with aes256 no qc pass: interop1: ike2 with aes192 no qc pass: interop1: ike2 with aes128 no qc pass: interop1: ike1 with aes256 no qc pass: interop1: ike1 with aes192 no qc pass: interop1: ike1 with aes128 no qc pass: swipe with aes256 no qc pass: swipe with aes192 no qc pass: swipe with aes128 no qc pass: skip with aes256 no qc pass: skip with aes192 no qc pass: skip with aes128 no qc pass: satp with aes256 no qc pass: satp with aes192 no qc pass: satp with aes128 no qc pass: openvpn with aes256 no qc pass: openvpn with aes192 no qc pass: openvpn with aes128 no qc pass: macsec with aes256 no qc pass: macsec with aes192 no qc pass: macsec with aes128 no qc pass: inlsp with aes256 no qc pass: inlsp with aes192 no qc pass: inlsp with aes128 no qc pass: ike2 with aes256 no qc pass: ike2 with aes192 no qc pass: ike2 with aes128 no qc pass: ike1 with aes256 no qc pass: ike1 with aes192 no qc pass: ike1 with aes128 qc pass: ike1 with aes128cbc qc pass: ike1 with aes192cbc qc pass: ike1 with aes256cbc qc pass: ike2 with aes128cbc qc pass: ike2 with aes192cbc qc pass: ike2 with aes256cbc qc pass: inlsp with aes128cbc qc pass: inlsp with aes192cbc qc pass: inlsp with aes256cbc qc pass: macsec with aes128cbc qc pass: macsec with aes192cbc qc pass: macsec with aes256cbc qc pass: openvpn with aes128cbc qc pass: openvpn with aes192cbc qc pass: openvpn with aes256cbc qc pass: satp with aes128cbc qc pass: satp with aes192cbc qc pass: satp with aes256cbc qc pass: skip with aes128cbc qc pass: skip with aes192cbc qc pass: skip with aes256cbc qc pass: swipe with aes128cbc qc pass: swipe with aes192cbc qc pass: swipe with aes256cbc qc pass: interop1: ike1 with aes128cbc qc pass: interop1: ike1 with aes192cbc qc pass: interop1: ike1 with aes256cbc qc pass: interop1: ike2 with aes128cbc qc pass: interop1: ike2 with aes192cbc qc pass: interop1: ike2 with aes256cbc qc pass: p4lang: macsec with aes128cbc qc pass: p4lang: macsec with aes192cbc qc pass: p4lang: macsec with aes256cbc qc pass: p4lang: ipsec with aes128cbc qc pass: p4lang: ipsec with aes192cbc qc pass: p4lang: ipsec with aes256cbc qc pass: p4lang: openvpn with aes128cbc qc pass: p4lang: openvpn with aes192cbc qc pass: p4lang: openvpn with aes256cbc ---------------------------------- 2022-01-15 13:26:55 qc pass: inlsp with aes128cfb qc pass: inlsp with aes192cfb qc pass: inlsp with aes256cfb qc pass: inlsp with aes128ecb qc pass: inlsp with aes192ecb qc pass: inlsp with aes256ecb qc pass: inlsp with aes128gcm qc pass: inlsp with aes192gcm qc pass: inlsp with aes256gcm qc pass: inlsp with sha224 qc pass: inlsp with sha384 qc pass: inlsp with sha3224 qc pass: inlsp with sha3256 qc pass: inlsp with sha3384 qc pass: inlsp with sha3512 ---------------------------------- 2022-01-15 13:34:30 qc pass: openvpn with aes128cfb qc pass: openvpn with aes192cfb qc pass: openvpn with aes256cfb qc pass: openvpn with aes128ecb qc pass: openvpn with aes192ecb qc pass: openvpn with aes256ecb qc pass: openvpn with aes128gcm qc pass: openvpn with aes192gcm qc pass: openvpn with aes256gcm qc pass: openvpn with sha224 qc pass: openvpn with sha384 qc pass: openvpn with sha3224 qc pass: openvpn with sha3256 qc pass: openvpn with sha3384 qc pass: openvpn with sha3512 ---------------------------------- 2022-01-15 13:43:19 qc pass: satp with aes128cfb qc pass: satp with aes192cfb qc pass: satp with aes256cfb qc pass: satp with aes128ecb qc pass: satp with aes192ecb qc pass: satp with aes256ecb qc pass: satp with aes128gcm qc pass: satp with aes192gcm qc pass: satp with aes256gcm qc pass: satp with sha224 qc pass: satp with sha384 qc pass: satp with sha3224 qc pass: satp with sha3256 qc pass: satp with sha3384 qc pass: satp with sha3512 ---------------------------------- 2022-01-15 13:52:46 qc pass: skip with aes128cfb qc pass: skip with aes192cfb qc pass: skip with aes256cfb qc pass: skip with aes128ecb qc pass: skip with aes192ecb qc pass: skip with aes256ecb qc pass: skip with aes128gcm qc pass: skip with aes192gcm qc pass: skip with aes256gcm qc pass: skip with sha224 qc pass: skip with sha384 qc pass: skip with sha3224 qc pass: skip with sha3256 qc pass: skip with sha3384 qc pass: skip with sha3512 ---------------------------------- 2022-01-15 14:00:10 qc pass: swipe with aes128cfb qc pass: swipe with aes192cfb qc pass: swipe with aes256cfb qc pass: swipe with aes128ecb qc pass: swipe with aes192ecb qc pass: swipe with aes256ecb qc pass: swipe with aes128gcm qc pass: swipe with aes192gcm qc pass: swipe with aes256gcm qc pass: swipe with sha224 qc pass: swipe with sha384 qc pass: swipe with sha3224 qc pass: swipe with sha3256 qc pass: swipe with sha3384 qc pass: swipe with sha3512 ---------------------------------- 2022-01-15 14:08:49 qc pass: macsec with aes128cfb qc pass: macsec with aes192cfb qc pass: macsec with aes256cfb qc pass: macsec with aes128ecb qc pass: macsec with aes192ecb qc pass: macsec with aes256ecb qc pass: macsec with aes128gcm qc pass: macsec with aes192gcm qc pass: macsec with aes256gcm qc pass: macsec with sha224 qc pass: macsec with sha384 qc pass: macsec with sha3224 qc pass: macsec with sha3256 qc pass: macsec with sha3384 qc pass: macsec with sha3512 ---------------------------------- 2022-01-15 15:06:45 qc pass: p4lang: openvpn with aes128cfb qc pass: p4lang: openvpn with aes192cfb qc pass: p4lang: openvpn with aes256cfb qc pass: p4lang: openvpn with aes128ecb qc pass: p4lang: openvpn with aes192ecb qc pass: p4lang: openvpn with aes256ecb qc pass: p4lang: openvpn with sha224 qc pass: p4lang: openvpn with sha384 qc pass: p4lang: openvpn with sha3224 qc pass: p4lang: macsec with aes128cfb qc pass: p4lang: macsec with aes192cfb qc pass: p4lang: macsec with aes256cfb qc pass: p4lang: macsec with aes128ecb qc pass: p4lang: macsec with aes192ecb qc pass: p4lang: macsec with aes256ecb qc pass: p4lang: macsec with sha224 qc pass: p4lang: macsec with sha384 qc pass: p4lang: macsec with sha3224 ---------------------------------- 2022-01-15 15:28:23 no qc pass: p4lang: macsec with sha3224 no qc pass: p4lang: openvpn with sha3224 ---------------------------------- 2022-01-15 20:20:32 qc pass: access total qc pass: access tracker qc pass: access negated tracker qc pass: access follow tracker ---------------------------------- 2022-01-16 13:50:41 qc pass: bgp routemap filtering with nexthop qc pass: bgp routepolicy filtering with nexthop qc pass: bgp routemap filtering with nexthop with soft-reconfig qc pass: bgp routepolicy filtering with nexthop with soft-reconfig ---------------------------------- 2022-01-23 06:12:55 qc pass: arcnet encapsulation qc pass: infini encapsulation ---------------------------------- 2022-01-30 08:19:54 no qc pass: swipe with aes256gcm no qc pass: swipe with aes192gcm no qc pass: swipe with aes128gcm no qc pass: skip with aes256gcm no qc pass: skip with aes192gcm no qc pass: skip with aes128gcm no qc pass: satp with aes256gcm no qc pass: satp with aes192gcm no qc pass: satp with aes128gcm no qc pass: openvpn with aes256gcm no qc pass: openvpn with aes192gcm no qc pass: openvpn with aes128gcm no qc pass: macsec with aes256gcm no qc pass: macsec with aes192gcm no qc pass: macsec with aes128gcm no qc pass: inlsp with aes256gcm no qc pass: inlsp with aes192gcm no qc pass: inlsp with aes128gcm qc pass: inlsp with none encryption qc pass: inlsp with none hash qc pass: macsec with none encryption qc pass: macsec with none hash qc pass: openvpn with none encryption qc pass: openvpn with none hash qc pass: satp with none encryption qc pass: satp with none hash qc pass: skip with none encryption qc pass: skip with none hash qc pass: swipe with none encryption qc pass: swipe with none hash ---------------------------------- 2022-01-30 08:49:57 qc pass: p4lang: openvpn with none encryption qc pass: p4lang: openvpn with none hash qc pass: p4lang: macsec with none encryption qc pass: p4lang: macsec with none hash ---------------------------------- 2022-01-30 14:39:53 qc pass: macsec with aes128gcm and hash qc pass: macsec with aes192gcm and hash qc pass: macsec with aes256gcm and hash qc pass: macsec with aes128gcm and aead qc pass: macsec with aes192gcm and aead qc pass: macsec with aes256gcm and aead ---------------------------------- 2022-01-30 14:48:15 qc pass: p4lang: macsec with aes128gcm and hash qc pass: p4lang: macsec with aes192gcm and hash qc pass: p4lang: macsec with aes256gcm and hash qc pass: p4lang: macsec with aes128gcm and aead qc pass: p4lang: macsec with aes192gcm and aead qc pass: p4lang: macsec with aes256gcm and aead ---------------------------------- 2022-02-03 07:55:32 todo: p4dpdk multiseg rx/tx loop ---------------------------------- 2022-02-05 03:03:13 no qc pass: bridged mac rewrite qc pass: bridge mac rewrite qc pass: bridge port security qc pass: bridge static address ---------------------------------- 2022-02-07 02:29:39 qc pass: bgp routemap filtering with asend qc pass: bgp routemap filtering with asend with soft-reconfig qc pass: bgp routepolicy filtering with asend qc pass: bgp routepolicy filtering with asend with soft-reconfig qc pass: bgp routemap filtering with asmid qc pass: bgp routemap filtering with asmid with soft-reconfig qc pass: bgp routepolicy filtering with asmid qc pass: bgp routepolicy filtering with asmid with soft-reconfig ---------------------------------- 2022-02-07 22:00:35 todo: punt ace mode to the dataplanes, use it for reflexive acls, consider for ip inspect usage ---------------------------------- 2022-02-08 10:08:19 qc pass: p4lang: reflexive access list ---------------------------------- 2022-02-08 18:30:17 no qc pass: p4lang: reflexive access list qc pass: p4lang: ingress reflexive access list qc pass: p4lang: egress reflexive access list ---------------------------------- 2022-02-09 05:11:48 no todo: punt ace mode to the dataplanes, use it for reflexive acls, consider for ip inspect usage ---------------------------------- 2022-02-09 11:29:32 todo: rtr-hw2.txt, hwsn knob ---------------------------------- 2022-02-09 19:44:39 qc pass: p4lang: interface inspection with egress drop qc pass: p4lang: interface inspection with ingress drop ---------------------------------- 2022-02-09 20:22:55 no todo: rtr-hw2.txt, hwsn knob ---------------------------------- 2022-02-12 07:38:09 qc pass: p4lang: vlan interface inspection with egress drop qc pass: p4lang: vlan interface inspection with ingress drop ---------------------------------- 2022-02-16 05:48:11 qc pass: interface inspection with member ingress drop qc pass: interface inspection with member egress drop ---------------------------------- 2022-02-17 22:06:06 qc pass: mpolka over ethernet qc pass: mpolka over ethernet vlan qc pass: mpolka over ethernet bridge qc pass: mpolka over hdlc qc pass: mpolka over ppp qc pass: mpolka over framerelay qc pass: mpolka over atmdxi qc pass: mpolka over gre qc pass: mpolka over ethernet qc pass: isis with mpolka qc pass: lsrp with mpolka qc pass: ospf with mpolka ---------------------------------- 2022-02-19 15:33:04 qc pass: sgt ethernet encapsulation qc pass: sgt vlan encapsulation qc pass: sgt bridge encapsulation qc pass: sgt bundle encapsulation qc pass: sgt hdlc encapsulation qc pass: sgt ppp encapsulation qc pass: sgt framerelay encapsulation qc pass: sgt atmdxi encapsulation qc pass: sgt isdn encapsulation qc pass: sgt sep encapsulation qc pass: sgt tunnel encapsulation qc pass: interop1: sgt encapsulation ---------------------------------- 2022-02-19 17:34:29 qc pass: qos ingress sgt matcher qc pass: qos egress sgt matcher ---------------------------------- 2022-02-19 18:09:06 qc pass: ingress sgt matching access list qc pass: egress sgt matching access list ---------------------------------- 2022-02-20 04:39:23 qc pass: qos ingress sgt set qc pass: qos egress sgt set ---------------------------------- 2022-02-20 04:54:59 qc pass: sgt ethernet chain encapsulation qc pass: sgt vlan chain encapsulation qc pass: sgt vlan map out encapsulation qc pass: sgt tunnel map out encapsulation ---------------------------------- 2022-02-20 06:20:19 qc pass: p4lang: sgt over ethernet qc pass: p4lang: sgt over vlan qc pass: p4lang: sgt over gre qc pass: p4lang: sgt over pppoe qc pass: p4lang: sgt over l2tp qc pass: p4lang: sgt over hairpin ---------------------------------- 2022-02-20 07:29:16 qc pass: sgt over macsec ethernet encapsulation qc pass: sgt over macsec vlan encapsulation qc pass: p4lang: sgt over macsec over ethernet qc pass: p4lang: sgt over macsec over vlan ---------------------------------- 2022-02-20 07:57:01 qc pass: sgt hairpin encapsulation qc pass: no sgt ethernet encapsulation qc pass: p4lang: sgt ingress access list qc pass: p4lang: sgt egress access list qc pass: p4lang: sgt vlan ingress access list qc pass: p4lang: sgt vlan egress access list ---------------------------------- 2022-02-20 09:51:31 qc pass: p4lang: mpolka core qc pass: p4lang: mpolka vlan core qc pass: p4lang: mpolka edge qc pass: p4lang: mpolka vlan edge ---------------------------------- 2022-02-22 14:42:51 qc pass: sgt encapsulation with ingress allow qc pass: sgt encapsulation with egress allow qc pass: sgt encapsulation with ingress forbid qc pass: sgt encapsulation with egress forbid ---------------------------------- 2022-02-22 17:10:39 no qc pass: p4lang: egress hibryd access list no qc pass: p4lang: ingress hibryd access list no qc pass: egress destination port matching hibryd access list no qc pass: ingress destination port matching hibryd access list no qc pass: egress source port matching hibryd access list no qc pass: ingress source port matching hibryd access list no qc pass: egress source matching hibryd access list no qc pass: ingress source matching hibryd access list no qc pass: egress destination matching hibryd access list no qc pass: ingress destination matching hibryd access list qc pass: ingress destination matching hybrid access list qc pass: egress destination matching hybrid access list qc pass: ingress source matching hybrid access list qc pass: egress source matching hybrid access list qc pass: ingress source port matching hybrid access list qc pass: egress source port matching hybrid access list qc pass: ingress destination port matching hybrid access list qc pass: egress destination port matching hybrid access list qc pass: p4lang: ingress hybrid access list qc pass: p4lang: egress hybrid access list ---------------------------------- 2022-02-23 08:14:30 qc pass: bgp routemap filtering with asbeg qc pass: bgp routemap filtering with asbeg with soft-reconfig qc pass: bgp routepolicy filtering with asbeg qc pass: bgp routepolicy filtering with asbeg with soft-reconfig ---------------------------------- 2022-02-27 20:32:47 qc pass: p4lang: bridge interface inspection with ingress drop qc pass: p4lang: bridge interface inspection with egress drop qc pass: p4lang: pppoe interface inspection with ingress drop qc pass: p4lang: pppoe interface inspection with egress drop qc pass: p4lang: gre interface inspection with ingress drop qc pass: p4lang: gre interface inspection with egress drop qc pass: p4lang: l2tp interface inspection with ingress drop qc pass: p4lang: l2tp interface inspection with egress drop ---------------------------------- 2022-02-27 20:53:59 qc pass: p4lang: interface verify source qc pass: p4lang: vlan interface verify source qc pass: p4lang: bridge interface verify source qc pass: p4lang: pppoe interface verify source qc pass: p4lang: gre interface verify source qc pass: p4lang: l2tp interface verify source ---------------------------------- 2022-02-27 21:02:01 qc pass: verify source with ethernet encapsulation qc pass: interop1: verify source qc pass: interop2: verify source qc pass: interop8: verify source qc pass: interop9: verify source qc pass: verify source with static routing ---------------------------------- 2022-02-27 21:16:26 qc pass: loose verify source with ethernet encapsulation qc pass: p4lang: interface loose verify source qc pass: p4lang: vlan interface loose verify source qc pass: p4lang: bridge interface loose verify source qc pass: p4lang: pppoe interface loose verify source qc pass: p4lang: gre interface loose verify source qc pass: p4lang: l2tp interface loose verify source qc pass: loose verify source with static routing ---------------------------------- 2022-03-01 17:43:52 qc pass: p4lang demultiplexer qc pass: p4lang downlink ---------------------------------- 2022-03-01 18:08:42 no qc pass: p4lang downlink no qc pass: p4lang demultiplexer qc pass: unnamed qc pass: unnamed ---------------------------------- 2022-03-01 18:18:03 no qc pass: unnamed no qc pass: unnamed qc pass: p4lang demultiplexer qc pass: p4lang downlink ---------------------------------- 2022-03-03 06:49:36 todo: quic todo: bgp flowspec v2 todo: tcp window scale ---------------------------------- 2022-03-03 08:07:30 todo: update gtp stack to the latest standards, add to dataplanes ---------------------------------- 2022-03-03 11:37:03 qc pass: ipv4 over gtp qc pass: ipv6 over gtp qc pass: ipv4 and ipv6 over gtp ---------------------------------- 2022-03-03 11:46:08 no qc pass: ipv4 and ipv6 over gtp no qc pass: ipv6 over gtp qc pass: unnamed qc pass: unnamed ---------------------------------- 2022-03-03 11:54:43 no qc pass: unnamed no qc pass: unnamed qc pass: ipv6 over gtp qc pass: ipv4 and ipv6 over gtp ---------------------------------- 2022-03-03 12:31:33 qc pass: gtp tunnel ---------------------------------- 2022-03-03 17:30:24 qc pass: p4lang: ingress gtp access list qc pass: p4lang: egress gtp access list qc pass: p4lang: gtp server over ipv4 qc pass: p4lang: gtp server over ipv6 qc pass: p4lang: gtp server over ipv4 loopback qc pass: p4lang: gtp server over ipv6 loopback ---------------------------------- 2022-03-07 06:41:13 no todo: update gtp stack to the latest standards, add to dataplanes todo: update gtp stack to the latest standards ---------------------------------- 2022-03-08 16:56:26 qc pass: sdwan over ipv4 qc pass: sdwan over ipv6 ---------------------------------- 2022-03-10 06:14:25 qc pass: sdwan with fixed addresses qc pass: sdwan hub and spoke ---------------------------------- 2022-03-11 07:56:22 no todo: tcp window scale ---------------------------------- 2022-03-11 09:59:39 qc pass: secondary dns server qc pass: sdwan with mixed addresses ---------------------------------- 2022-03-21 22:08:40 no qc pass: ppp address propagation failed: ppp address propagation ---------------------------------- 2022-03-21 22:44:12 no failed: ppp address propagation qc pass: ppp address propagation ---------------------------------- 2022-03-22 05:33:09 todo: incremental fib calculation from bgp change list ---------------------------------- 2022-03-28 14:51:21 no todo: trustpoint for certificates ---------------------------------- 2022-03-29 13:09:15 no todo: incremental fib calculation from bgp change list ---------------------------------- 2022-03-29 13:48:35 todo: aliases with sticky parameters todo: disableable door code in temper ---------------------------------- 2022-03-30 04:34:50 22.3.30 todo: lsrp pvrp forbid remote dynamic metric todo: changelog converter with start point ---------------------------------- 2022-03-30 07:02:48 22.3.30 no todo: lsrp pvrp forbid remote dynamic metric ---------------------------------- 2022-03-30 07:59:57 22.3.30 no todo: changelog converter with start point ---------------------------------- 2022-03-30 08:45:44 22.3.30 no todo: aliases with sticky parameters ---------------------------------- 2022-03-30 08:58:47 22.3.30 todo: default playlist in player ---------------------------------- 2022-03-30 10:07:16 22.3.30 no todo: default playlist in player ---------------------------------- 2022-03-30 10:55:30 22.3.30 no todo: disableable door code in temper ---------------------------------- 2022-03-30 14:26:22 22.3.30 todo: default parameter for aliases ---------------------------------- 2022-03-30 17:35:13 22.3.30 no todo: default parameter for aliases ---------------------------------- 2022-03-31 06:23:02 22.3.31 qc pass: bgp change in metric with labels qc pass: ibgp rr prefix movement with labels qc pass: ouni bgp change in metric qc pass: ouni ibgp rr prefix movement qc pass: olab bgp change in metric qc pass: olab ibgp rr prefix movement qc pass: bgp vpns change in metric qc pass: ibgp rr vpns prefix movement qc pass: bgp othervpns change in metric qc pass: ibgp rr othervpns prefix movement ---------------------------------- 2022-03-31 19:16:12 22.3.31 qc pass: ibgp rr prefix withdraw with labels qc pass: ouni ibgp rr prefix withdraw qc pass: olab ibgp rr prefix withdraw qc pass: ibgp rr vpns prefix withdraw qc pass: ibgp rr othervpns prefix withdraw qc pass: olab ibgp fullmesh prefix withdraw ---------------------------------- 2022-04-01 05:31:47 22.4.1 qc pass: ebgp with safe policy qc pass: ibgp with safe policy qc pass: confed bgp with safe policy qc pass: ibgp rr with safe policy qc pass: bgp route server with safe policy qc pass: safe ebgp policy with prefixlist qc pass: safe ebgp policy with routemap qc pass: safe ebgp policy with routepolicy ---------------------------------- 2022-04-03 05:44:11 22.4.3 qc pass: llcudp over ipv4 qc pass: llcudp over ipv6 qc pass: llcudp over loopback qc pass: hdlc tunneling with llcudp qc pass: ppp tunneling with llcudp qc pass: lapb tunneling with llcudp qc pass: framerelay tunneling with llcudp qc pass: atmdxi tunneling with llcudp qc pass: isdn tunneling with llcudp qc pass: sep tunneling with llcudp qc pass: ethernet tunneling with llcudp qc pass: vlan tunneling with llcudp qc pass: tunnel interface with llcudp qc pass: tzsp over ipv4 qc pass: tzsp over ipv6 qc pass: tzsp over loopback qc pass: hdlc tunneling with tzsp qc pass: ppp tunneling with tzsp qc pass: lapb tunneling with tzsp qc pass: framerelay tunneling with tzsp qc pass: atmdxi tunneling with tzsp qc pass: isdn tunneling with tzsp qc pass: sep tunneling with tzsp qc pass: ethernet tunneling with tzsp qc pass: vlan tunneling with tzsp qc pass: tunnel interface with tzsp ---------------------------------- 2022-04-10 10:09:04 22.4.10 qc pass: bridge port split horizon qc pass: bridge port unsplit horizon ---------------------------------- 2022-04-12 16:04:05 22.4.12 todo: tcpmss on bridges todo: allow command to be a substring of an other ---------------------------------- 2022-04-12 17:33:21 22.4.12 no todo: tcpmss on bridges ---------------------------------- 2022-04-14 08:36:56 22.4.14 todo: readvertise knob under routers ---------------------------------- 2022-04-14 16:08:47 22.4.14 todo: rt4/6import/export under vrfs ---------------------------------- 2022-04-15 07:56:58 22.4.15 no todo: rt4/6import/export under vrfs ---------------------------------- 2022-04-15 16:53:32 22.4.15 no todo: readvertise knob under routers ---------------------------------- 2022-04-15 17:04:59 22.4.15 qc pass: redistribution by prefix ---------------------------------- 2022-04-15 17:34:03 22.4.15 qc pass: redistribution with tag ---------------------------------- 2022-04-18 06:00:54 22.4.18 qc pass: ppp labeled gateway qc pass: ppp no remote address qc pass: p4lang: bundle mpls pop qc pass: p4lang: bundle vlan mpls pop qc pass: p4lang: pppoe mpls pop qc pass: p4lang: gre mpls pop qc pass: p4lang: l2tp mpls pop qc pass: p4lang: bundle mpls push qc pass: p4lang: bundle vlan mpls push qc pass: p4lang: pppoe mpls push qc pass: p4lang: gre mpls push qc pass: p4lang: l2tp mpls push ---------------------------------- 2022-04-19 07:36:59 22.4.19 qc pass: ppp no local address qc pass: ebgp over common subnet ---------------------------------- 2022-04-27 06:19:54 22.4.27 qc pass: p4lang: lpm routing qc pass: static routing with lpm ---------------------------------- 2022-04-28 04:15:39 22.4.28 qc pass: p4lang: l2vpn over bundle mpls qc pass: p4lang: l2vpn over bundle vlan mpls qc pass: p4lang: l2vpn over pppoe mpls qc pass: p4lang: l2vpn over gre mpls qc pass: p4lang: l2vpn over l2tp mpls qc pass: p4lang: l3vpn over bundle mpls qc pass: p4lang: l3vpn over bundle vlan mpls qc pass: p4lang: l3vpn over pppoe mpls qc pass: p4lang: l3vpn over gre mpls qc pass: p4lang: l3vpn over l2tp mpls ---------------------------------- 2022-04-29 17:51:12 22.4.29 qc pass: interop1: vpls/ldp cw over bgp qc pass: interop1: ethernet over mpls cw qc pass: vpls/ldp cw over ebgp qc pass: vpls/ldp cw over ibgp qc pass: vpls/ldp cw over bgp additional path qc pass: vpls/ldp cw over ibgp rr qc pass: vpls/ldp cw over confed bgp qc pass: vpls/ldp cw over bgp route server qc pass: vpls/ldp cw over bgp with soft-reconfig qc pass: unicast+vpls/ldp cw over bgp qc pass: unicast+vpls/ldp cw over bgp with soft-reconfig qc pass: unicast+vpls/ldp cw over bgp additional path ---------------------------------- 2022-05-05 13:33:24 22.5.5 todo: sho run server ---------------------------------- 2022-05-08 07:29:17 22.5.8 todo: multiple listen stanzas for bgp listen todo: backplane header in the dataplanes with bridge_id, vrf_id and nexthop_id ---------------------------------- 2022-05-08 08:49:15 22.5.8 no todo: multiple listen stanzas for bgp listen ---------------------------------- 2022-05-09 17:17:48 22.5.9 qc pass: redistribution filtering with prefixlist in routemap qc pass: redistribution filtering with prefixlist in routepolicy qc pass: redistribution filtering with accesslist in routemap qc pass: redistribution filtering with accesslist in routepolicy ---------------------------------- 2022-05-09 18:05:52 22.5.9 qc pass: redistribution filtering with routepolicy in routemap qc pass: redistribution filtering with routemap in routepolicy ---------------------------------- 2022-05-10 05:10:26 22.5.10 todo: backup path support to the spf class todo: wcmp support to the spf class todo: bgp shadow route reflection ---------------------------------- 2022-05-10 18:06:28 22.5.10 no todo: backplane header in the dataplanes with bridge_id, vrf_id and nexthop_id todo: backplane/stacking capability ---------------------------------- 2022-05-10 19:49:37 22.5.10 no todo: sho run server ---------------------------------- 2022-05-15 11:12:50 22.5.15 qc pass: p4lang: routing over backplane ---------------------------------- 2022-05-15 13:44:40 22.5.15 qc pass: p4lang: bridging over backplane ---------------------------------- 2022-05-16 07:27:38 22.5.16 no todo: backplane/stacking capability ---------------------------------- 2022-05-18 14:49:11 22.5.18 no qc pass: p4lang downlink no qc pass: p4lang demultiplexer failed: p4lang demultiplexer failed: p4lang downlink ---------------------------------- 2022-05-18 16:13:14 22.5.18 no failed: p4lang downlink no failed: p4lang demultiplexer qc pass: p4lang demultiplexer qc pass: p4lang downlink ---------------------------------- 2022-05-19 07:31:45 22.5.19 no qc pass: dummy test qc pass: unnamed ---------------------------------- 2022-05-19 07:48:07 22.5.19 no qc pass: unnamed qc pass: dummy test qc pass: interface with slot qc pass: subinterface with slot ---------------------------------- 2022-06-01 07:23:39 22.6.1 qc pass: p4lang: mpls core over backplane qc pass: p4lang: mpls vpn over backplane ---------------------------------- 2022-06-04 20:03:25 22.6.4 todo: pcapng format for packet captures todo: configurable netflow parameters ---------------------------------- 2022-06-04 20:39:06 22.6.4 no todo: pcapng format for packet captures ---------------------------------- 2022-06-04 21:19:25 22.6.4 no todo: configurable netflow parameters ---------------------------------- 2022-06-16 12:16:09 22.6.16 no todo: bridge security from dhcp, slaac, whatever server ---------------------------------- 2022-06-16 17:21:15 22.6.16 qc pass: dhcp with arp/nd security qc pass: secure arp/nd ---------------------------------- 2022-06-23 18:48:35 22.6.23 qc pass: p4lang: local connect qc pass: p4lang: vlan local connect ---------------------------------- 2022-06-27 13:33:05 22.6.27 todo: test tstmat ---------------------------------- 2022-06-27 16:46:12 22.6.27 no todo: test tstmat ---------------------------------- 2022-07-03 12:03:44 22.7.3 qc pass: ebgp with backup peer qc pass: ibgp with backup peer qc pass: confed bgp with backup peer qc pass: route server bgp with backup peer ---------------------------------- 2022-07-05 09:45:37 22.7.5 todo: mpls static label mapping ---------------------------------- 2022-07-05 17:41:50 22.7.5 no todo: mpls static label mapping ---------------------------------- 2022-07-05 18:58:51 22.7.5 qc pass: static labels qc pass: static labels with ldp ---------------------------------- 2022-07-05 23:36:45 22.7.5 todo: ipv4/6 host-rate todo: pmtud tool ---------------------------------- 2022-07-06 00:03:31 22.7.6 todo: interface rate-limit-in/out ---------------------------------- 2022-07-06 07:39:15 22.7.6 no todo: interface rate-limit-in/out todo: test cases for interface rate-limit-in/out ---------------------------------- 2022-07-06 07:56:30 22.7.6 todo: arping ---------------------------------- 2022-07-06 08:19:21 22.7.6 no todo: ipv4/6 host-rate ---------------------------------- 2022-07-06 09:59:08 22.7.6 no todo: arping ---------------------------------- 2022-07-06 11:11:16 22.7.6 no todo: pmtud tool ---------------------------------- 2022-07-06 17:07:42 22.7.6 no todo: test cases for interface rate-limit-in/out qc pass: qos ingress policer action qc pass: qos egress policer action ---------------------------------- 2022-07-07 09:03:08 22.7.7 qc pass: pmtud qc pass: p4lang: pmtud ---------------------------------- 2022-07-07 12:38:52 22.7.7 qc pass: tcp mss in qc pass: tcp mss out ---------------------------------- 2022-07-07 13:47:14 22.7.7 no qc pass: pmtud qc pass: pmtud out qc pass: pmtud in ---------------------------------- 2022-07-07 14:00:43 22.7.7 qc pass: p4lang: vlan pmtud ---------------------------------- 2022-07-07 14:26:09 22.7.7 todo: test acl reports todo: test for ttl in ip and mpls, even in p4 todo: test for p4 tcpmss todo: bridge pmtud todo: test for bridge pmtud and tcpmss, even in p4 ---------------------------------- 2022-07-07 15:11:18 22.7.7 no qc pass: pmtud out ---------------------------------- 2022-07-07 15:23:06 22.7.7 no todo: test for p4 tcpmss qc pass: pmtud out qc pass: p4lang: tcpmss qc pass: p4lang: vlan tcpmss ---------------------------------- 2022-07-07 15:49:13 22.7.7 no todo: test acl reports ---------------------------------- 2022-07-07 16:06:55 22.7.7 no todo: test for ttl in ip and mpls, even in p4 qc pass: ip ttl exceed qc pass: mpls ttl exceed ---------------------------------- 2022-07-07 19:40:55 22.7.7 no todo: test for bridge pmtud and tcpmss, even in p4 no todo: bridge pmtud qc pass: bridge tcp mss in qc pass: bridge tcp mss out todo: bridge pmtud, even in p4 ---------------------------------- 2022-07-07 19:51:24 22.7.7 qc pass: p4lang: bridge tcpmss qc pass: p4lang: vlan bridge tcpmss ---------------------------------- 2022-07-07 21:08:45 22.7.7 no todo: bridge pmtud, even in p4 qc pass: bridge pmtud in qc pass: bridge pmtud out todo: bridge pmtud in p4 ---------------------------------- 2022-07-07 21:24:03 22.7.7 no todo: bridge pmtud in p4 qc pass: p4lang: bridge pmtud qc pass: p4lang: vlan bridge pmtud ---------------------------------- 2022-07-08 06:14:46 22.7.8 qc pass: p4lang: ip ttl exceed qc pass: p4lang: mpls ttl exceed ---------------------------------- 2022-07-09 10:01:06 22.7.9 qc pass: unnamed qc pass: unnamed ---------------------------------- 2022-07-09 10:26:30 22.7.9 no qc pass: unnamed no qc pass: unnamed qc pass: precise mac enforcement qc pass: bridge mac enforcement ---------------------------------- 2022-07-10 18:26:58 22.7.10 qc pass: unicast+rtfilter over bgp qc pass: unicast+rtfilter over bgp with soft-reconfig qc pass: unicast+rtfilter over bgp with additional path qc pass: unicast+rtfilter over ibgp rr ---------------------------------- 2022-07-11 08:11:43 22.7.11 qc pass: vpns with rtfilter in qc pass: vpns with rtfilter out ---------------------------------- 2022-07-11 08:24:20 22.7.11 no qc pass: vpns with rtfilter out no qc pass: vpns with rtfilter in qc pass: vpns with ingress rtfilter qc pass: vpns with egress rtfilter ---------------------------------- 2022-07-11 09:30:48 22.7.11 qc pass: othervpns with ingress rtfilter qc pass: othervpns with egress rtfilter ---------------------------------- 2022-07-11 13:15:50 22.7.11 qc pass: vpls/ldp with ingress rtfilter qc pass: vpls/ldp with egress rtfilter ---------------------------------- 2022-07-11 13:32:48 22.7.11 qc pass: evpn/pbb with ingress rtfilter qc pass: evpn/pbb with egress rtfilter ---------------------------------- 2022-07-20 15:33:55 22.7.20 qc pass: p4lang: multilink pppoe routing qc pass: p4lang: multilink pppoe mpls qc pass: p4lang: multilink l2tp routing over ipv4 qc pass: p4lang: multilink l2tp routing over ipv6 qc pass: p4lang: multilink l2tp routing over vlan qc pass: p4lang: multilink l2tp mpls over ipv4 qc pass: p4lang: multilink l2tp mpls over ipv6 qc pass: p4lang: multilink l2tp mpls over vlan ---------------------------------- 2022-07-20 18:03:43 22.7.20 qc pass: p4lang: multilink l2tp routing over bundle qc pass: p4lang: multilink l2tp mpls over bundle ---------------------------------- 2022-07-22 15:21:43 22.7.22 qc pass: dhcp with static allocation qc pass: dhcp with excluded address ---------------------------------- 2022-07-25 07:13:03 22.7.25 qc pass: ebgp ao password ---------------------------------- 2022-07-25 08:27:06 22.7.25 qc pass: interop1: bgp ao authentication qc pass: interop2: bgp ao authentication qc pass: interop9: bgp ao authentication ---------------------------------- 2022-07-25 22:02:31 22.7.25 no qc pass: bgp maximum prefix qc pass: bgp maximum prefix in qc pass: bgp maximum prefix out ---------------------------------- 2022-07-26 06:20:36 22.7.26 qc pass: bgp attribute filtering ---------------------------------- 2022-07-26 20:00:34 22.7.26 qc pass: bgp routemap filtering with unknown attribute qc pass: bgp routepolicy filtering with unknown attribute ---------------------------------- 2022-07-26 20:10:37 22.7.26 qc pass: bgp unknown attribute ingress qc pass: bgp unknown attribute egress ---------------------------------- 2022-07-30 21:34:14 22.7.30 qc pass: ingress fragment matching access list qc pass: ingress alert matching access list ---------------------------------- 2022-08-05 07:21:41 22.8.5 qc pass: bgp with ctp over sr qc pass: bgp with php ctp over sr qc pass: ebgp with ctp qc pass: ibgp with ctp qc pass: bgp additional path with ctp qc pass: ebgp with php ctp qc pass: ibgp with php ctp qc pass: bgp additional path with php ctp qc pass: ibgp rr with ctp qc pass: confed bgp with ctp qc pass: bgp route server with ctp qc pass: bgp soft-reconfig with ctp qc pass: ctp bgp ingress route filtering with prefixlist qc pass: ctp bgp egress route filtering with prefixlist qc pass: ctp bgp ingress route filtering with routemap qc pass: ctp bgp egress route filtering with routemap qc pass: ctp bgp ingress route filtering with prefixlist with soft-reconfig qc pass: ctp bgp egress route filtering with prefixlist with soft-reconfig qc pass: ctp bgp ingress route filtering with routemap with soft-reconfig qc pass: ctp bgp egress route filtering with routemap with soft-reconfig qc pass: ctp bgp ingress route filtering with routepolicy qc pass: ctp bgp egress route filtering with routepolicy qc pass: ctp bgp ingress route filtering with routepolicy with soft-reconfig qc pass: ctp bgp egress route filtering with routepolicy with soft-reconfig qc pass: ctp bgp default route qc pass: ctp bgp aggregation qc pass: bgp change in metric with ctp qc pass: ibgp rr prefix movement with ctp qc pass: ibgp rr prefix withdraw with ctp qc pass: unicast+octp over ebgp qc pass: unicast+octp over bgp with soft-reconfig qc pass: unicast+octp over bgp with additional path qc pass: unicast+octp over bgp route server qc pass: unicast+octp over ibgp qc pass: unicast+octp over ibgp rr qc pass: unicast+octp over confed bgp qc pass: octp over srv6 over ibgp qc pass: octp over srv6 over ebgp qc pass: octp over srv6 over ibgp rr qc pass: octp over srv6 over confed bgp qc pass: octp over srv6 over bgp route server qc pass: octp over srv6 over bgp with soft-reconfig qc pass: octp over srv6 over bgp additional path qc pass: octp bgp default route qc pass: octp bgp ingress route filtering with prefixlist qc pass: octp bgp egress route filtering with prefixlist qc pass: octp bgp ingress route filtering with routemap qc pass: octp bgp egress route filtering with routemap qc pass: octp bgp ingress route filtering with prefixlist with soft-reconfig qc pass: octp bgp egress route filtering with prefixlist with soft-reconfig qc pass: octp bgp ingress route filtering with routemap with soft-reconfig qc pass: octp bgp egress route filtering with routemap with soft-reconfig qc pass: octp bgp ingress route filtering with routepolicy qc pass: octp bgp egress route filtering with routepolicy qc pass: octp bgp ingress route filtering with routepolicy with soft-reconfig qc pass: octp bgp egress route filtering with routepolicy with soft-reconfig qc pass: octp bgp aggregation qc pass: octp bgp change in metric qc pass: octp ibgp rr prefix movement qc pass: octp ibgp rr prefix withdraw qc pass: octp ibgp fullmesh prefix withdraw qc pass: olab+octp over ebgp qc pass: redistribution with bgp ctp qc pass: redistribution with octp bgp ---------------------------------- 2022-08-05 07:48:52 22.8.5 qc pass: interop9: bgp with ctp qc pass: interop9: bgp with php ctp ---------------------------------- 2022-08-07 10:15:50 22.8.7 qc pass: bgp routemap rd rewrite qc pass: bgp routepolicy filtering with rd ---------------------------------- 2022-08-07 10:53:37 22.8.7 no qc pass: bgp routepolicy filtering with rd no qc pass: qos egress policer action no qc pass: qos ingress policer action no qc pass: mpolka over ethernet qc pass: mpolka over bridge qc pass: qos ingress rate limit action qc pass: qos egress rate limit action qc pass: bgp routepolicy rd rewrite ---------------------------------- 2022-08-08 06:39:37 22.8.8 qc pass: bgp csc vpn with ctp qc pass: redistribution route limit ---------------------------------- 2022-08-26 06:20:48 22.8.26 todo: colorful bgp lu implementation accroding to https://www.facebook.com/mc36mc36/posts/pfbid02jN7yrSNcqj1qEwMjJ5nmqaFFP6EN3wzyyMgPBjwgCnoeq5G6NoBSNc5mT5DmrvL4l ---------------------------------- 2022-08-28 04:17:39 22.8.28 no todo: p4dpdk multiseg rx/tx loop ---------------------------------- 2022-08-30 09:48:27 22.8.30 todo: todo: allowed v4/v6 range to temper ---------------------------------- 2022-08-30 11:03:45 22.8.30 no todo: colorful bgp lu implementation accroding to https://www.facebook.com/mc36mc36/posts/pfbid02jN7yrSNcqj1qEwMjJ5nmqaFFP6EN3wzyyMgPBjwgCnoeq5G6NoBSNc5mT5DmrvL4l no todo: todo: allowed v4/v6 range to temper todo: allowed v4/v6 range to temper todo: colorful bgp lu implementation accroding to https://lists.geant.org/sympa/arc/rare-dev/2022-08/msg00042.html ---------------------------------- 2022-08-30 18:18:06 22.8.30 todo: sho ipv4 bgp x flaps todo: fix enter in spacetab term behaviour ---------------------------------- 2022-11-10 06:00:07 22.11.10 no todo: sho ipv4 bgp x flaps ---------------------------------- 2022-12-14 22:17:07 22.12.14 no todo: rift4, rift6 ---------------------------------- 2022-12-15 01:09:25 22.12.15 qc pass: interop9: point2point rift qc pass: rift point2point connection qc pass: rift point2point chain qc pass: rift metric qc pass: rift address suppression qc pass: rift route filtering with prefixlist qc pass: rift route filtering with routemap qc pass: rift route filtering with routepolicy qc pass: rift tag qc pass: rift default route qc pass: rift with bfd qc pass: rift peer template qc pass: rift prefix withdraw qc pass: rift change in metric qc pass: rift change in tag qc pass: rift auto mesh tunnel qc pass: rift triangle connection qc pass: rift prefix movement qc pass: rift autoroute qc pass: rift default address suppression qc pass: rift address unsuppression qc pass: rift over point2point ethernet qc pass: rift point2point connection with bidir check qc pass: rift ecmp connection ---------------------------------- 2022-12-15 01:20:12 22.12.15 no todo: fix enter in spacetab term behaviour ---------------------------------- 2022-12-15 04:43:48 22.12.15 qc pass: rift with bgp linkstate qc pass: rift inter level chain ---------------------------------- 2022-12-15 11:21:02 22.12.15 no todo: allowed v4/v6 range to temper ---------------------------------- 2022-12-15 16:41:37 22.12.15 no todo: xot, x75 switching ---------------------------------- 2022-12-15 17:42:29 22.12.15 no todo: x25 ---------------------------------- 2022-12-16 10:02:42 22.12.16 qc pass: xot pad qc pass: rift dynamic icmp metric qc pass: rift dynamic udp metric qc pass: rift dynamic twamp metric ---------------------------------- 2022-12-20 10:49:45 22.12.20 todo: mpls inband network telemetry ---------------------------------- 2022-12-21 14:37:00 22.12.21 no qc pass: dhcp with excluded address failed: dhcp with excluded address ---------------------------------- 2022-12-21 15:47:24 22.12.21 no failed: dhcp with excluded address qc pass: dhcp with excluded address ---------------------------------- 2022-12-22 11:36:31 22.12.22 no todo: colorful bgp lu implementation accroding to https://lists.geant.org/sympa/arc/rare-dev/2022-08/msg00042.html ---------------------------------- 2022-12-22 13:16:57 22.12.22 qc pass: colors over ebgp qc pass: colors over ibgp qc pass: other colors over ebgp qc pass: other colors over ibgp todo: colorful spf class ---------------------------------- 2022-12-22 14:10:22 22.12.22 no qc pass: other colors over ebgp qc pass: colors over ibgp ---------------------------------- 2022-12-22 15:43:36 22.12.22 no qc pass: colors over ibgp qc pass: other colors over ebgp qc pass: colors over bgp additional path qc pass: other colors over bgp additional path qc pass: colors over ibgp rr qc pass: other colors over ibgp rr qc pass: colors over confed bgp qc pass: other colors over confed bgp ---------------------------------- 2022-12-22 17:25:58 22.12.22 qc pass: colors over bgp route server qc pass: other colors over bgp route server qc pass: colors over bgp with soft-reconfig qc pass: other colors over bgp with soft-reconfig ---------------------------------- 2022-12-27 05:54:01 22.12.27 no todo: colorful spf class no qc pass: lsrp database authentication failed: lsrp database authentication ---------------------------------- 2022-12-27 06:18:45 22.12.27 qc pass: lsrp flexalgo ---------------------------------- 2022-12-27 07:40:59 22.12.27 qc pass: ospf flexalgo ---------------------------------- 2022-12-27 11:29:53 22.12.27 qc pass: isis flexalgo qc pass: integrated isis address unsuppression ---------------------------------- 2022-12-27 11:51:48 22.12.27 no failed: lsrp database authentication no qc pass: integrated isis address unsuppression qc pass: integrated isis flexalgo qc pass: lsrp database authentication ---------------------------------- 2022-12-28 18:16:18 22.12.28 no todo: bgp strict bfd mode ---------------------------------- 2022-12-28 19:51:04 22.12.28 qc pass: ebgp with strict bfd ---------------------------------- 2022-12-29 02:53:35 22.12.29 qc pass: ebgp with asymmetric bfd ---------------------------------- 2022-12-30 03:18:28 22.12.30 todo: bgp route policy distribution ---------------------------------- 2022-12-30 10:04:33 22.12.30 no todo: bgp route policy distribution qc pass: unicast+rpd over bgp qc pass: unicast+rpd over bgp with soft-reconfig qc pass: unicast+rpd over bgp with additional path ---------------------------------- 2022-12-30 18:41:33 22.12.30 todo: policy from bgp rpd ---------------------------------- 2022-12-31 14:56:27 22.12.31 qc pass: legacy bgp session ---------------------------------- 2023-01-02 20:12:39 23.1.2 qc pass: pvrp with sr qc pass: pvrp with bier qc pass: pvrp with srgb sr qc pass: pvrp with selective sr qc pass: pvrp with selective bier qc pass: pvrp with polka ---------------------------------- 2023-01-03 13:04:28 23.1.3 qc pass: ipv4 target port selection qc pass: ipv6 target port selection ---------------------------------- 2023-01-03 15:07:51 23.1.3 todo: tcam compression to tabRoute todo: route filtering to p4lang ---------------------------------- 2023-01-04 07:12:28 23.1.4 qc pass: p4lang: null routing ---------------------------------- 2023-01-04 08:49:14 23.1.4 no todo: route filtering to p4lang ---------------------------------- 2023-01-04 09:57:53 23.1.4 qc pass: p4lang: route filtering with prefixlist qc pass: p4lang: route filtering with routemap qc pass: p4lang: route filtering with routepolicy ---------------------------------- 2023-01-04 17:44:39 23.1.4 no todo: tcam compression to tabRoute todo: tcam compression to routing protocols, p4lang ---------------------------------- 2023-01-05 01:27:03 23.1.5 no todo: tcam compression to routing protocols, p4lang todo: tcam compression to p4lang ---------------------------------- 2023-01-05 02:56:14 23.1.5 qc pass: babel auto summarization qc pass: eigrp auto summarization qc pass: olsr auto summarization qc pass: pvrp auto summarization qc pass: rip auto summarization ---------------------------------- 2023-01-05 03:43:48 23.1.5 qc pass: bgp aggregation ---------------------------------- 2023-01-05 03:55:40 23.1.5 no qc pass: bgp aggregation qc pass: bgp auto summarization ---------------------------------- 2023-01-05 05:06:44 23.1.5 qc pass: p4lang: routing with fib compression qc pass: p4lang: mpls with fib compression ---------------------------------- 2023-01-05 06:20:09 23.1.5 no todo: mpls inband network telemetry no todo: tcam compression to p4lang todo: mpls inband performance measurement ---------------------------------- 2023-01-20 07:37:54 23.1.20 qc pass: bgp interas vpn with multiple labels qc pass: bgp interas othervpn with multiple labels ---------------------------------- 2023-01-22 13:43:49 23.1.22 qc pass: bgp interas labels with multiple labels qc pass: bgp interas ctp with multiple labels ---------------------------------- 2023-02-04 19:54:36 23.2.4 qc pass: ebgp with hostname qc pass: ebgp with software ---------------------------------- 2023-02-07 04:22:27 23.2.7 qc pass: redistribution with rift ---------------------------------- 2023-02-07 07:37:30 23.2.7 qc pass: bgp with car over sr qc pass: bgp with php car over sr qc pass: ebgp with ctp qc pass: ibgp with ctp qc pass: bgp additional path with ctp qc pass: ebgp with php ctp qc pass: ibgp with php ctp qc pass: bgp additional path with php ctp qc pass: ibgp rr with ctp qc pass: confed bgp with ctp qc pass: bgp route server with ctp qc pass: bgp soft-reconfig with ctp qc pass: ctp bgp ingress route filtering with prefixlist qc pass: ctp bgp egress route filtering with prefixlist qc pass: ctp bgp ingress route filtering with routemap qc pass: ctp bgp egress route filtering with routemap qc pass: ctp bgp ingress route filtering with prefixlist with soft-reconfig qc pass: ctp bgp egress route filtering with prefixlist with soft-reconfig qc pass: ctp bgp ingress route filtering with routemap with soft-reconfig qc pass: ctp bgp egress route filtering with routemap with soft-reconfig qc pass: ctp bgp ingress route filtering with routepolicy qc pass: ctp bgp egress route filtering with routepolicy qc pass: ctp bgp ingress route filtering with routepolicy with soft-reconfig qc pass: ctp bgp egress route filtering with routepolicy with soft-reconfig qc pass: ctp bgp default route qc pass: ctp bgp aggregation qc pass: bgp change in metric with ctp qc pass: ibgp rr prefix movement with ctp qc pass: ibgp rr prefix withdraw with ctp qc pass: unicast+octp over ebgp qc pass: unicast+octp over bgp with soft-reconfig qc pass: unicast+octp over bgp with additional path qc pass: unicast+octp over bgp route server qc pass: unicast+octp over ibgp qc pass: unicast+octp over ibgp rr qc pass: unicast+octp over confed bgp qc pass: octp over srv6 over ibgp qc pass: octp over srv6 over ebgp qc pass: octp over srv6 over ibgp rr qc pass: octp over srv6 over confed bgp qc pass: octp over srv6 over bgp route server qc pass: octp over srv6 over bgp with soft-reconfig qc pass: octp over srv6 over bgp additional path qc pass: octp bgp default route qc pass: octp bgp ingress route filtering with prefixlist qc pass: octp bgp egress route filtering with prefixlist qc pass: octp bgp ingress route filtering with routemap qc pass: octp bgp egress route filtering with routemap qc pass: octp bgp ingress route filtering with prefixlist with soft-reconfig qc pass: octp bgp egress route filtering with prefixlist with soft-reconfig qc pass: octp bgp ingress route filtering with routemap with soft-reconfig qc pass: octp bgp egress route filtering with routemap with soft-reconfig qc pass: octp bgp ingress route filtering with routepolicy qc pass: octp bgp egress route filtering with routepolicy qc pass: octp bgp ingress route filtering with routepolicy with soft-reconfig qc pass: octp bgp egress route filtering with routepolicy with soft-reconfig qc pass: octp bgp aggregation qc pass: octp bgp change in metric qc pass: octp ibgp rr prefix movement qc pass: octp ibgp rr prefix withdraw qc pass: octp ibgp fullmesh prefix withdraw qc pass: olab+octp over ebgp qc pass: ocar+octp over ebgp qc pass: bgp csc vpn with ctp qc pass: bgp interas ctp with multiple labels ---------------------------------- 2023-02-07 07:49:15 23.2.7 no qc pass: other colors over bgp with soft-reconfig no qc pass: colors over bgp with soft-reconfig no qc pass: colors over bgp route server no qc pass: other colors over confed bgp no qc pass: colors over confed bgp no qc pass: other colors over ibgp rr no qc pass: colors over ibgp rr no qc pass: other colors over bgp additional path no qc pass: colors over bgp additional path no qc pass: other colors over ibgp no qc pass: colors over ibgp no qc pass: other colors over ebgp no qc pass: colors over ebgp qc pass: ctp colors over ebgp qc pass: other ctp colors over ebgp qc pass: ctp colors over ibgp qc pass: other ctp colors over ibgp qc pass: ctp colors over bgp additional path qc pass: other ctp colors over bgp additional path qc pass: ctp colors over ibgp rr qc pass: other ctp colors over ibgp rr qc pass: ctp colors over confed bgp qc pass: other ctp colors over confed bgp qc pass: ctp colors over bgp route server qc pass: ctp colors over bgp with soft-reconfig qc pass: other ctp colors over bgp with soft-reconfig ---------------------------------- 2023-02-07 08:05:50 23.2.7 no qc pass: other colors over bgp route server qc pass: other ctp colors over bgp route server qc pass: car colors over ebgp qc pass: other car colors over ebgp qc pass: car colors over ibgp qc pass: other car colors over ibgp qc pass: car colors over bgp additional path qc pass: other car colors over bgp additional path qc pass: car colors over ibgp rr qc pass: other car colors over ibgp rr qc pass: car colors over confed bgp qc pass: other car colors over confed bgp qc pass: car colors over bgp route server qc pass: other car colors over bgp route server qc pass: car colors over bgp with soft-reconfig qc pass: other car colors over bgp with soft-reconfig ---------------------------------- 2023-02-07 08:48:05 23.2.7 no qc pass: bgp interas ctp with multiple labels no qc pass: bgp csc vpn with ctp no qc pass: olab+octp over ebgp no qc pass: octp ibgp fullmesh prefix withdraw no qc pass: octp ibgp rr prefix withdraw no qc pass: octp ibgp rr prefix movement no qc pass: octp bgp change in metric no qc pass: octp bgp aggregation no qc pass: octp bgp egress route filtering with routepolicy with soft-reconfig no qc pass: octp bgp ingress route filtering with routepolicy with soft-reconfig no qc pass: octp bgp egress route filtering with routepolicy no qc pass: octp bgp ingress route filtering with routepolicy no qc pass: octp bgp egress route filtering with routemap with soft-reconfig no qc pass: octp bgp ingress route filtering with routemap with soft-reconfig no qc pass: octp bgp egress route filtering with prefixlist with soft-reconfig no qc pass: octp bgp ingress route filtering with prefixlist with soft-reconfig no qc pass: octp bgp egress route filtering with routemap no qc pass: octp bgp ingress route filtering with routemap no qc pass: octp bgp egress route filtering with prefixlist no qc pass: octp bgp ingress route filtering with prefixlist no qc pass: octp bgp default route no qc pass: octp over srv6 over bgp additional path no qc pass: octp over srv6 over bgp with soft-reconfig no qc pass: octp over srv6 over bgp route server no qc pass: octp over srv6 over confed bgp no qc pass: octp over srv6 over ibgp rr no qc pass: octp over srv6 over ebgp no qc pass: octp over srv6 over ibgp no qc pass: unicast+octp over confed bgp no qc pass: unicast+octp over ibgp rr no qc pass: unicast+octp over ibgp no qc pass: unicast+octp over bgp route server no qc pass: unicast+octp over bgp with additional path no qc pass: unicast+octp over bgp with soft-reconfig no qc pass: unicast+octp over ebgp no qc pass: ibgp rr prefix withdraw with ctp no qc pass: ibgp rr prefix movement with ctp no qc pass: bgp change in metric with ctp no qc pass: ctp bgp aggregation no qc pass: ctp bgp default route no qc pass: ctp bgp egress route filtering with routepolicy with soft-reconfig no qc pass: ctp bgp ingress route filtering with routepolicy with soft-reconfig no qc pass: ctp bgp egress route filtering with routepolicy no qc pass: ctp bgp ingress route filtering with routepolicy no qc pass: ctp bgp egress route filtering with routemap with soft-reconfig no qc pass: ctp bgp ingress route filtering with routemap with soft-reconfig no qc pass: ctp bgp egress route filtering with prefixlist with soft-reconfig no qc pass: ctp bgp ingress route filtering with prefixlist with soft-reconfig no qc pass: ctp bgp egress route filtering with routemap no qc pass: ctp bgp ingress route filtering with routemap no qc pass: ctp bgp egress route filtering with prefixlist no qc pass: ctp bgp ingress route filtering with prefixlist no qc pass: bgp soft-reconfig with ctp no qc pass: bgp route server with ctp no qc pass: confed bgp with ctp no qc pass: ibgp rr with ctp no qc pass: bgp additional path with php ctp no qc pass: ibgp with php ctp no qc pass: ebgp with php ctp no qc pass: bgp additional path with ctp no qc pass: ibgp with ctp no qc pass: ebgp with ctp qc pass: ebgp with car qc pass: ibgp with car qc pass: bgp additional path with car qc pass: ebgp with php car qc pass: ibgp with php car qc pass: bgp additional path with php car qc pass: ibgp rr with car qc pass: confed bgp with car qc pass: bgp route server with car qc pass: bgp soft-reconfig with car qc pass: car bgp ingress route filtering with prefixlist qc pass: car bgp egress route filtering with prefixlist qc pass: car bgp ingress route filtering with routemap qc pass: car bgp egress route filtering with routemap qc pass: car bgp ingress route filtering with prefixlist with soft-reconfig qc pass: car bgp egress route filtering with prefixlist with soft-reconfig qc pass: car bgp ingress route filtering with routemap with soft-reconfig qc pass: car bgp egress route filtering with routemap with soft-reconfig qc pass: car bgp ingress route filtering with routepolicy qc pass: car bgp egress route filtering with routepolicy qc pass: car bgp ingress route filtering with routepolicy with soft-reconfig qc pass: car bgp egress route filtering with routepolicy with soft-reconfig qc pass: car bgp default route qc pass: car bgp aggregation qc pass: bgp change in metric with car qc pass: ibgp rr prefix movement with car qc pass: ibgp rr prefix withdraw with car qc pass: unicast+ocar over ebgp qc pass: unicast+ocar over bgp with soft-reconfig qc pass: unicast+ocar over bgp with additional path qc pass: unicast+ocar over bgp route server qc pass: unicast+ocar over ibgp qc pass: unicast+ocar over ibgp rr qc pass: unicast+ocar over confed bgp qc pass: ocar over srv6 over ibgp qc pass: ocar over srv6 over ebgp qc pass: ocar over srv6 over ibgp rr qc pass: ocar over srv6 over confed bgp qc pass: ocar over srv6 over bgp route server qc pass: ocar over srv6 over bgp with soft-reconfig qc pass: ocar over srv6 over bgp additional path qc pass: ocar bgp default route qc pass: ocar bgp ingress route filtering with prefixlist qc pass: ocar bgp egress route filtering with prefixlist qc pass: ocar bgp ingress route filtering with routemap qc pass: ocar bgp egress route filtering with routemap qc pass: ocar bgp ingress route filtering with prefixlist with soft-reconfig qc pass: ocar bgp egress route filtering with prefixlist with soft-reconfig qc pass: ocar bgp ingress route filtering with routemap with soft-reconfig qc pass: ocar bgp egress route filtering with routemap with soft-reconfig qc pass: ocar bgp ingress route filtering with routepolicy qc pass: ocar bgp egress route filtering with routepolicy qc pass: ocar bgp ingress route filtering with routepolicy with soft-reconfig qc pass: ocar bgp egress route filtering with routepolicy with soft-reconfig qc pass: ocar bgp aggregation qc pass: ocar bgp change in metric qc pass: ocar ibgp rr prefix movement qc pass: ocar ibgp rr prefix withdraw qc pass: ocar ibgp fullmesh prefix withdraw qc pass: olab+ocar over ebgp qc pass: bgp csc vpn with car qc pass: bgp interas car with multiple labels ---------------------------------- 2023-02-08 20:02:57 23.2.8 no qc pass: p4lang: route filtering with routepolicy no qc pass: p4lang: route filtering with prefixlist qc pass: p4lang: fib route filtering with prefixlist qc pass: p4lang: fib filtering with routepolicy ---------------------------------- 2023-02-08 20:15:01 23.2.8 no qc pass: p4lang: route filtering with routemap no qc pass: p4lang: fib route filtering with prefixlist qc pass: p4lang: fib filtering with prefixlist qc pass: p4lang: fib filtering with routemap ---------------------------------- 2023-02-10 09:44:07 23.2.10 qc pass: interop1: igmp3/mld2 qc pass: interop1: pim ---------------------------------- 2023-02-11 00:13:06 23.2.10 todo: more tabbables ---------------------------------- 2023-02-11 02:58:09 23.2.11 todo: rework snmp to use sensors ---------------------------------- 2023-02-11 05:09:19 23.2.11 todo: router asdf vrf qwer, converted to current form todo: interface lo0 as lo-core, persistently ---------------------------------- 2023-02-11 11:03:46 23.2.11 todo: consider term caps todo: bgp to have xr-alike neighbor/template statements with upgrade-cli todo: more upgrade-cli knobs ---------------------------------- 2023-02-11 11:29:25 23.2.11 no todo: router asdf vrf qwer, converted to current form ---------------------------------- 2023-02-11 11:44:40 23.2.11 todo: more renamers ---------------------------------- 2023-02-15 13:46:45 23.2.15 todo: show ipv4 isis 1 graph 2 pretty ---------------------------------- 2023-02-15 19:17:11 23.2.15 no todo: show ipv4 isis 1 graph 2 pretty no qc pass: interop1: pim no qc pass: interop1: igmp3/mld2 qc pass: interop8: igmp3/mld2 qc pass: interop8: pim ---------------------------------- 2023-02-20 10:54:28 23.2.20 no todo: consider term caps ---------------------------------- 2023-02-26 06:23:16 23.2.26 todo: vnc console to the vdc definition todo: boot order to vdc definition ---------------------------------- 2023-02-26 07:28:36 23.2.26 todo: dn42ix-vm-switch#terminal no tablemode [fancy]--- % unknown exec command entered ---------------------------------- 2023-02-26 12:02:25 23.2.26 todo: fuckup from yesterday: the colsole times out now, go for it asap you crazy fool XD ---------------------------------- 2023-02-27 09:29:28 23.2.27 no todo: fuckup from yesterday: the colsole times out now, go for it asap you crazy fool XD ---------------------------------- 2023-02-27 11:02:25 23.2.27 no todo: boot order to vdc definition no todo: dn42ix-vm-switch#terminal no tablemode [fancy]--- % unknown exec command entered ---------------------------------- 2023-02-27 12:28:07 23.2.27 no todo: vnc console to the vdc definition ---------------------------------- 2023-02-27 20:25:01 23.2.27 todo: pastebin for the cli ---------------------------------- 2023-02-27 22:16:18 23.2.27 todo: server http and : in the file names ---------------------------------- 2023-02-28 00:58:52 23.2.28 no todo: server http and : in the file names ---------------------------------- 2023-02-28 15:53:45 23.2.28 todo: noflash -hw.txt knob, automatically on for vdcs ---------------------------------- 2023-02-28 17:18:05 23.2.28 no todo: noflash -hw.txt knob, automatically on for vdcs ---------------------------------- 2023-02-28 17:33:09 23.2.28 todo: send ttyX exec command ---------------------------------- 2023-02-28 20:27:52 23.2.28 no todo: send ttyX exec command ---------------------------------- 2023-03-01 09:33:37 23.3.1 todo: terminal background and foreground ---------------------------------- 2023-03-01 16:51:43 23.3.1 no todo: pastebin for the cli todo: curl ---------------------------------- 2023-03-01 17:04:00 23.3.1 todo: afi-vrf asdf setvrf todo: asn for remote-as -1 in shows ---------------------------------- 2023-03-03 12:24:49 23.3.3 no todo: afi-vrf asdf setvrf todo: test for afi-vrf asdf setvrf ---------------------------------- 2023-03-05 21:49:13 23.3.5 todo: zenmaster cli knob ---------------------------------- 2023-03-06 05:49:01 23.3.6 no todo: zenmaster cli knob ---------------------------------- 2023-03-06 20:11:29 23.3.6 qc pass: vpn colors over ebgp qc pass: vpn colors over ibgp ---------------------------------- 2023-03-06 21:10:20 23.3.6 no todo: asn for remote-as -1 in shows no todo: test for afi-vrf asdf setvrf ---------------------------------- 2023-03-11 08:50:49 23.3.11 qc pass: ebgp with any remote qc pass: ibgp with any remote ---------------------------------- 2023-03-15 17:24:03 23.3.13 todo: server smtp auto-reply editor/text/etc ---------------------------------- 2023-03-15 18:03:19 23.3.15 todo: ignorance kills ---------------------------------- 2023-03-15 21:16:50 23.3.15 no todo: ignorance kills ---------------------------------- 2023-03-15 21:59:25 23.3.15 todo: in servers, where applicable, introduce Files.setPosixFilePermissions(path, PosixFilePermissions.fromString("rw-r-----")); ---------------------------------- 2023-03-15 22:23:41 23.3.15 no todo: in servers, where applicable, introduce Files.setPosixFilePermissions(path, PosixFilePermissions.fromString("rw-r-----")); todo: in servers, where applicable, introduce Files.setPosixFilePermissions(path, PosixFilePermissions.fromString("rw-r-----")); or with http://www.java2s.com/Tutorials/Java/Java_io/1030__Java_nio_File_Owner_Permissions.htm ---------------------------------- 2023-03-16 03:32:01 23.3.16 todo: config committed with check for saved and backup config ---------------------------------- 2023-03-16 16:47:17 23.3.16 todo: renew the signing key! ---------------------------------- 2023-03-17 16:17:53 23.3.17 todo: rfc9340 todo: rfc9373 ---------------------------------- 2023-03-18 02:43:11 23.3.17 no todo: quic todo: quic when it have at least adjustmss... ---------------------------------- 2023-03-18 05:53:04 23.3.18 todo: lsrp / pvrp path-mtu-discovery / single-session todo: bgp/msdp: neigh x.x.x.x path-mtu-discovery todo: bgp/msdp: neigh x.x.x.x single-session todo: bgp/msdp: neigh x.x.x.x multi-session todo: bgp/msdp: neigh x.x.x.x zero-session ---------------------------------- 2023-03-18 20:37:15 23.3.18 no todo: bgp/msdp: neigh x.x.x.x zero-session no todo: bgp/msdp: neigh x.x.x.x multi-session no todo: bgp/msdp: neigh x.x.x.x single-session ---------------------------------- 2023-03-21 06:23:27 23.3.21 todo: server http / host * searchbar ---------------------------------- 2023-03-21 08:29:34 23.3.21 todo: server smtp / ptmud todo: server http / host * ptmud ---------------------------------- 2023-03-21 10:58:53 23.3.21 todo: server http / host * user-agent matcher todo: server http / host * custom-header ---------------------------------- 2023-04-28 03:40:47 23.4.28 no qc pass: qos ingress shaper action failed: qos ingress shaper action ---------------------------------- 2023-04-28 03:53:58 23.4.28 no failed: qos ingress shaper action qc pass: qos ingress shaper action ---------------------------------- 2023-05-02 16:50:00 23.5.2 no qc pass: dhcp with excluded address failed: dhcp with excluded address ---------------------------------- 2023-05-03 02:29:22 23.5.3 no failed: dhcp with excluded address qc pass: dhcp with excluded address ---------------------------------- 2023-05-08 00:05:09 23.5.7 todo: change the flash upgrade key ---------------------------------- 2023-05-08 02:59:05 23.5.8 todo: make polka configurable like the crypto stuff ---------------------------------- 2023-05-09 22:45:58 23.5.9 no todo: make polka configurable like the crypto stuff ---------------------------------- 2023-05-10 07:56:46 23.5.10 todo: test macaddr to convert to colon format todo: stop undver vpdn ---------------------------------- 2023-05-10 11:15:19 23.5.10 no todo: test macaddr to convert to colon format ---------------------------------- 2023-05-10 11:52:22 23.5.10 no todo: stop undver vpdn ---------------------------------- 2023-05-10 18:32:40 23.5.10 no todo: change the flash upgrade key ---------------------------------- 2023-05-12 00:34:28 23.5.10 todo: bgp neigh xxx collect-unknowns ---------------------------------- 2023-05-14 12:23:37 23.5.14 no todo: bgp neigh xxx collect-unknowns ---------------------------------- 2023-05-15 15:16:42 23.5.15 todo: sho run cons ---------------------------------- 2023-05-15 15:43:22 23.5.15 no todo: bgp/msdp: neigh x.x.x.x path-mtu-discovery no todo: lsrp / pvrp path-mtu-discovery / single-session no todo: server http / host * custom-header no todo: server http / host * user-agent matcher no todo: sho run cons todo: server http / host * custom-header knob todo: server http / host * user-agent matcher with redirect todo: lsrp / pvrp pmtud todo: bgp/msdp: neigh x.x.x.x pmtud ---------------------------------- 2023-05-15 18:37:55 23.5.15 todo: test access-list ---------------------------------- 2023-05-15 20:01:39 23.5.15 todo: sho run check/track todo: more show running commands ---------------------------------- 2023-05-16 01:36:06 23.5.16 todo: client upgrade-simulate url todo: client upgrade-force url todo: flash overlap-clear ---------------------------------- 2023-05-17 14:59:35 23.5.17 todo: client cidr-notation in the generated show *configs todo: ipv4 dhcp XXX like fill-ciaddr todo: show backup-config todo: inter xxx / macrandomize ---------------------------------- 2023-05-17 16:10:56 23.5.17 no todo: ipv4 dhcp XXX like fill-ciaddr no todo: client cidr-notation in the generated show *configs ---------------------------------- 2023-05-17 16:30:54 23.5.17 todo: client cidr-notation in the generated show *configs ---------------------------------- 2023-05-17 18:44:41 23.5.17 todo: more show config commands todo: more collect commands ---------------------------------- 2023-05-17 19:50:18 23.5.17 todo: more server quote fun like cleanups, randomizers, loggers, anything ---------------------------------- 2023-05-18 04:25:06 23.5.18 no todo: renew the signing key! no todo: rfc9373 no todo: rfc9340 todo: cmds.notvdc todo: configure server dns http smtp todo: show banner needs to be include-able todo: client password-stars to get under the userLine todo: portscan to have udp knob todo: client log-boot to be emailed error.log todo: client cidr-colorize in the generated show *configs todo: client http-user-agent todo: under redundancy sdr definition as an alias to vdc definition as upgrade-cli knob todo: vdc definition, redundancy hw.cfg int asdfasfsadasd redun .... desc asdfasfads instead of parent-name todo: under vdc * and redundancy, parent-name from cfgall.hostname todo: show redundancy to display the parent-name from hw-cfg.... todo: show redundancy link to run cdp/lldp/whatever???? todo: show redundancy to display the config checksum todo: test redundancy todo: clearredundancy ! to accept config download todo: test todo knob as an editor but in the running-config todo: java.lang.ArrayIndexOutOfBoundsException: Index 31 out of bounds for length 30 at bits.byteCopy:bits.java:469/packRadius.passwdEncrypt:packRadius.java:2645/packRadius.createPacket:packRadius.java:2396/clntRadius.doXchg:clntRadius.java:125/clntRadius.doPap:clntRadius.java:68/authRadius.authUserPass:authRadius.java:153/servHttpConn.checkUserAuth:servHttpConn.java:1021/servHttpConn.serveRequest:servHttpConn.java:1524/servHttpConn.run:servHttpConn.java:1887/java.lang.Thread.run:Thread.java:1623/ todo: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0:Net.java:-2/sun.nio.ch.Net.bind:Net.java:549/sun.nio.ch.Net.bind:Net.java:538/sun.nio.ch.NioSocketImpl.bind:NioSocketImpl.java:631/java.net.ServerSocket.bind:ServerSocket.java:391/java.net.ServerSocket.bind:ServerSocket.java:342/prtLocTcp.:prtLocTcp.java:60/prtLocTcp.startServer:prtLocTcp.java:78/cfgInit.executeHWcommands:cfgInit.java:438/cfgInit.doInit:cfgInit.java:965/cfgInit.doMain:cfgInit.java:1213/router.main:router.java:24/ todo: sho bgp * auto-summarize todo: more userLine fun like alias-text, alias-regexp, much like under checks todo: more server http fun like cleanups, randomizers, loggers, anything todo: more server smtp fun like cleanups, randomizers, loggers, anything todo: more server dns fun like cleanups, randomizers, loggers, anything todo: more server fun like cleanups, randomizers, loggers, anything todo: more fun like cleanups, randomizers, loggers, anything todo: more fun knobs in general todo: all the aaa stuff to have collect-failures knob to error.log todo: misc player volume to time out to the main screen todo: misc motion emails to contain a small note like check recordings here unarm rearm arm todo: flash mailer server-smtp todo: reuse the clients in the important servers as config knobs todo: more selftests for the servers and the clients todo: move client stuffs to userline if possible ---------------------------------- 2023-05-18 09:15:09 23.5.18 no todo: default vrf for show commands no todo: show backup-config no todo: clearredundancy ! to accept config download no todo: portscan to have udp knob no todo: configure server dns http smtp no todo: cmds.notvdc todo: show backup-config if available todo: todo: todo: todo: asdf#show check track | begin result todo: result: todo: - gep;normal;icmp;10.38.5.45;up; todo: + gep;normal;icmp;10.38.5.45;down; todo: nrpe:critical ERROR 2 line(s) in diff todo: - gep;normal;icmp;10.38.5.45;up; todo: + gep;normal;icmp;10.38.5.45;down; todo: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^through a crlf-crlf filter to look prettyier a bit todo: nrpe to send out emails from error.log todo: nrpe to have followtracker support todo: todo: todo: todo: scheduler asdf single-run as no respawn or something todo: todo: clntportscan to have udp knob then portscan to have the knob finally todo: todo: eddsa value for ipsexkey cannot be that bad cmds.negated cmds.negated cmds.negated cmds.negated cmds.negated cmds.negated route-policy converter todo: icmptunnel and l2tp3 to the dataplanes :) todo: player: disable volume in multicast streamer mode todo: disable playlist loading in multicast receiver mode todo: ctrl+l/r to try to redetect the screen resolution todo: some more autocolorizers under the same termial propertiles like terminal colorize mains subs etc todo: some cli errored keys should send terminal bell as terminal bell character todo: server dhcp4 sdnXXX ---> server dhcp4 sdnXXX inetXXX sdnZZZ as upgrade-cli <---maybe duplicate? :) todo: configure diff to have chance to change the sho config-differences todo: configure startup to have config committed but 4 now, only conf start tabbable stuffs todo: display asdfsdfas | asciinema <--- same as | pastebin.... todo: userline to have terminal bell :) todo: client irc todo: server security to have settable tls version from client knob first todo: server security to log the transactions todo: server security to stick to the good protocols todo: server security to support bgp bmp mrt todo: serevr security maximum pendings as access-security todo: bgp stuff more tests for rfc9234 todo: server asdf instead of server daytime asdf, and only if a single hit exists otherwise buggy todo: show whowas from bmp mrt archive todo: show p4/c/java autoformatter/colorizer/etc with enc7bit and more funs todo: misc/player: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "playerLyric.size()" because "" is null/ at playerSong.txt2pls(playerSong.java:142)/at findSongs.main(findSongs.java:62) todo: server http xxx to log better the class exceptions as errors todo: bgp to have at least show ipv46 bgp 66666 description todo: traffic through bgp sr-policy todo: traffic through bgp nsh todo: policy from bgp rpd todo: show ipv4 bgp 666 unicast database | include ^195.111.*$ todo: flash install as whole zip loadables todo: client auto-save-on-upgrade flash network archive todo: introduce risky stuffs as flash or even just as show like curl show url etc commands todo: tabbable line asfadsasd exec autocommand at least :) todo: noti#show ipv4 bgp ? todo: 1 - process id todo: 66666 - process id - as asdf todo: - process id todo: bgp to have the nexus dynamic capability exchange draft todo: vrf definition to have route consistency check todo: info ifcSgt.doDecode:ifcSgt.java:104 bad type (86dd) --- okk but where? :) on sdn123.123? right? :) todo: vrf def xxx to have dynamic readvertisements as static rotues that disappear from startup-config todo: show config-xxx to have tabbables like routers servers etc todo: router lsrp46/pvrp46/bgp46/maybe others to have a common configurator/show/etc todo: a terminal junos-mode knob that defaults to set-del etc as a new class todo: usascii filter with configurable space to underscore for the term tab csv output todo: asdf#show lldp neighbor | hinclude sdn todo: interface hostname iface ipv4 ipv6 todo: sdn2 laborSW2 ten-gigabitEthernet 1/0/4 null null todo: sdn5 pince-SW1 gigabitEthernet 1/0/2 null null todo: sdn6 pince-SW1 gigabitEthernet 1/0/3 null null todo: sdn901 mchome-demo ethernet11 10.2.1.6 2001:db8:1c::2 todo: sdn903 mchome-nat64 ethernet12 10.2.1.10 2001:db8:2f::2 todo: sdn905 wifi sdn0/0 10.1.1.50 2001:db8:1d::2 todo: asdf#show cdp neigh | hinclude sdn is fine but once the encUtf6/7 is there todo: it would not harm a lot to apply to the fillables like the check asdf todo: show backup-config if available todo: show banner needs to be include-able todo: asdf#show check track | begin result todo: result: todo: - gep;normal;icmp;10.38.5.45;up; todo: + gep;normal;icmp;10.38.5.45;down; todo: nrpe:critical ERROR 2 line(s) in diff todo: - gep;normal;icmp;10.38.5.45;up; todo: + gep;normal;icmp;10.38.5.45;down; todo: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^through a crlf-crlf filter to look prettyier a bit todo: nrpe to send out emails from error.log todo: nrpe to have followtracker support todo: scheduler asdf single-run as no respawn or something todo: clntportscan to have udp knob then portscan to have the knob finally todo: eddsa value for ipsexkey cannot be that bad cmds.negated cmds.negated cmds.negated vm20 todo: .vm <--> .class converter, debugger, disassembler, emulator, etc todo: .vm <--> .pyc converter, debugger, disassembler, emulator, etc todo: .vm <--> .pyc converter, debugger, disassembler, emulator, etc todo: more clean transpilers for the vm todo: more clean converters for the vm ---------------------------------- 2023-05-30 08:15:12 23.5.30 todo: terminal bell ---------------------------------- 2023-05-30 11:04:41 23.5.30 no todo: show banner needs to be include-able no todo: show backup-config if available no todo: sdn905 wifi sdn0/0 10.1.1.50 2001:db8:1d::2 no todo: sdn903 mchome-nat64 ethernet12 10.2.1.10 2001:db8:2f::2 no todo: sdn901 mchome-demo ethernet11 10.2.1.6 2001:db8:1c::2 no todo: sdn6 pince-SW1 gigabitEthernet 1/0/3 null null no todo: sdn5 pince-SW1 gigabitEthernet 1/0/2 null null no todo: sdn2 laborSW2 ten-gigabitEthernet 1/0/4 null null no todo: interface hostname iface ipv4 ipv6 no todo: asdf#show lldp neighbor | hinclude sdn no todo: usascii filter with configurable space to underscore for the term tab csv output todo: show config-backup if available ---------------------------------- 2023-06-01 06:21:13 23.5.31 no todo: quic when it have at least adjustmss... todo: quic v1 and v2 when it have at least adjustmss... ---------------------------------- 2023-06-05 06:28:25 23.6.5 no todo: show ipv4 bgp 666 unicast database | include ^195.111.*$ no todo: userline to have terminal bell :) no todo: some cli errored keys should send terminal bell as terminal bell character no todo: terminal bell todo: p4lang interpreter like interface xxxx / p4lang asdf.p4 ---------------------------------- 2023-06-05 17:25:48 23.6.5 todo: ping to have ip flags settable like rfc3514 ---------------------------------- 2023-06-05 23:07:58 23.6.5 no todo: .vm <--> .pyc converter, debugger, disassembler, emulator, etc no todo: misc player volume to time out to the main screen no todo: test redundancy no todo: show redundancy to display the config checksum no todo: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^through a crlf-crlf filter to look prettyier a bit no todo: + gep;normal;icmp;10.38.5.45;down; no todo: - gep;normal;icmp;10.38.5.45;up; no todo: nrpe:critical ERROR 2 line(s) in diff no todo: + gep;normal;icmp;10.38.5.45;down; no todo: - gep;normal;icmp;10.38.5.45;up; no todo: result: no todo: asdf#show check track | begin result ---------------------------------- 2023-06-06 12:12:56 23.6.6 todo: bier in layer2, rfc8296 ethertype 0xab37 ---------------------------------- 2023-06-06 18:26:17 23.6.6 todo: last config change by to the end knob ---------------------------------- 2023-06-07 10:21:31 23.6.7 no todo: bgp to have the nexus dynamic capability exchange draft qc pass: unicast+vpns over ebgp with dynamic capability qc pass: unicast+vpns over ibgp with dynamic capability qc pass: unicast+vpns over confed bgp with dynamic capability qc pass: unicast+vpns over ibgp rr with dynamic capability ---------------------------------- 2023-06-07 18:42:22 23.6.7 no todo: bier in layer2, rfc8296 ethertype 0xab37 ---------------------------------- 2023-06-07 19:21:04 23.6.7 qc pass: mpls over multicast ethertype qc pass: mpls over bier ethertype ---------------------------------- 2023-06-08 00:36:45 23.6.8 todo: interface to have ipv4 dhcp-static knobs ---------------------------------- 2023-06-08 05:47:23 23.6.8 no todo: ping to have ip flags settable like rfc3514 ---------------------------------- 2023-06-08 18:20:03 23.6.8 no todo: p4lang interpreter like interface xxxx / p4lang asdf.p4 todo: p4lang interpreter like interface xxxx / p4lang asdf.p4 / needs: encHdr over packHolder, tabMatchActionTable, and usrP4intPtr with per line hitcounter ---------------------------------- 2023-06-12 09:13:53 23.6.12 no todo: redundancy prio from rtr-hw.txt no todo: clear redundancy ! to accept config download no todo: under vdc * / redundancy parent-name from cfgall.hostname :) ---------------------------------- 2023-06-12 13:18:51 23.6.12 no todo: show redundancy to display the parent-name from hw-cfg.... no todo: under vdc * and redundancy, parent-name from cfgall.hostname no todo: vdc definition, redundancy hw.cfg int asdfasfsadasd redun .... desc asdfasfads instead of parent-name no todo: show redundancy to display the config checksum no todo: show redundancy to display the parent-name from hw-cfg.... :) no todo: hw.cfg int asdfasfsadasd redun .... desc asdfasfads instead of parent-name ---------------------------------- 2023-06-12 14:11:51 23.6.12 no todo: show redundancy link to run cdp/lldp/whatever???? no todo: show redundancy to run cdp/lldp/whatever that fits like ipv46,arp/nd/why-not-more then a new video about that ---------------------------------- 2023-06-12 14:42:47 23.6.12 no todo: clearredundancy ! to accept config download no todo: test redundancy ---------------------------------- 2023-06-12 15:01:45 23.6.12 no todo: server smtp / tag messages by subject route-policy converter todo: l2tp3 to the dataplanes :) todo: route-map --> route-policy converter todo: route-map <-- route-policy converter todo: tabbable line asfadsasd exec autocommand at least todo: vrf definition to have route consistency check between the bgp peers ---------------------------------- 2023-06-13 17:11:57 23.6.13 no todo: l2tp3 to the dataplanes :) todo: l2tp3 to the dataplanes as it is for l2tp2 :) todo: icmptunnel to the dataplanes with a valid req-rep if possible :) ---------------------------------- 2023-06-13 21:51:07 23.6.13 todo: server http xxx style xxxx deduplicate on add!!!! todo: p4lang api: export-copp to have a vrf id, then to the dataplanes asapp, where easily applicable todo: server smtp / have a show-queue list at least ---------------------------------- 2023-06-14 03:21:14 23.6.14 todo: onehit to all the menus todo: tabbable menu key/tui commands autocommand at least ---------------------------------- 2023-06-14 04:11:55 23.6.14 todo: menu remote asdf ---------------------------------- 2023-06-14 12:06:15 23.6.14 no todo: icmptunnel to the dataplanes with a valid req-rep if possible :) no todo: p4lang api: export-copp to have a vrf id, then to the dataplanes asapp, where easily applicable no todo: tester to configure console0 exec timestamp and logging millis todo: test hwredetect that uses some external file and a p4lang process to overcome the eth0-->eno1-->eth0 random changes, by mac and friends todo: important protocols to be able to continue from the start at least on local, later within the vdc todo: p4lang api: export-copp to have a vrf id and a rate, then to the dataplanes asapp, where easily applicable todo: icmptunnel to the dataplanes with a valid req-rep if possible with a configurable checksum field... :) todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre or icmptunnel todo: tcp redundancy through the redundancy link with the help of the main vdc's tcp stack as a pipe service... then pvrp, lsrp, bgp, msdp, later isis and ospf eigrp and rip redundancy the same way but with udp and ethertype, finally mpls ldp and rsvp and sr redundancy through the same way ---------------------------------- 2023-06-14 12:36:33 23.6.14 no todo: server http xxx style xxxx deduplicate on add!!!! ---------------------------------- 2023-06-14 18:24:20 23.6.14 no todo: tcp redundancy through the redundancy link with the help of the main vdc's tcp stack as a pipe service... then pvrp, lsrp, bgp, msdp, later isis and ospf eigrp and rip redundancy the same way but with udp and ethertype, finally mpls ldp and rsvp and sr redundancy through the same way todo: traceroute to generate the full line with routing protocols etc from mrt and friends todo: tcp redundancy through the redundancy link as table export and file sending before the switchover... todo: then pvrp, lsrp, bgp, msdp, later isis and ospf eigrp and rip redundancy with table export and finally mpls redundancy through the same way... ---------------------------------- 2023-06-15 18:44:05 23.6.15 todo: asn negative cache ---------------------------------- 2023-06-16 11:47:41 23.6.16 no todo: traceroute to generate the full line with routing protocols etc from mrt and friends no todo: asn negative cache ---------------------------------- 2023-06-16 16:08:18 23.6.16 todo: misc natives p4fwd to have the packetout message too from the control channel as planned originally 4 the asic... it'll solve the big misery of the macsec/wg/ipsec/ovpn/etc-linerate-forwarding-over-bgp for the oddline questions; fl, it was a bad decision to clean that upp b4 we had linerate crypto ---------------------------------- 2023-06-18 11:59:59 23.6.17 todo: mist natives to have ipcomp rfc somehow ---------------------------------- 2023-06-22 20:39:06 23.6.22 no todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre or icmptunnel no todo: icmptunnel to the dataplanes with a valid req-rep if possible with a configurable checksum field... :) todo: consider adding icmptunnel to the dataplanes with a valid req-rep if possible with a configurable checksum field... :) todo: consider adding ipcomp tunnel to the dataplanes that interworks and decodes in wireshark todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre, or pimtunnel icmptunnel ---------------------------------- 2023-06-23 07:26:11 23.6.23 todo: mpls as ipv8 as december project to the guessEthtype and maybe to the dataplanes (dont think so) ---------------------------------- 2023-06-23 09:00:32 23.6.23 todo: measurement framework for bandwidth, twamp, icmp and friends with offloading by abusing the packout api ---------------------------------- 2023-06-23 10:54:12 23.6.23 todo: a preface forwarder for the asic offload to have at crypto and frag/reasm using misc/natives ---------------------------------- 2023-06-23 13:58:05 23.6.23 todo: mpls srv6-security in software, with a test with gre at least then to the dataplanes ---------------------------------- 2023-06-23 18:27:14 23.6.23 qc pass: gre over ipv4 filtered qc pass: sreth over ipv4 filtered qc pass: ipip over ipv4 filtered qc pass: icmptunnel over ipv4 filtered qc pass: ipv4 in esp over ipv4 filtered qc pass: ipcomp over ipv4 filtered qc pass: swipe over ipv4 filtered qc pass: gre over ipv6 filtered qc pass: sreth over ipv6 filtered qc pass: ipip over ipv6 filtered qc pass: icmptunnel over ipv6 filtered qc pass: ipv4 in esp over ipv6 filtered qc pass: ipcomp over ipv6 filtered failed: swipe over ipv6 filtered ---------------------------------- 2023-06-23 19:10:07 23.6.23 no failed: swipe over ipv6 filtered qc pass: swipe over ipv6 filtered ---------------------------------- 2023-06-24 07:01:18 23.6.24 todo: test if bier to headend-replicate to two paths over bgp-ct vrfs ---------------------------------- 2023-06-24 11:43:53 23.6.24 no todo: test if bier to headend-replicate to two paths over bgp-ct vrfs no todo: mpls srv6-security in software, with a test with gre at least then to the dataplanes todo: test if bier to headend-replicate to two paths over bgp-ct vrfs and not clearing the bits on the replicas ---------------------------------- 2023-06-24 23:39:40 23.6.24 todo: test if bier in a ring copcept with a knob like int sdn1.111 mpls bier replicate sdn1.222 loops or not ---------------------------------- 2023-06-25 07:19:40 23.6.25 no todo: mist natives to have ipcomp rfc somehow todo: mist natives to have ipcomp rfc somehow dissect this: packages.debian.org/sid/gzip so what to link to? ---------------------------------- 2023-06-25 07:50:59 23.6.25 no todo: mist natives to have ipcomp rfc somehow dissect this: packages.debian.org/sid/gzip so what to link to? todo: mist natives to have ipcomp rfc somehow dissect this: packages.debian.org/sid/gzip so libc and deflate to link to ---------------------------------- 2023-06-25 20:28:29 23.6.25 qc pass: p4lang: packout on port ---------------------------------- 2023-07-01 08:08:52 23.7.1 no qc pass: p4lang downlink no qc pass: p4lang demultiplexer failed: p4lang demultiplexer failed: p4lang downlink ---------------------------------- 2023-07-01 08:36:26 23.7.1 no failed: p4lang downlink no failed: p4lang demultiplexer qc pass: p4lang demultiplexer qc pass: p4lang downlink ---------------------------------- 2023-07-02 08:17:04 23.7.2 todo: flash commander to have file info and hash ---------------------------------- 2023-07-02 20:00:38 23.7.2 todo: sho ipv4 bgp 666 uni hackerized 1.1.1.1 todo: banyan vines protocol in sw ---------------------------------- 2023-07-02 20:48:28 23.7.2 todo: hackediff alias to diff with the | hacked fun filter ---------------------------------- 2023-07-05 15:37:45 23.7.5 no todo: server http / host * custom-header knob no todo: bgp stuff more tests for rfc9234 todo: bgp stuff more tests for rfc9234 and a knob to align to the frr or b1rd version todo: server http / host * webring-local todo: server http / host * webring-remote todo: server http / host * custom-local todo: server http / host * custom-remote >path/file> ---------------------------------- 2023-07-06 03:04:37 23.7.6 todo: traceback as exeption knob to the lines, default set on console0 ---------------------------------- 2023-07-08 08:31:01 23.7.8 todo: server http / host * redir to default fill /data/www/ and subconn stuff ---------------------------------- 2023-07-08 12:28:56 23.7.8 no todo: sho ipv4 bgp 666 uni hackerized 1.1.1.1 ---------------------------------- 2023-07-09 14:43:10 23.7.9 no todo: server http / host * redir to default fill /data/www/ and subconn stuff ---------------------------------- 2023-07-13 04:16:01 23.7.13 todo: client whois-online http://ipinfo.io/AS$asn$ everywhere ---------------------------------- 2023-07-13 06:43:55 23.7.13 no todo: client whois-online http://ipinfo.io/AS$asn$ everywhere ---------------------------------- 2023-07-14 17:05:06 23.7.14 no todo: traceback as exeption knob to the lines, default set on console0 ---------------------------------- 2023-07-15 20:20:03 23.7.15 qc pass: p4lang: packout on vlan port ---------------------------------- 2023-07-17 15:24:03 23.7.17 no todo: server smtp / have a show-queue list at least no todo: test if bier in a ring copcept with a knob like int sdn1.111 mpls bier replicate sdn1.222 loops or not no todo: misc natives p4fwd to have the packetout message too from the control channel as planned originally 4 the asic... it'll solve the big misery of the macsec/wg/ipsec/ovpn/etc-linerate-forwarding-over-bgp for the oddline questions; fl, it was a bad decision to clean that upp b4 we had linerate crypto todo: misc natives p4fwd to have more tests 4 packetout message with macsec/wg/ipsec/ovpn/etc too... todo: test if bier in a ring concept with a knob like int sdn1.111 mpls bier replicate sdn1.222 loops or not ---------------------------------- 2023-07-18 21:55:29 23.7.18 no todo: quic v1 and v2 when it have at least adjustmss... todo: quic v1, v2 and mls, when these have at least adjustmss... ---------------------------------- 2023-07-19 04:32:02 23.7.19 todo: bridge and router have renumber knob ---------------------------------- 2023-07-25 11:21:24 23.7.25 todo: player queue up down add-again todo: sid(cfg-check)#show config-differences this todo: openflow to have 2 label support and stack to p4lang todo: decouple rpki from bgp process todo: redundancy to have the shows ---------------------------------- 2023-07-25 22:25:18 23.7.25 todo: flash ext-delete ---------------------------------- 2023-07-26 07:55:12 23.7.26 no todo: flash ext-delete todo: serves to have access-aaa todo: flash ext-delete also to commander todo: commander to have selection todo: commander to get away the cursor ---------------------------------- 2023-07-29 06:55:56 23.7.29 todo: serv http InvocationTargetException to have auto logging in the traceback ---------------------------------- 2023-07-30 05:32:57 23.7.30 todo: sho cdp/lldp int ---------------------------------- 2023-08-24 03:56:20 23.8.24 todo: ioam as https://www.rfc-editor.org/rfc/rfc9452.html ---------------------------------- 2023-08-25 01:41:24 23.8.25 no todo: bgp/msdp: neigh x.x.x.x pmtud no todo: serves to have access-aaa todo: tests for bgp/msdp: neigh x.x.x.x pmtud todo: servers to have access-aaa ---------------------------------- 2023-08-25 13:02:56 23.8.25 no todo: lsrp / pvrp pmtud todo: game tree todo: tests for lsrp / pvrp pmtud ---------------------------------- 2023-08-28 03:34:59 23.8.27 no todo: game tree todo: own minimal jpython if something happens to graalvm's builtins like https://github.com/ninia/jep todo: game pinball ---------------------------------- 2023-09-06 16:04:44 23.9.6 todo: image viewer to file manager todo: experiment with freebsd as a host os ---------------------------------- 2023-09-08 04:03:21 23.9.8 todo: server http to have whatsmyip whatsmyasn etc services ---------------------------------- 2023-09-09 11:15:48 23.9.9 todo: server http to have lookingglass ---------------------------------- 2023-09-10 03:13:06 23.9.10 todo: acl to have fake knob that syn-rst, udp-port-unreach, at the dataplanes todo: inspection dropped sessions do be able to close the sessions properly at layer4 ---------------------------------- 2023-09-12 18:19:04 23.9.12 todo: bgp unknowns-log knob ---------------------------------- 2023-09-14 00:04:41 23.9.13 no todo: quic v1, v2 and mls, when these have at least adjustmss... no todo: ioam as https://www.rfc-editor.org/rfc/rfc9452.html todo: consider draft-ietf-idr-performance-routing todo: ioam as rfc9452 todo: dlep as rfc8175 todo: rfc9000 quic v1, v2 and mls, when these have at least adjustmss... todo: rfc8548 tcpcrypt ---------------------------------- 2023-09-19 09:59:35 23.9.19 qc pass: ebgp with pmtud qc pass: ibgp with pmtud ---------------------------------- 2023-09-19 16:18:49 23.9.19 no todo: tests for lsrp / pvrp pmtud no todo: tests for bgp/msdp: neigh x.x.x.x pmtud todo: generalize ipinfo for bgp/msdp: neigh x.x.x.x pmtud instead todo: generalize ipinfo tests for lsrp / pvrp pmtud ---------------------------------- 2023-09-19 22:14:27 23.9.19 no todo: server http to have lookingglass no todo: server http to have whatsmyip whatsmyasn etc services todo: server http to have show only api ---------------------------------- 2023-09-20 19:45:23 23.9.20 no todo: server http to have show only api qc pass: lsrp with pmtud qc pass: pvrp with pmtud ---------------------------------- 2023-09-23 12:18:27 23.9.23 no todo: game pinball no todo: own minimal jpython if something happens to graalvm's builtins like https://github.com/ninia/jep no todo: generalize ipinfo tests for lsrp / pvrp pmtud no todo: generalize ipinfo for bgp/msdp: neigh x.x.x.x pmtud instead todo: game butterfly series reusing the fft and mdev classes from modem and ping ---------------------------------- 2023-09-23 21:20:20 23.9.23 todo: generalize dynamic-metric knobs todo: more knob generalizations ---------------------------------- 2023-09-24 06:50:43 23.9.24 todo: generalise server access- knobs todo: server http to have api for scripts ---------------------------------- 2023-09-26 10:07:27 23.9.26 no todo: serv http InvocationTargetException to have auto logging in the traceback ---------------------------------- 2023-09-26 20:17:08 23.9.26 no todo: sid(cfg-check)#show config-differences this ---------------------------------- 2023-09-26 21:33:19 23.9.26 no todo: sho cdp/lldp int todo: image builder to support different bootloaders ---------------------------------- 2023-09-27 11:06:44 23.9.27 todo: vdc to have local, connect as sdn autocreated ---------------------------------- 2023-09-29 05:32:15 23.9.29 no todo: image builder to support different bootloaders no todo: experiment with freebsd as a host os ---------------------------------- 2023-09-30 19:46:34 23.9.30 no todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre, or pimtunnel icmptunnel no todo: consider adding ipcomp tunnel to the dataplanes that interworks and decodes in wireshark no todo: consider adding icmptunnel to the dataplanes with a valid req-rep if possible with a configurable checksum field... :) no todo: measurement framework for bandwidth, twamp, icmp and friends with offloading by abusing the packout api todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre, or pim icmp ipcomp ---------------------------------- 2023-10-02 01:13:34 23.10.2 todo: bgp end-changes-log knob ---------------------------------- 2023-10-02 20:17:00 23.10.2 no todo: bgp unknowns-log knob ---------------------------------- 2023-10-03 08:10:05 23.10.3 no todo: bgp end-changes-log knob todo: bgp neigh log-end-changes log-route-map/policy knob ---------------------------------- 2023-10-03 08:38:06 23.10.3 todo: game hanoi ---------------------------------- 2023-10-03 22:16:23 23.10.3 todo: bmp server to listeners, bmp, ris and bgp todo: server bgprsrr todo: honeypot to use any router ---------------------------------- 2023-10-05 08:41:48 23.10.5 no todo: bgp neigh log-end-changes log-route-map/policy knob todo: bgp neigh log-end-changes log-pathlen-changes log-route-map/policy/pfxlist-changes etc knob ---------------------------------- 2023-10-05 21:29:56 23.10.5 todo: honeypot to wireformat, decode ---------------------------------- 2023-10-09 17:27:46 23.10.9 todo: allow some packages to be redownloaded after a certain time expired ---------------------------------- 2023-10-11 10:00:49 23.10.11 todo: server whois to be cache ---------------------------------- 2023-10-11 13:46:54 23.10.11 no todo: server whois to be cache ---------------------------------- 2023-10-11 23:32:07 23.10.11 no todo: honeypot to use any router ---------------------------------- 2023-10-15 23:16:05 23.10.15 no todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre, or pim icmp ipcomp no qc pass: bgp rpki failed: bgp rpki todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre, or pim ax25 icmp ipcomp ---------------------------------- 2023-10-16 03:46:30 23.10.16 no failed: bgp rpki qc pass: bgp rpki ---------------------------------- 2023-10-17 09:16:21 23.10.17 no todo: decouple rpki from bgp process todo: bgp astree shows from asconn todo: more rpki shows like validation of protocols tables, comparison of neighbors, etc ---------------------------------- 2023-10-17 17:10:25 23.10.17 no qc pass: bgp leak prevention with customer provider failed: bgp leak prevention with customer provider ---------------------------------- 2023-10-17 18:02:49 23.10.17 no failed: bgp leak prevention with customer provider qc pass: bgp leak prevention with customer provider ---------------------------------- 2023-10-17 18:37:28 23.10.17 no todo: redundancy to have the shows todo: redundancy to have the remote shows and a counter on how many failures observed ---------------------------------- 2023-10-17 20:56:46 23.10.17 no todo: bgp stuff more tests for rfc9234 and a knob to align to the frr or b1rd version ---------------------------------- 2023-10-19 15:11:17 23.10.19 todo: add rpl and rm support for the new validity, entropy-label and the (atomic)aggregate stuffs ---------------------------------- 2023-10-20 08:52:07 23.10.20 no todo: allow some packages to be redownloaded after a certain time expired todo: rfc9298 rfc9484 ip/udp-proxy-in-http ---------------------------------- 2023-10-21 04:57:15 23.10.21 no qc pass: bgp rpki failed: bgp rpki ---------------------------------- 2023-10-21 08:20:56 23.10.21 no failed: bgp rpki qc pass: bgp rpki ---------------------------------- 2023-10-21 09:05:07 23.10.21 no qc pass: bgp rpki failed: bgp rpki ---------------------------------- 2023-10-21 20:51:26 23.10.21 no failed: bgp rpki qc pass: bgp rpki ---------------------------------- 2023-10-22 01:30:21 23.10.22 no todo: more rpki shows like validation of protocols tables, comparison of neighbors, etc no todo: add rpl and rm support for the new validity, entropy-label and the (atomic)aggregate stuffs ---------------------------------- 2023-10-22 17:31:12 23.10.22 qc pass: bgp routemap filtering with validity qc pass: bgp routemap filtering with validity with soft-reconfig qc pass: bgp change in validity qc pass: bgp change in validity with soft-reconfig qc pass: bgp routepolicy filtering with validity qc pass: bgp routepolicy filtering with validity with soft-reconfig ---------------------------------- 2023-10-23 08:36:56 23.10.23 todo: vpnv4 vpnv6 in evpn like address-family l2vpn evpn / advertise vpnv4 unicast ---------------------------------- 2023-10-23 13:59:01 23.10.23 no todo: l2tp3 to the dataplanes as it is for l2tp2 :) no todo: game hanoi no todo: game butterfly series reusing the fft and mdev classes from modem and ping todo: game butterfly hanoy, modem, mdev ---------------------------------- 2023-10-24 09:06:54 23.10.24 no todo: in servers, where applicable, introduce Files.setPosixFilePermissions(path, PosixFilePermissions.fromString("rw-r-----")); or with http://www.java2s.com/Tutorials/Java/Java_io/1030__Java_nio_File_Owner_Permissions.htm qc pass: bgp routemap filtering with leak-role qc pass: bgp routemap filtering with leak-role with soft-reconfig qc pass: bgp change in leak-role qc pass: bgp change in leak-role with soft-reconfig qc pass: bgp routepolicy filtering with leak-role qc pass: bgp routepolicy filtering with leak-role with soft-reconfig qc pass: bgp routemap filtering with aggregator qc pass: bgp routemap filtering with aggregator with soft-reconfig qc pass: bgp change in aggregator qc pass: bgp change in aggregator with soft-reconfig qc pass: bgp routepolicy filtering with aggregator qc pass: bgp routepolicy filtering with aggregator with soft-reconfig ---------------------------------- 2023-10-24 11:49:51 23.10.24 no todo: bgp astree shows from asconn ---------------------------------- 2023-10-24 16:05:18 23.10.24 no todo: p4lang api: export-copp to have a vrf id and a rate, then to the dataplanes asapp, where easily applicable ---------------------------------- 2023-10-25 22:26:42 23.10.25 no todo: vpnv4 vpnv6 in evpn like address-family l2vpn evpn / advertise vpnv4 unicast no qc pass: ibgp rr othervpns prefix withdraw no qc pass: ibgp rr vpns prefix withdraw no qc pass: bgp othervpns change in metric no qc pass: bgp vpns change in metric failed: bgp vpns change in metric failed: bgp othervpns change in metric failed: ibgp rr vpns prefix withdraw failed: ibgp rr othervpns prefix withdraw qc pass: l3evpns over ebgp qc pass: l3evpns over ibgp qc pass: l3evpns over ibgp rr qc pass: l3evpns over confed bgp qc pass: l3evpns over bgp route server qc pass: l3evpns over bgp with soft-reconfig qc pass: l3evpns over bgp additional path qc pass: l3evpns over bgp auto mesh tunnel qc pass: l3otherevpns over ebgp qc pass: l3eothervpns over ibgp qc pass: l3otherevpns over ibgp rr qc pass: l3otherevpns over confed bgp qc pass: l3otherevpns over bgp route server qc pass: l3otherevpns over bgp with soft-reconfig qc pass: l3otherevpns over bgp additional path qc pass: l3otherevpns over bgp auto mesh tunnel ---------------------------------- 2023-10-26 06:18:03 23.10.26 no failed: ibgp rr othervpns prefix withdraw no failed: ibgp rr vpns prefix withdraw no failed: bgp othervpns change in metric no failed: bgp vpns change in metric qc pass: bgp vpns change in metric qc pass: bgp othervpns change in metric qc pass: ibgp rr vpns prefix withdraw qc pass: ibgp rr othervpns prefix withdraw ---------------------------------- 2023-10-27 12:54:27 23.10.27 qc pass: l3evpns with default route qc pass: otherl3evpns with default route qc pass: bgp l3evpns change in metric qc pass: ibgp rr l3evpns prefix movement failed: bgp otherl3evpns change in metric qc pass: ibgp rr otherl3evpns prefix movement qc pass: ibgp rr l3evpns prefix withdraw qc pass: ibgp rr otherl3evpns prefix withdraw qc pass: l3evpns with ingress rtfilter qc pass: l3evpns with egress rtfilter qc pass: otherl3evpns with ingress rtfilter qc pass: otherl3evpns with egress rtfilter qc pass: unicast+l3evpns over ebgp with dynamic capability qc pass: unicast+l3evpns over ibgp with dynamic capability qc pass: unicast+l3evpns over confed bgp with dynamic capability qc pass: unicast+l3evpns over ibgp rr with dynamic capability ---------------------------------- 2023-10-27 16:10:19 23.10.27 no failed: bgp otherl3evpns change in metric no qc pass: bgp routepolicy filtering with afi with soft-reconfig no qc pass: bgp routemap filtering with afi with soft-reconfig no qc pass: bgp routepolicy filtering with afi no qc pass: bgp routemap filtering with afi failed: bgp routemap filtering with afi failed: bgp routepolicy filtering with afi failed: bgp routemap filtering with afi with soft-reconfig failed: bgp routepolicy filtering with afi with soft-reconfig qc pass: bgp otherl3evpns change in metric ---------------------------------- 2023-10-27 17:12:02 23.10.27 no failed: bgp routepolicy filtering with afi with soft-reconfig no failed: bgp routemap filtering with afi with soft-reconfig no failed: bgp routepolicy filtering with afi no failed: bgp routemap filtering with afi qc pass: bgp routemap filtering with afi qc pass: bgp routepolicy filtering with afi qc pass: bgp routemap filtering with afi with soft-reconfig qc pass: bgp routepolicy filtering with afi with soft-reconfig ---------------------------------- 2023-10-28 08:19:40 23.10.28 no todo: honeypot to wireformat, decode todo: honeypot to wireformat, decode, newlines per singleline ---------------------------------- 2023-10-28 18:16:07 23.10.28 no todo: honeypot to wireformat, decode, newlines per singleline todo: honeypot to wireformat, decode ---------------------------------- 2023-11-01 16:29:57 23.11.1 no todo: server bgprsrr no todo: bmp server to listeners, bmp, ris and bgp ---------------------------------- 2023-11-02 07:26:55 23.11.2 qc pass: l3evpns ingress route filtering with routemap qc pass: l3evpns egress route filtering with routemap qc pass: l3evpns ingress route filtering with routemap with soft-reconfig qc pass: l3evpns egress route filtering with routemap with soft-reconfig qc pass: l3evpns ingress route filtering with routepolicy qc pass: l3evpns egress route filtering with routepolicy qc pass: l3evpns ingress route filtering with routepolicy with soft-reconfig qc pass: l3evpns egress route filtering with routepolicy with soft-reconfig qc pass: otherl3evpns ingress route filtering with routemap qc pass: otherl3evpns egress route filtering with routemap qc pass: otherl3evpns ingress route filtering with routemap with soft-reconfig qc pass: otherl3evpns egress route filtering with routemap with soft-reconfig qc pass: otherl3evpns ingress route filtering with routepolicy qc pass: otherl3evpns egress route filtering with routepolicy qc pass: otherl3evpns ingress route filtering with routepolicy with soft-reconfig qc pass: otherl3evpns egress route filtering with routepolicy with soft-reconfig ---------------------------------- 2023-11-02 19:53:49 23.11.2 todo: tocustomer aggregator matchers to route-map/policy ---------------------------------- 2023-11-05 14:59:21 23.11.5 no qc pass: ebgp with ttl-security no qc pass: ibgp with ttl-security failed: ibgp with ttl-security failed: ebgp with ttl-security ---------------------------------- 2023-11-05 17:05:10 23.11.5 no failed: ebgp with ttl-security no failed: ibgp with ttl-security qc pass: ibgp with ttl-security qc pass: ebgp with ttl-security ---------------------------------- 2023-11-07 15:57:06 23.11.7 no qc pass: ebgp with bfd failed: ebgp with bfd ---------------------------------- 2023-11-07 16:12:49 23.11.7 no failed: ebgp with bfd qc pass: ebgp with bfd ---------------------------------- 2023-11-07 19:01:13 23.11.7 todo: rfc9491 nsh in ip ---------------------------------- 2023-11-07 22:39:08 23.11.7 qc pass: nsh over ipv4 tunnel qc pass: nsh over ipv6 tunnel ---------------------------------- 2023-11-08 14:05:21 23.11.8 no todo: commander to have selection no todo: tocustomer aggregator matchers to route-map/policy no todo: rfc9491 nsh in ip ---------------------------------- 2023-11-08 18:13:39 23.11.8 qc pass: p4lang: l2tp3 routing over ipv4 qc pass: p4lang: l2tp3 routing over ipv6 ---------------------------------- 2023-11-08 19:15:31 23.11.8 qc pass: p4lang: ingress l2tp3 access list qc pass: p4lang: egress l2tp3 access list qc pass: p4lang: ingress vlan l2tp3 access list qc pass: p4lang: egress vlan l2tp3 access list qc pass: p4lang: l2tp3 interface inspection with ingress drop qc pass: p4lang: l2tp3 interface inspection with egress drop qc pass: p4lang: l2tp3 interface verify source qc pass: p4lang: l2tp3 interface loose verify source ---------------------------------- 2023-11-08 21:38:36 23.11.8 qc pass: p4lang: macsec over l2tp3 qc pass: p4lang: sgt over l2tp3 qc pass: p4lang: l2tp3 server routing qc pass: p4lang: vlan l2tp3 server routing qc pass: p4lang: l2tp3 server mpls qc pass: p4lang: vlan l2tp3 server mpls qc pass: p4lang: mldp core over l2tp3 qc pass: p4lang: bier core over l2tp3 qc pass: p4lang: l2tp3 mpls pop qc pass: p4lang: l2tp3 mpls push qc pass: p4lang: l2vpn over l2tp3 mpls qc pass: p4lang: l3vpn over l2tp3 mpls qc pass: p4lang: l2tp3 routing over ipv4 loopback qc pass: p4lang: l2tp3 routing over ipv6 loopback qc pass: p4lang: l2tp3 routing over vlan qc pass: p4lang: l2tp3 routing over bundle qc pass: p4lang: l2tp3 mpls over ipv4 qc pass: p4lang: multilink l2tp3 routing over ipv4 qc pass: p4lang: multilink l2tp3 routing over ipv6 qc pass: p4lang: multilink l2tp3 routing over vlan qc pass: p4lang: multilink l2tp3 mpls over ipv4 qc pass: p4lang: multilink l2tp3 mpls over ipv6 qc pass: p4lang: multilink l2tp3 mpls over vlan qc pass: p4lang: multilink l2tp3 routing over bundle qc pass: p4lang: multilink l2tp3 mpls over bundle qc pass: p4lang: l2tp3 mpls over ipv6 qc pass: p4lang: l2tp3 mpls over ipv4 loopback qc pass: p4lang: l2tp3 mpls over ipv6 loopback qc pass: p4lang: l2tp3 mpls over vlan qc pass: p4lang: l2tp3 mpls over bundle qc pass: p4lang: bridging over l2tp3 qc pass: p4lang: bridging over l2tp3 vlan ---------------------------------- 2023-11-13 14:07:24 23.11.13 no todo: vdc to have local, connect as sdn autocreated ---------------------------------- 2023-11-17 22:04:10 23.11.17 no todo: sho bgp * auto-summarize no todo: server http / host * ptmud no todo: server smtp / ptmud no todo: generalize dynamic-metric knobs qc pass: eigrp with pmtud qc pass: isis with pmtud qc pass: ospf with pmtud qc pass: rift with pmtud ---------------------------------- 2023-11-18 12:54:32 23.11.18 no todo: redundancy to have the remote shows and a counter on how many failures observed ---------------------------------- 2023-11-20 21:23:37 23.11.20 qc pass: sdwan with l2tp2 and l2tp3 qc pass: sdwan with l2tp2 and gre ---------------------------------- 2023-11-20 22:17:24 23.11.20 no todo: sdwan to be able to use more encapsulations like l2tp2, l2tp3, gre, or pim ax25 icmp ipcomp ---------------------------------- 2023-11-21 14:15:36 23.11.21 qc pass: p4lang: sdwan over ipv4 with l2tp qc pass: p4lang: sdwan over ipv6 with l2tp qc pass: p4lang: sdwan over ipv4 with l2tp3 qc pass: p4lang: sdwan over ipv6 with l2tp3 qc pass: p4lang: sdwan over ipv4 with gre qc pass: p4lang: sdwan over ipv6 with gre ---------------------------------- 2023-11-21 20:54:46 23.11.21 qc pass: sdwan with l2tp2 and amt qc pass: sdwan with l2tp2 and gtp ---------------------------------- 2023-11-21 22:19:33 23.11.21 qc pass: p4lang: sdwan over ipv4 with amt qc pass: p4lang: sdwan over ipv6 with amt qc pass: p4lang: sdwan over ipv4 with gtp qc pass: p4lang: sdwan over ipv6 with gtp ---------------------------------- 2023-11-22 14:05:55 23.11.22 no todo: - process id no todo: 66666 - process id - as asdf no todo: 1 - process id no todo: noti#show ipv4 bgp ? no todo: bgp to have at least show ipv46 bgp 66666 description no todo: server http xxx to log better the class exceptions as errors no todo: show whowas from bmp mrt archive no todo: dlep as rfc8175 ---------------------------------- 2023-11-23 18:20:46 23.11.23 qc pass: ethernet trill-mt encapsulation qc pass: ethernet trill-fgl encapsulation ---------------------------------- 2023-11-28 08:51:01 23.11.28 no todo: bgp neigh log-end-changes log-pathlen-changes log-route-map/policy/pfxlist-changes etc knob ---------------------------------- 2023-11-28 23:14:08 23.11.28 qc pass: p4lang: ingress tmux access list qc pass: p4lang: egress tmux access list qc pass: p4lang: ingress vlan tmux access list qc pass: p4lang: egress vlan tmux access list qc pass: p4lang: tmux interface inspection with ingress drop qc pass: p4lang: tmux interface inspection with egress drop qc pass: p4lang: tmux interface verify source qc pass: p4lang: tmux interface loose verify source qc pass: p4lang: macsec over tmux qc pass: p4lang: sgt over tmux ---------------------------------- 2023-11-28 23:38:29 23.11.28 qc pass: p4lang: gre routing over ipv4 qc pass: p4lang: gre routing over ipv6 qc pass: p4lang: gre routing over ipv4 loopback qc pass: p4lang: gre routing over ipv6 loopback qc pass: p4lang: gre routing over vlan qc pass: p4lang: gre routing over bundle qc pass: p4lang: gre routing over bundle vlan qc pass: p4lang: gre routing over hairpin qc pass: p4lang: gre routing over hairpin vlan qc pass: p4lang: gre routing over bridge qc pass: p4lang: gre routing over vlan bridge qc pass: p4lang: gre mpls over ipv4 qc pass: p4lang: gre mpls over ipv6 qc pass: p4lang: gre mpls over ipv4 loopback qc pass: p4lang: gre mpls over ipv6 loopback qc pass: p4lang: gre mpls over vlan qc pass: p4lang: gre mpls over bundle qc pass: p4lang: gre mpls over bundle vlan qc pass: p4lang: gre mpls over hairpin qc pass: p4lang: gre mpls over hairpin vlan qc pass: p4lang: gre mpls over bridge qc pass: p4lang: gre mpls over vlan bridge qc pass: p4lang: bridging over gre qc pass: p4lang: bridging over gre vlan qc pass: p4lang: mldp core over gre qc pass: p4lang: bier core over gre qc pass: p4lang: gre mpls pop qc pass: p4lang: gre mpls push qc pass: p4lang: l2vpn over gre mpls qc pass: p4lang: l3vpn over gre mpls ---------------------------------- 2023-11-29 00:27:28 23.11.28 no qc pass: p4lang: l3vpn over gre mpls no qc pass: p4lang: l2vpn over gre mpls no qc pass: p4lang: gre mpls push no qc pass: p4lang: gre mpls pop no qc pass: p4lang: bier core over gre no qc pass: p4lang: mldp core over gre no qc pass: p4lang: bridging over gre vlan no qc pass: p4lang: bridging over gre no qc pass: p4lang: gre mpls over vlan bridge no qc pass: p4lang: gre mpls over bridge no qc pass: p4lang: gre mpls over hairpin vlan no qc pass: p4lang: gre mpls over hairpin no qc pass: p4lang: gre mpls over bundle vlan no qc pass: p4lang: gre mpls over bundle no qc pass: p4lang: gre mpls over vlan no qc pass: p4lang: gre mpls over ipv6 loopback no qc pass: p4lang: gre mpls over ipv4 loopback no qc pass: p4lang: gre mpls over ipv6 no qc pass: p4lang: gre mpls over ipv4 no qc pass: p4lang: gre routing over vlan bridge no qc pass: p4lang: gre routing over bridge no qc pass: p4lang: gre routing over hairpin vlan no qc pass: p4lang: gre routing over hairpin no qc pass: p4lang: gre routing over bundle vlan no qc pass: p4lang: gre routing over bundle no qc pass: p4lang: gre routing over vlan no qc pass: p4lang: gre routing over ipv6 loopback no qc pass: p4lang: gre routing over ipv4 loopback no qc pass: p4lang: gre routing over ipv6 no qc pass: p4lang: gre routing over ipv4 qc pass: p4lang: tmux routing over ipv4 qc pass: p4lang: tmux routing over ipv6 qc pass: p4lang: tmux routing over ipv4 loopback qc pass: p4lang: tmux routing over ipv6 loopback qc pass: p4lang: tmux routing over vlan qc pass: p4lang: tmux routing over bundle qc pass: p4lang: tmux routing over bundle vlan qc pass: p4lang: tmux routing over hairpin qc pass: p4lang: tmux routing over hairpin vlan qc pass: p4lang: tmux routing over bridge qc pass: p4lang: tmux routing over vlan bridge qc pass: p4lang: tmux mpls over ipv4 qc pass: p4lang: tmux mpls over ipv6 qc pass: p4lang: tmux mpls over ipv4 loopback qc pass: p4lang: tmux mpls over ipv6 loopback qc pass: p4lang: tmux mpls over vlan qc pass: p4lang: tmux mpls over bundle qc pass: p4lang: tmux mpls over bundle vlan qc pass: p4lang: tmux mpls over hairpin qc pass: p4lang: tmux mpls over hairpin vlan qc pass: p4lang: tmux mpls over bridge qc pass: p4lang: tmux mpls over vlan bridge qc pass: p4lang: bridging over tmux qc pass: p4lang: bridging over tmux vlan qc pass: p4lang: mldp core over tmux qc pass: p4lang: bier core over tmux qc pass: p4lang: tmux mpls pop qc pass: p4lang: tmux mpls push qc pass: p4lang: l2vpn over tmux mpls qc pass: p4lang: l3vpn over tmux mpls ---------------------------------- 2023-11-29 20:35:18 23.11.29 no qc pass: sgt tunnel encapsulation no qc pass: macsec over tunnel qc pass: macsec over gre qc pass: sgt gre encapsulation ---------------------------------- 2023-11-29 21:16:08 23.11.29 qc pass: bridged ethernet over tmux qc pass: bridged ethernet over l2tp3 qc pass: macsec over tmux qc pass: macsec over l2tp3 qc pass: sgt tmux encapsulation qc pass: sgt l2tp3 encapsulation ---------------------------------- 2023-11-30 23:11:31 23.11.30 no todo: generalise server access- knobs ---------------------------------- 2023-12-01 21:57:44 23.12.1 no todo: server http to have api for scripts ---------------------------------- 2023-12-03 02:17:13 23.12.3 qc pass: sdwan with l2tp2 and icmp qc pass: sdwan with l2tp2 and tmux ---------------------------------- 2023-12-03 12:55:50 23.12.3 no todo: flowspec-divert knob to bgp, but think this twice at least and mark as experimental qc pass: qos ingress divert action qc pass: qos dapp divert action ---------------------------------- 2023-12-03 14:05:20 23.12.3 no qc pass: qos dapp divert action qc pass: qos divert dapp qc pass: qos divert flowspec qc pass: qos divert otherflowspec ---------------------------------- 2023-12-03 17:49:20 23.12.3 qc pass: p4lang: sdwan over ipv4 with tmux qc pass: p4lang: sdwan over ipv6 with tmux ---------------------------------- 2023-12-03 21:53:57 23.12.3 no todo: server http have some local logging finally no todo: server forwarder to have some local logging finally no todo: settle a new slide project misc slash thumbs as a small helper for misc slash album no todo: it would not harm a lot to apply to the fillables like the check asdf no todo: asdf#show cdp neigh | hinclude sdn is fine but once the encUtf6/7 is there no todo: sendtrhrough mode in p4lang to the dataplanes when crypto turned on like wg ovpn and ipsec if possible no todo: mist natives to have ipcomp rfc somehow dissect this: packages.debian.org/sid/gzip so libc and deflate to link to no todo: mpls as ipv8 as december project to the guessEthtype and maybe to the dataplanes (dont think so) no todo: honeypot to wireformat, decode ---------------------------------- 2023-12-05 11:47:25 23.12.5 no todo: player queue up down add-again ---------------------------------- 2023-12-05 17:28:16 23.12.5 no todo: serevr security maximum pendings as access-security no todo: test access-list todo: server security maximum pendings as access-security ---------------------------------- 2023-12-07 09:29:03 23.12.7 no todo: server dhcp4 sdnXXX ---> server dhcp4 sdnXXX inetXXX sdnZZZ as upgrade-cli <---maybe duplicate? :) ---------------------------------- 2023-12-07 17:30:54 23.12.7 no todo: server * vrf and upgrade-cli no todo: same for upgrade-cli cmds.negated cmds.negated cmds.negated eno1-->eth0 random changes, by mac and friends ---------------------------------- 2024-10-20 07:04:34 24.10.20 no qc pass: dhcp with excluded address failed: dhcp with excluded address ---------------------------------- 2024-10-20 07:34:16 24.10.20 no failed: dhcp with excluded address qc pass: dhcp with excluded address ---------------------------------- 2024-11-02 07:44:58 24.11.2 no qc pass: dhcp with excluded address failed: dhcp with excluded address ---------------------------------- 2024-11-02 08:29:06 24.11.2 no failed: dhcp with excluded address qc pass: dhcp with excluded address ---------------------------------- 2024-11-13 07:50:44 24.11.13 qc pass: p4lang: bridge filter access list qc pass: p4lang: vlan bridge filter access list ---------------------------------- 2024-11-16 08:32:01 24.11.16 todo: traffic through bgp spf ---------------------------------- 2024-11-16 09:32:49 24.11.16 qc pass: unicast+spf over bgp qc pass: unicast+spf over bgp with soft-reconfig qc pass: unicast+spf over bgp with additional path freeRtr-24.11.16/misc/000077500000000000000000000000001471627602100143205ustar00rootroot00000000000000freeRtr-24.11.16/misc/android/000077500000000000000000000000001471627602100157405ustar00rootroot00000000000000freeRtr-24.11.16/misc/android/AndroidManifest.xml000066400000000000000000000004761471627602100215400ustar00rootroot00000000000000 freeRtr-24.11.16/misc/android/c.sh000077500000000000000000000004401471627602100165170ustar00rootroot00000000000000#!/bin/sh TOOLPATH=/usr/lib/android-sdk/build-tools/debian $TOOLPATH/dx --min-sdk-version=26 --dex --output=rtr.dex ../../src/rtr.jar $TOOLPATH/aapt package -f -M AndroidManifest.xml -I /usr/lib/android-sdk/platforms/android-*/android.jar -F rtr.apk $TOOLPATH/aapt add -f rtr.apk rtr.dex freeRtr-24.11.16/misc/android/d.sh000077500000000000000000000000661471627602100165240ustar00rootroot00000000000000#!/bin/sh rm *.dex 2> /dev/null rm *.apk 2> /dev/null freeRtr-24.11.16/misc/android/r.sh000077500000000000000000000000771471627602100165440ustar00rootroot00000000000000#!/bin/sh dalvikvm -cp rtr.dex org.freertr.router routerc rtr- freeRtr-24.11.16/misc/applet/000077500000000000000000000000001471627602100156055ustar00rootroot00000000000000freeRtr-24.11.16/misc/applet/applet.html000066400000000000000000000004761471627602100177670ustar00rootroot00000000000000 applet freeRtr-24.11.16/misc/applet/applet.java000066400000000000000000000026611471627602100177420ustar00rootroot00000000000000 import java.awt.Graphics; import java.awt.image.BufferedImage; import org.freertr.cfg.cfgInit; import org.freertr.pipe.pipeImage; import org.freertr.pipe.pipeWindow; /** * main class for the applet * * @author matecsaba */ @SuppressWarnings("deprecation") public class applet extends java.applet.Applet { private final static long serialVersionUID = 19791025; /** * pipe image */ protected pipeImage img; /** * buffered image */ protected BufferedImage img3; public void init() { img = cfgInit.doApplet(getParameter("config")); img3 = pipeWindow.createImage(img); new appletDoer(this); setBackground(pipeWindow.getBckgrd()); addKeyListener(pipeWindow.getKeyLstnr(img.pipe)); } public void stop() { cfgInit.stopRouter(true, 20, "applet exited"); } public void paint(Graphics g) { if (img == null) { return; } pipeWindow.updateImage(img3, img); g.drawImage(img3, 0, 0, null); } } class appletDoer implements Runnable { private final applet lower; public appletDoer(applet parent) { lower = parent; new Thread(this).start(); } public void run() { for (;;) { boolean b = lower.img.doRound(true); lower.img.doImage(); lower.repaint(); if (b) { return; } } } } freeRtr-24.11.16/misc/applet/c.sh000077500000000000000000000002001471627602100163560ustar00rootroot00000000000000#!/bin/sh ./d.sh javac -source 11 -target 11 -Xlint:all -deprecation -cp ../../src/rtr.jar *.java zip ../../src/rtr.jar *.class freeRtr-24.11.16/misc/applet/d.sh000077500000000000000000000000421471627602100163630ustar00rootroot00000000000000#!/bin/sh rm *.class 2> /dev/null freeRtr-24.11.16/misc/bogon/000077500000000000000000000000001471627602100154245ustar00rootroot00000000000000freeRtr-24.11.16/misc/bogon/add4.html000066400000000000000000000005071471627602100171300ustar00rootroot00000000000000 add ipv4 address, without prefix to add:
freeRtr-24.11.16/misc/bogon/add4.tcl000066400000000000000000000004171471627602100167460ustar00rootroot00000000000000set ipa a set ipb a set tag a set vrf a set adr a script local.tcl local param set a [config "ipv4 route $vrf $adr 255.255.255.255 $ipa tag $tag"] set a "$a[exec write]" set b "write network" set a "$a[exec $b]" puts "result:
$a
" freeRtr-24.11.16/misc/bogon/add6.html000066400000000000000000000005071471627602100171320ustar00rootroot00000000000000 add ipv6 address, without prefix to add:
freeRtr-24.11.16/misc/bogon/add6.tcl000066400000000000000000000004471471627602100167530ustar00rootroot00000000000000set ipa a set ipb a set tag a set vrf a set adr a script local.tcl local param set a [config "ipv6 route $vrf $adr ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff $ipb tag $tag"] set a "$a[exec write]" set b "write network" set a "$a[exec $b]" puts "result:
$a
" freeRtr-24.11.16/misc/bogon/del4.html000066400000000000000000000005071471627602100171440ustar00rootroot00000000000000 del ipv4 address, without prefix to del:
freeRtr-24.11.16/misc/bogon/del4.tcl000066400000000000000000000004221471627602100167560ustar00rootroot00000000000000set ipa a set ipb a set tag a set vrf a set adr a script local.tcl local param set a [config "no ipv4 route $vrf $adr 255.255.255.255 $ipa tag $tag"] set a "$a[exec write]" set b "write network" set a "$a[exec $b]" puts "result:
$a
" freeRtr-24.11.16/misc/bogon/del6.html000066400000000000000000000005071471627602100171460ustar00rootroot00000000000000 del ipv6 address, without prefix to del:
freeRtr-24.11.16/misc/bogon/del6.tcl000066400000000000000000000004521471627602100167630ustar00rootroot00000000000000set ipa a set ipb a set tag a set vrf a set adr a script local.tcl local param set a [config "no ipv6 route $vrf $adr ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff $ipb tag $tag"] set a "$a[exec write]" set b "write network" set a "$a[exec $b]" puts "result:
$a
" freeRtr-24.11.16/misc/bogon/home.html000066400000000000000000000007551471627602100172510ustar00rootroot00000000000000 empty welcome to web bogon!

usage:
home: this page

show ipv4: show current ipv4 bogon routes
add ipv4: add ipv4 bogon route
del ipv4: remove ipv4 bogon route

add ipv6: add ipv6 bogon route
del ipv6: remove ipv6 bogon route
show ipv6: show current ipv6 bogon routes
freeRtr-24.11.16/misc/bogon/index2.html000066400000000000000000000006071471627602100175060ustar00rootroot00000000000000 bogon <body> your browser doesn't support frames! </body> freeRtr-24.11.16/misc/bogon/local.tcl000066400000000000000000000005151471627602100172230ustar00rootroot00000000000000proc local {} { global ipa global ipb global tag global vrf set ipa "10.10.10.8" set ipb "2001:db8:1101::8" set tag "666" set vrf "home" } proc param {} { global adr for {} {1<2} {} { set ln [gets -] if {[string equal $ln "."]} break set sh "$sh$ln
" if {[string first adr $ln] >= 0} {set adr [string range $ln 8 666]} } } freeRtr-24.11.16/misc/bogon/menu.html000066400000000000000000000010111471627602100172470ustar00rootroot00000000000000 menu menu: home || show ipv4 || add ipv4 || del ipv4 || show ipv6 || add ipv6 || del ipv6 freeRtr-24.11.16/misc/bogon/show4.tcl000066400000000000000000000002641471627602100171760ustar00rootroot00000000000000set ipa a set ipb a set tag a set vrf a script local.tcl local set a [exec "show startup | reginc ipv4.route.*tag.$tag"] puts "bogons:
$a
" freeRtr-24.11.16/misc/bogon/show6.tcl000066400000000000000000000002641471627602100172000ustar00rootroot00000000000000set ipa a set ipb a set tag a set vrf a script local.tcl local set a [exec "show startup | reginc ipv6.route.*tag.$tag"] puts "bogons:
$a
" freeRtr-24.11.16/misc/captures/000077500000000000000000000000001471627602100161465ustar00rootroot00000000000000freeRtr-24.11.16/misc/captures/buffer.sh000077500000000000000000000000371471627602100177560ustar00rootroot00000000000000#!/bin/sh pcapfix -d eth1.pcap freeRtr-24.11.16/misc/captures/live-tcpdump.sh000077500000000000000000000000611471627602100211130ustar00rootroot00000000000000#!/bin/sh tail -f -c +0 eth1.pcap | tcpdump -r - freeRtr-24.11.16/misc/captures/live-tshark.sh000077500000000000000000000000601471627602100207320ustar00rootroot00000000000000#!/bin/sh tail -f -c +0 eth1.pcap | tshark -i - freeRtr-24.11.16/misc/captures/live-wireshark.sh000077500000000000000000000000661471627602100214430ustar00rootroot00000000000000#!/bin/sh tail -f -c +0 eth1.pcap | wireshark -k -i - freeRtr-24.11.16/misc/check/000077500000000000000000000000001471627602100153755ustar00rootroot00000000000000freeRtr-24.11.16/misc/check/bgp-rr.txt000066400000000000000000000014051471627602100173270ustar00rootroot00000000000000check uni4 command sho ipv4 bgp 65535 unicast compare 10.5.1.10 10.26.26.2 cluster locpref train description ipv4 bgp unicast consistency error-text inconsistent advertisements exit check uni6 command sho ipv6 bgp 65535 unicast compare 2001:db8:36::2 2001:db8:1026:1001::2 cluster locpref train description ipv6 bgp unicast consistency error-text inconsistent advertisements exit check vpn4 command sho ipv4 bgp 65535 vpnuni compare 10.5.1.10 10.26.26.2 cluster locpref train description ipv4 bgp vpnuni consistency error-text inconsistent advertisements exit check vpn6 command sho ipv6 bgp 65535 vpnuni compare 2001:db8:36::2 2001:db8:1026:1001::2 cluster locpref train description ipv6 bgp vpnuni consistency error inconsistent advertisements exit freeRtr-24.11.16/misc/check/isis.txt000066400000000000000000000003651471627602100171110ustar00rootroot00000000000000check isis4 command sho ipv4 isis 1 spf | include able description ipv4 isis reachability error-text nodes changed train exit check isis6 command sho ipv6 isis 1 spf | include able description ipv6 isis reachability inherit isis4 exit freeRtr-24.11.16/misc/check/lsrp.txt000066400000000000000000000003651471627602100171220ustar00rootroot00000000000000check lsrp4 command sho ipv4 lsrp 1 spf | include able description ipv4 lsrp reachability error-text nodes changed train exit check lsrp6 command sho ipv6 lsrp 1 spf | include able description ipv6 lsrp reachability inherit lsrp4 exit freeRtr-24.11.16/misc/check/ospf.txt000066400000000000000000000003651471627602100171110ustar00rootroot00000000000000check ospf4 command sho ipv4 ospf 1 spf | include able description ipv4 ospf reachability error-text nodes changed train exit check ospf6 command sho ipv6 ospf 1 spf | include able description ipv6 ospf reachability inherit ospf4 exit freeRtr-24.11.16/misc/consistency/000077500000000000000000000000001471627602100166615ustar00rootroot00000000000000freeRtr-24.11.16/misc/consistency/bgp-advertised-ipv4mul.tcl000066400000000000000000000001161471627602100236610ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast route-policy advertised"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-advertised-ipv4uni.tcl000066400000000000000000000001141471627602100236550ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast route-policy advertised"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-advertised-ipv6mul.tcl000066400000000000000000000001161471627602100236630ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 multicast route-policy advertised"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-advertised-ipv6uni.tcl000066400000000000000000000001141471627602100236570ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 unicast route-policy advertised"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-evpn.tcl000066400000000000000000000001511471627602100232670ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 evpn compare 195.111.97.93 195.111.97.179 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-ipv4mul.tcl000066400000000000000000000001561471627602100237240ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast compare 195.111.97.93 195.111.97.179 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-ipv4uni.tcl000066400000000000000000000001641471627602100237210ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast compare 195.111.97.93 195.111.97.179 cluster extcomm | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-ipv6mul.tcl000066400000000000000000000001551471627602100237250ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 multicast compare 2001:738::c 2001:738::179:1 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-ipv6uni.tcl000066400000000000000000000001631471627602100237220ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 unicast compare 2001:738::c 2001:738::179:1 cluster extcomm | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-mvpn.tcl000066400000000000000000000001511471627602100232770ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 mvpn compare 195.111.97.93 195.111.97.179 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-omvpn.tcl000066400000000000000000000001511471627602100234560ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 mvpn compare 195.111.97.93 195.111.97.179 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-srte.tcl000066400000000000000000000001511471627602100232740ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 srte compare 195.111.97.93 195.111.97.179 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-vpls.tcl000066400000000000000000000001611471627602100233040ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 vpls compare 195.111.97.93 195.111.97.179 cluster extcomm | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-vpnv4.tcl000066400000000000000000000001631471627602100233770ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 vpnuni compare 195.111.97.93 195.111.97.179 cluster extcomm | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-consistent-vpnv6.tcl000066400000000000000000000001541471627602100234010ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 ovpnuni compare 195.111.97.93 195.111.97.179 cluster | first 20"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-default-ipv4.tcl000066400000000000000000000001301471627602100224310ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast allroute 0.0.0.0/0 | include update"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-default-ipv6.tcl000066400000000000000000000001231471627602100224350ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 unicast allroute ::/0 | include update"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-default4mul.tcl000066400000000000000000000001321471627602100223550ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast allroute 0.0.0.0/0 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-default4uni.tcl000066400000000000000000000001301471627602100223510ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast allroute 0.0.0.0/0 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-default6mul.tcl000066400000000000000000000001251471627602100223610ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 multicast allroute ::/0 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-default6uni.tcl000066400000000000000000000001231471627602100223550ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 unicast allroute ::/0 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-flapstat-ipv4.tcl000066400000000000000000000000731471627602100226310ustar00rootroot00000000000000set a [exec "show ipv4 logger 1955 flapstat 10"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-flapstat-ipv6.tcl000066400000000000000000000000731471627602100226330ustar00rootroot00000000000000set a [exec "show ipv6 logger 1955 flapstat 10"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-193-224mul.tcl000066400000000000000000000001371471627602100231620ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast allroute 193.224.0.0/15 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-193-224uni.tcl000066400000000000000000000001351471627602100231560ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast allroute 193.224.0.0/15 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-193-6mul.tcl000066400000000000000000000001351471627602100230160ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast allroute 193.6.0.0/16 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-193-6uni.tcl000066400000000000000000000001331471627602100230120ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast allroute 193.6.0.0/16 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-195-111mul.tcl000066400000000000000000000001371471627602100231570ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast allroute 195.111.0.0/16 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-195-111uni.tcl000066400000000000000000000001351471627602100231530ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast allroute 195.111.0.0/16 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-195-199mul.tcl000066400000000000000000000001371471627602100231770ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 multicast allroute 195.199.0.0/16 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-195-199uni.tcl000066400000000000000000000001351471627602100231730ustar00rootroot00000000000000set a [exec "show ipv4 bgp 1955 unicast allroute 195.199.0.0/16 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-2001-738mul.tcl000066400000000000000000000001361471627602100232410ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 multicast allroute 2001:738::/32 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-network-2001-738uni.tcl000066400000000000000000000001341471627602100232350ustar00rootroot00000000000000set a [exec "show ipv6 bgp 1955 unicast allroute 2001:738::/32 | inc preference"] puts "$a" freeRtr-24.11.16/misc/consistency/bgp-show.tcl000066400000000000000000000007001471627602100211100ustar00rootroot00000000000000proc dosh { cmd } { global sh set res [exec "term tab html" $cmd] set sh "$sh$cmd
$res
" } set sh "" dosh "show clock | html" dosh "show platform | html" dosh "show banner" dosh "show logo" dosh "show ipv4 bgp 1955 unicast summary" dosh "show ipv6 bgp 1955 unicast summary" puts "hbone lg" puts "" puts "$sh" puts "" freeRtr-24.11.16/misc/consistency/flapstat.tcl000066400000000000000000000002131471627602100211770ustar00rootroot00000000000000exec "clear ipv4 logger 1955" exec "clear ipv4 logger 100" exec "clear ipv6 logger 1955" exec "clear ipv6 logger 100" puts "flaps cleared" freeRtr-24.11.16/misc/consistency/nrpe-trainer.tcl000066400000000000000000000010711471627602100217720ustar00rootroot00000000000000set sh "" set check "" set part "" for {} {1<2} {} { set ln [gets -] if {[string equal $ln "."]} break if {[string first par.check $ln] >= 0} {set check [string range $ln 10 666]} if {[string first par.part $ln] >= 0} {set part [string range $ln 9 666]} } if {[string length $check] < 1} { puts "got no check." return } set diff [exec "show config-diff"] if {[string length $diff] > 3} { puts "temporary config in effect, not updated anything!" return } config "check $check" "train $part" exec "write" exec "write network" puts "check $check trained." freeRtr-24.11.16/misc/consistency/ospf4-flapstat.tcl000066400000000000000000000000711471627602100222320ustar00rootroot00000000000000set a [exec "show ipv4 logger 100 flapstat 5"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf4-router.tcl000066400000000000000000000001041471627602100217310ustar00rootroot00000000000000set a [exec "show ipv4 ospf 100 database 0 | inc router"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf4-topo.tcl000066400000000000000000000000671471627602100214020ustar00rootroot00000000000000set a [exec "show ipv4 ospf 100 topology 0"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf4-whole.tcl000066400000000000000000000000671471627602100215370ustar00rootroot00000000000000set a [exec "show ipv4 ospf 100 database 0"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf6-flapstat.tcl000066400000000000000000000000711471627602100222340ustar00rootroot00000000000000set a [exec "show ipv6 logger 100 flapstat 5"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf6-router.tcl000066400000000000000000000001041471627602100217330ustar00rootroot00000000000000set a [exec "show ipv6 ospf 100 database 0 | inc router"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf6-topo.tcl000066400000000000000000000000671471627602100214040ustar00rootroot00000000000000set a [exec "show ipv6 ospf 100 topology 0"] puts "$a" freeRtr-24.11.16/misc/consistency/ospf6-whole.tcl000066400000000000000000000000671471627602100215410ustar00rootroot00000000000000set a [exec "show ipv6 ospf 100 database 0"] puts "$a" freeRtr-24.11.16/misc/consistency/prace-routes.tcl000066400000000000000000000000571471627602100220000ustar00rootroot00000000000000set a [exec "show ipv4 route prace"] puts "$a" freeRtr-24.11.16/misc/debian1/000077500000000000000000000000001471627602100156235ustar00rootroot00000000000000freeRtr-24.11.16/misc/debian1/changelog000066400000000000000000000002361471627602100174760ustar00rootroot00000000000000freerouter (201807.20180717173052.1) bionic; urgency=medium * Initial version -- Jean-Remy Buchs Mon, 25 Jun 2018 10:10:35 +0200 freeRtr-24.11.16/misc/debian1/compat000066400000000000000000000000021471627602100170210ustar00rootroot000000000000009 freeRtr-24.11.16/misc/debian1/control000066400000000000000000000026421471627602100172320ustar00rootroot00000000000000Source: freerouter Section: net Priority: optional Build-Depends: debhelper (>= 9.20160709~), dpkg-dev (>= 1.16.1.1~), libpcap-dev, default-jdk, javahelper, dh-sysuser Maintainer: Jean-Remy Buchs Standards-Version: 4.1.4 Package: freerouter Architecture: any Pre-Depends: adduser Depends: ${misc:Depends}, ${java:Depends} Recommends: freerouter-native Description: free, open source router os process it speaks routing protocols, and (re)encapsulates packets on interfaces since it handles packets itself, it is independent of underlaying os capabilities (optionally, it can export forwarding tables through openflow to external switch) since it is an unprivilegized process, it receives and sends packets through sockets there are external, privileged processes that place traffic to these sockets (it means that internet can be used as backplane for router processes) the command line tries to mimic the industry standards with one exception: no global routing table: every routed interface must be in a virtual routing table positive side effect: there are no vrf-awareness questions Package: freerouter-native Architecture: amd64 Pre-Depends: adduser Depends: ${misc:Depends}, ${shlibs:Depends}, libpcap0.8 Description: Native tools for better performance than socat. These tools are completely optional but should deliver better performance than socat. freeRtr-24.11.16/misc/debian1/copyright000066400000000000000000000000771471627602100175620ustar00rootroot00000000000000Files: * Copyright: 2013-2018 Csaba Mate License: CC-BY-SA-4.0 freeRtr-24.11.16/misc/debian1/freerouter-native.install000066400000000000000000000000771471627602100226650ustar00rootroot00000000000000binTmp/*.bin /usr/bin debian/interface.sh usr/share/freerouter freeRtr-24.11.16/misc/debian1/freerouter-native.postinst000066400000000000000000000003211471627602100230720ustar00rootroot00000000000000#!/bin/sh #DEBHELPER# set -e adduser freerouter dialout mkdir -p /etc/freerouter/interfaces chown freerouter:freerouter /etc/freerouter chown root:root /etc/freerouter/interfaces chmod 770 /etc/freerouter freeRtr-24.11.16/misc/debian1/freerouter-native.sysuser000066400000000000000000000000441471627602100227260ustar00rootroot00000000000000freerouter home=/var/lib/freerouter freeRtr-24.11.16/misc/debian1/freerouter-native@.service000066400000000000000000000016411471627602100227550ustar00rootroot00000000000000[Unit] Description=Interface specific process of freerouter for %i Wants=network.target After=network-pre.target Before=network.target [Service] Type=simple ExecStart=/usr/share/freerouter/interface.sh /etc/freerouter/interfaces/%i Restart=always WorkingDirectory=/var/lib/freerouter User=freerouter Group=freerouter CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN CAP_IPC_LOCK AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_IPC_LOCK NoNewPrivileges=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/var/lib/freerouter /etc/freerouter PrivateTmp=true # PrivateDevices is not possible because some types need access to a physical device. PrivateDevices=false PrivateNetwork=false # Private Users clears all capabilities. PrivateUsers=false ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictNamespaces=true LockPersonality=true RemoveIPC=true [Install] WantedBy=multi-user.target freeRtr-24.11.16/misc/debian1/freerouter.init000066400000000000000000000033341471627602100206750ustar00rootroot00000000000000#! /bin/sh ### BEGIN INIT INFO # Provides: freerouter # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="freerouter" NAME=freerouter DAEMON=/usr/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME PIDFILE=/run/$NAME USER=$NAME GROUP=$NAME ARGS=router /etc/freerouter/rtr- DIR=/var/lib/freerouter # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions do_start() { start-stop-daemon --start --quiet --name $NAME --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --name $NAME -u $USER -g $GROUP -P $PIDFILE -d $DIR -b -m --remove-pidfile --exec $DAEMON -- $ARGS \ || return 2 } do_stop() { start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --name $NAME --exec $DAEMON return "$?" } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : freeRtr-24.11.16/misc/debian1/freerouter.install000066400000000000000000000000661471627602100213770ustar00rootroot00000000000000rtr-sw.txt /etc/freerouter rtr-hw.txt /etc/freerouter freeRtr-24.11.16/misc/debian1/freerouter.jlibs000066400000000000000000000000171471627602100210300ustar00rootroot00000000000000freerouter.jar freeRtr-24.11.16/misc/debian1/freerouter.links000066400000000000000000000000611471627602100210440ustar00rootroot00000000000000usr/share/java/freerouter.jar usr/bin/freerouter freeRtr-24.11.16/misc/debian1/freerouter.manifest000066400000000000000000000001401471627602100215300ustar00rootroot00000000000000usr/share/java/freerouter.jar: Main-Class: router Debian-Java-Home: /usr/lib/jvm/default-java freeRtr-24.11.16/misc/debian1/freerouter.postinst000066400000000000000000000002701471627602100216110ustar00rootroot00000000000000#!/bin/sh #DEBHELPER# set -e adduser freerouter dialout chown freerouter:freerouter /etc/freerouter /etc/freerouter/rtr-hw.txt /etc/freerouter/rtr-sw.txt chmod 770 /etc/freerouter freeRtr-24.11.16/misc/debian1/freerouter.service000066400000000000000000000014111471627602100213640ustar00rootroot00000000000000[Unit] Description=Main process of freerouter Wants=network.target After=network-pre.target Before=network.target [Service] Type=simple ExecStart=/usr/bin/freerouter router /etc/freerouter/rtr- Restart=always WorkingDirectory=/var/lib/freerouter User=freerouter Group=freerouter NoNewPrivileges=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/var/lib/freerouter /etc/freerouter PrivateTmp=true PrivateDevices=true # PrivateNetwork is not possible because the hardware access processes have to be in the this and the main namespace at the same time. PrivateNetwork=false PrivateUsers=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictNamespaces=true LockPersonality=true RemoveIPC=true [Install] WantedBy=multi-user.target freeRtr-24.11.16/misc/debian1/interface.sh000077500000000000000000000020221471627602100201160ustar00rootroot00000000000000#!/bin/sh set -e set -a . "$1" set +a case "$MODE" in map) exec /usr/bin/mapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; urng) exec /usr/bin/urngInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; raw) exec /usr/bin/rawInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; pcap) exec /usr/bin/pcapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; tap) echo ' sleep 1 ip -4 addr flush dev "$DEVICE" if [ -n "$ADDR4" ]; then if [ -n "$PEER4" ]; then ip addr add "$ADDR4" peer "$PEER4" dev "$DEVICE" else ip addr add "$ADDR4" dev "$DEVICE" fi fi if [ -n "$ADDR6" ]; then if [ -n "$PEER6" ]; then ip addr add "$ADDR6" peer "$PEER6" dev "$DEVICE" else ip addr add "$ADDR6" dev "$DEVICE" fi fi ' | envsubst | sh & exec /usr/bin/tapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" 0.0.0.1 255.255.255.255 ;; std) exec /usr/bin/stdLin.bin "$LPORT" ;; tty) exec /usr/bin/ttyLin.bin "$DEVICE" "$LPORT" ;; else) echo "Unknown mode $MODE" >&2 exit 1 esac freeRtr-24.11.16/misc/debian1/javabuild000066400000000000000000000000231471627602100175020ustar00rootroot00000000000000freerouter.jar src freeRtr-24.11.16/misc/debian1/lintian-overrides000066400000000000000000000000001471627602100211720ustar00rootroot00000000000000freeRtr-24.11.16/misc/debian1/rules000077500000000000000000000003361471627602100167050ustar00rootroot00000000000000#!/usr/bin/make -f %: dh $@ --with=javahelper --with=systemd --with=sysuser override_dh_auto_build: dh_auto_build mkdir binTmp cd misc/native && ./c.sh override_dh_clean: dh_clean rm -rf binTmp misc/native/*.bin freeRtr-24.11.16/misc/debian1/source/000077500000000000000000000000001471627602100171235ustar00rootroot00000000000000freeRtr-24.11.16/misc/debian1/source/format000066400000000000000000000000151471627602100203320ustar00rootroot000000000000003.0 (native) freeRtr-24.11.16/misc/debian1/sysuser000066400000000000000000000000441471627602100172610ustar00rootroot00000000000000freerouter home=/var/lib/freerouter freeRtr-24.11.16/misc/debian2/000077500000000000000000000000001471627602100156245ustar00rootroot00000000000000freeRtr-24.11.16/misc/debian2/changelog000066400000000000000000000006441471627602100175020ustar00rootroot00000000000000freerouter (0~nightly) unstable; urgency=medium * corrected changelog format -- Frederic LOUI Sun, 12 Apr 2020 22:51:56 +0000 freerouter (nightly) unstable; urgency=medium * Switched to nightly versioning -- Frederic LOUI Sun, 12 Apr 2020 20:53:01 +0000 freerouter (20.4.8) unstable; urgency=medium * Initial version -- Frederic LOUI Sun, 12 Apr 2020 09:31:35 +0200 freeRtr-24.11.16/misc/debian2/compat000066400000000000000000000000021471627602100170220ustar00rootroot000000000000009 freeRtr-24.11.16/misc/debian2/control000066400000000000000000000030071471627602100172270ustar00rootroot00000000000000Source: freerouter Section: net Priority: optional Build-Depends: debhelper (>= 9.20160709~), dpkg-dev (>= 1.16.1.1~), libpcap-dev, default-jdk, default-jre-headless, # dpdk, # dpdk-dev, javahelper, dh-sysuser Maintainer: Jean-Remy Buchs Standards-Version: 4.1.4 Package: freerouter Architecture: any Pre-Depends: adduser Depends: ${misc:Depends}, ${java:Depends} Recommends: freerouter-native Description: free, open source router os process it speaks routing protocols, and (re)encapsulates packets on interfaces since it handles packets itself, it is independent of underlaying os capabilities (optionally, it can export forwarding tables through openflow to external switch) since it is an unprivilegized process, it receives and sends packets through sockets there are external, privileged processes that place traffic to these sockets (it means that internet can be used as backplane for router processes) the command line tries to mimic the industry standards with one exception: no global routing table: every routed interface must be in a virtual routing table positive side effect: there are no vrf-awareness questions Package: freerouter-native Architecture: amd64 Pre-Depends: adduser Depends: ${misc:Depends}, ${shlibs:Depends}, libpcap-dev,libpcap,dpdk,dpdk-dev Description: Native tools for better performance than socat. These tools are completely optional but should deliver better performance than socat. freeRtr-24.11.16/misc/debian2/copyright000066400000000000000000000000771471627602100175630ustar00rootroot00000000000000Files: * Copyright: 2013-2018 Csaba Mate License: CC-BY-SA-4.0 freeRtr-24.11.16/misc/debian2/freerouter-native.install000066400000000000000000000001631471627602100226620ustar00rootroot00000000000000binTmp/*.bin /usr/bin debian/interface.sh usr/share/freerouter debian/interface.cpu_port etc/freerouter/interfaces freeRtr-24.11.16/misc/debian2/freerouter-native.postinst000066400000000000000000000004511471627602100230770ustar00rootroot00000000000000#!/bin/sh #DEBHELPER# set -e adduser freerouter dialout mkdir -p /etc/freerouter/interfaces chown freerouter:freerouter /etc/freerouter chown -R root:root /etc/freerouter/interfaces mv /etc/freerouter/interfaces/interface.cpu_port /etc/freerouter/interfaces/cpu_port chmod 770 /etc/freerouter freeRtr-24.11.16/misc/debian2/freerouter-native.sysuser000066400000000000000000000000441471627602100227270ustar00rootroot00000000000000freerouter home=/var/lib/freerouter freeRtr-24.11.16/misc/debian2/freerouter-native@.service000066400000000000000000000016411471627602100227560ustar00rootroot00000000000000[Unit] Description=Interface specific process of freerouter for %i Wants=network.target After=network-pre.target Before=network.target [Service] Type=simple ExecStart=/usr/share/freerouter/interface.sh /etc/freerouter/interfaces/%i Restart=always WorkingDirectory=/var/lib/freerouter User=freerouter Group=freerouter CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN CAP_IPC_LOCK AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_IPC_LOCK NoNewPrivileges=true ProtectSystem=strict ProtectHome=true ReadWritePaths=/var/lib/freerouter /etc/freerouter PrivateTmp=true # PrivateDevices is not possible because some types need access to a physical device. PrivateDevices=false PrivateNetwork=false # Private Users clears all capabilities. PrivateUsers=false ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictNamespaces=true LockPersonality=true RemoveIPC=true [Install] WantedBy=multi-user.target freeRtr-24.11.16/misc/debian2/freerouter.init000066400000000000000000000033341471627602100206760ustar00rootroot00000000000000#! /bin/sh ### BEGIN INIT INFO # Provides: freerouter # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="freerouter" NAME=freerouter DAEMON=/usr/sbin/$NAME SCRIPTNAME=/etc/init.d/$NAME PIDFILE=/run/$NAME USER=$NAME GROUP=$NAME ARGS=router /etc/freerouter/rtr- DIR=/var/lib/freerouter # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions do_start() { start-stop-daemon --start --quiet --name $NAME --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --name $NAME -u $USER -g $GROUP -P $PIDFILE -d $DIR -b -m --remove-pidfile --exec $DAEMON -- $ARGS \ || return 2 } do_stop() { start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --name $NAME --exec $DAEMON return "$?" } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : freeRtr-24.11.16/misc/debian2/freerouter.install000066400000000000000000000001041471627602100213710ustar00rootroot00000000000000debian/rtr-sw.txt /etc/freerouter debian/rtr-hw.txt /etc/freerouter freeRtr-24.11.16/misc/debian2/freerouter.jlibs000066400000000000000000000000171471627602100210310ustar00rootroot00000000000000freerouter.jar freeRtr-24.11.16/misc/debian2/freerouter.links000066400000000000000000000000611471627602100210450ustar00rootroot00000000000000usr/share/java/freerouter.jar usr/bin/freerouter freeRtr-24.11.16/misc/debian2/freerouter.manifest000066400000000000000000000001401471627602100215310ustar00rootroot00000000000000usr/share/java/freerouter.jar: Main-Class: router Debian-Java-Home: /usr/lib/jvm/default-java freeRtr-24.11.16/misc/debian2/freerouter.postinst000066400000000000000000000003451471627602100216150ustar00rootroot00000000000000#!/bin/sh #DEBHELPER# set -e adduser freerouter dialout chown freerouter:freerouter /etc/freerouter /etc/freerouter/rtr-hw.txt /etc/freerouter/rtr-sw.txt chmod 770 /etc/freerouter chmod 755 /usr/share/freerouter/interface.sh freeRtr-24.11.16/misc/debian2/freerouter.service000066400000000000000000000014131471627602100213670ustar00rootroot00000000000000[Unit] Description=Main process of freerouter Wants=network.target After=network-pre.target Before=network.target [Service] Type=simple ExecStart=/usr/bin/freerouter router /etc/freerouter/rtr- Restart=always WorkingDirectory=/var/lib/freerouter User=freerouter Group=freerouter NoNewPrivileges=true #ProtectSystem=strict ProtectHome=true ReadWritePaths=/var/lib/freerouter /etc/freerouter PrivateTmp=true PrivateDevices=true # PrivateNetwork is not possible because the hardware access processes have to be in the this and the main namespace at the same time. PrivateNetwork=false #PrivateUsers=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictNamespaces=true LockPersonality=true RemoveIPC=true [Install] WantedBy=multi-user.target freeRtr-24.11.16/misc/debian2/interface.cpu_port000066400000000000000000000003411471627602100213370ustar00rootroot00000000000000#!/bin/sh set -e # /usr/bin/mapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR"" MODE=pcap DEVICE="veth251" LPORT="22709" RADDR="127.0.0.1" RPORT="22710" LADDR="127.0.0.1" # tap # ADDR4= # PEER4= # ADDR6= # PEER6= freeRtr-24.11.16/misc/debian2/interface.sh000077500000000000000000000020221471627602100201170ustar00rootroot00000000000000#!/bin/sh set -e set -a . "$1" set +a case "$MODE" in map) exec /usr/bin/mapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; urng) exec /usr/bin/urngInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; raw) exec /usr/bin/rawInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; pcap) exec /usr/bin/pcapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" ;; tap) echo ' sleep 1 ip -4 addr flush dev "$DEVICE" if [ -n "$ADDR4" ]; then if [ -n "$PEER4" ]; then ip addr add "$ADDR4" peer "$PEER4" dev "$DEVICE" else ip addr add "$ADDR4" dev "$DEVICE" fi fi if [ -n "$ADDR6" ]; then if [ -n "$PEER6" ]; then ip addr add "$ADDR6" peer "$PEER6" dev "$DEVICE" else ip addr add "$ADDR6" dev "$DEVICE" fi fi ' | envsubst | sh & exec /usr/bin/tapInt.bin "$DEVICE" "$LPORT" "$RADDR" "$RPORT" "$LADDR" 0.0.0.1 255.255.255.255 ;; std) exec /usr/bin/stdLin.bin "$LPORT" ;; tty) exec /usr/bin/ttyLin.bin "$DEVICE" "$LPORT" ;; else) echo "Unknown mode $MODE" >&2 exit 1 esac freeRtr-24.11.16/misc/debian2/javabuild000066400000000000000000000000231471627602100175030ustar00rootroot00000000000000freerouter.jar src freeRtr-24.11.16/misc/debian2/lintian-overrides000066400000000000000000000000001471627602100211730ustar00rootroot00000000000000freeRtr-24.11.16/misc/debian2/rtr-hw.txt000066400000000000000000000004151471627602100176100ustar00rootroot00000000000000hwid emu port 63000 64000 int eth0 eth 0000.0A00.0040 127.0.0.1 22710 127.0.0.1 22709 !int eth1 eth 0000.0A00.02FE 127.0.0.1 22712 127.0.0.1 22711 !line tty1 127.0.0.1 21003 127.0.0.1 21003 tcp2vrf 2323 v1 23 tcp2vrf 2001 v1 22 tcp2vrf 9080 v1 9080 !tcp2vrf 8080 v1 80 freeRtr-24.11.16/misc/debian2/rtr-sw.txt000066400000000000000000000102241471627602100176220ustar00rootroot00000000000000hostname core1 buggy ! logging buffered debug 10240 logging file debug core1.log ! crypto rsakey rsa import MIIEogIBAAKCAQEAnHKscrllLWBjwDgyGLj/3BOS3rK66O1GpOHiuuX9idprs8dZisdprsV+tKT0CKTxtac1tAV/9ESxk1X3KF5Jcz0r9GAwBXPHNXlnKZbiYXtcWm5MmpQ2MwqQwjoNJDzveW47k/3/2y9VBsIV5ObvkXQ6fd6UzKkKjYuw07XyUlgsExgtagxTVR9ggOsGL3HXFD+ccqAmbJTcZUCdAnUrJUpnNoLpbt+Ogu3MhKYwuf/0FvIcdVho4lEfBI4VzryjG8Rda4f46Wp0O1jmIp2ZFOaM6riEIMibpZKl2VFzyPrW5vCiD+eO+CxbSKAT+f+SLU3J86xfRhCaXbTTXpRbjwIDAQABAoIBAGMNn+3LQCoouz961Q0eJLEcm4LwurK7eFzwv/MBpzNe3Y4oC6N4eoszc/O/9Np8RKV0xuXCDa+ExsG4ThJ7EBosguXo+L6a/Wf4A78rTw3VYzXGXC4K5P4QFHNE+gkVo7HIf2RGD3ahUz5CKEaTiN8ZLed/w8qIxKu15DFHI7PKLkIaBh5woV6zefNLKFvbYgvpTFw1wwUR9m4si3H7rfoqYZ5ExIx/pVQx8i7wcgvfhQjXjB92vGNZA5dI+6F539OBh/XTUbuqi445hut5yFto3YQEyyVs5BQBM1mJSDLuieiX24qjUTpWi1Y4tb1k/SqofSBkwF9sgcZmv3ph3tECgYEAyJICSP3NlHipLF7YeyEBfGllV8jFB8JiOqIopJLhqIDhfrk5NfCRqb8+Et0+KUPM0IQLzHFekeEouFyc7iQJvq4JHDDEZHm6MFEGPULC/6f/Oge3xDQ5zrFUKO/Oqm/6xL5IxLOhd/4zcnHPHaeb4jR0Cf4o5b+exc8QlPitTC0CgYEAx68VhU9XnC4UcvJmR1hmt8horCej61QzRs86tRw7E3SLSUxZN/7aJ1KaTVkPsxWytSk5RmKAMHNMacN947M0GYPyJH7kjX7gVL28I82TR7h8UCeCBQWX++Yh8G0z2s5j5tRB6v38NC9wbapItraEWHo6gJeWvmOIJPc5j3Jk0CsCgYAaLo0j0BXE+tdCloL118Ik5nE3O1sU/zfpZX+etBnG8EP/Udh5BRVOrktBFSZnJpWW5pXPs0DgFB9HqbdGkue+v2MrDealIwq+AeWpm4xu6RQ1FArWDuc45wcQbPVyZDm88wX2v2gljMZUeyzJNzbvGV/IaigWjaQBOF12xNuCZQKBgEAafe8o9Hgn9tqb5Ke8wmT3ilrR8vaGNlviBPfFU1XAkUJ7pxypzQDYrL5t+/NC4Pb1f/SPhJWJPhup7Y0ep3gVerOqpNajx4KM0owv37sjh4z30e6oyAzO6VBUzlPM9BdTRsIYvVFHdXFPPD6jw0LgIk3L3FHMhBVR5IGfeKu3AoGAOA7macw//CezW2wvDyLHuYBTrY5Z2pSFMTu9bEVniYQVjTuZVhB0pPS/uA3KA+sOvsdUhRZM8QWLHwqVHOnS2pTqLBSFMoWK4+x5qxr6ob0irum5t22rlo7k3LgFTpWzsav92pRQgpMoltbiIRNX1LUxzj1K7qjgzWb5WlyJ7q8= ! crypto dsakey dsa import MIH2AgEAAkBdHH+NJ78OHDDYJMwqqEA7/Fmyn0SPNCe3+doCqKSbwYPS7FpgIqP8R7cIv0GDzxmCPFYJIZ/pWmu0VleClF4LAhUAlTGwTPM+Vla+iYnYroywSCsBQ+MCQBmx+2JlMnQWpPj65oNafjpAXmYFVw0AqPAguzRmbS0A6XsDAygDkIFC0IX806b2lCwIvm4/nyNtY6lyxq0mi00CQDQfodwCipoFayCfWXjC7z7jTN26MXmk4oP+pgSG9aF8dG34Wrx7A/GHoTkaAwMbTbXgzlOQ5O5UtIKy04xai1UCFDK+gTIq1c/alJ2EOsvC5tvW1siW ! crypto ecdsakey ecdsa import MIHbAgEBBEAA392naCtU5jkwV+4yD1PBoFODWiOqRdA3Mej7Buh+NOrlsgq/6R0p1CND6Rf+EyYARnsYvMBLD/msqdFczUZvoAwGCgEDJAMDAggBAQ2hgYUDgYIABCZQjKVjdcoDTm5Mwvf+IOeYAZ7+ptlG7cGxPZGXj5saqQDMNB+Jnj0sck0s+rsTDwP3wt/0BFv14Fm35kU8W+gUrlYtFQ/ZKy88cuAGy3z1UeSWVErszXYDaBLmFyb+H7/LfO9bIfDtHxJ30XyXpAlmLCKRywfxnXrrqLuxLEez ! aaa userlist usr no log-error username rare username rare password $v10$cmFyZQ== exit ! bundle 1 exit ! vrf definition v1 rd 1:1 rt-import 1:1 rt-export 1:1 label-mode per-prefix exit ! router isis4 1 vrf v1 net-id 49.0001.0000.0a01.0101.00 traffeng-id :: is-type level1 segrout 10 level1 segrout exit ! interface loopback0 no description vrf forwarding v1 ipv4 address 10.1.1.1 255.255.255.255 router isis4 1 enable router isis4 1 passive router isis4 1 circuit level1 router isis4 1 segrout index 1 no shutdown no log-link-change exit ! interface bundle1 no description vrf forwarding v1 ipv4 address 10.1.2.1 255.255.255.0 mpls enable router isis4 1 enable router isis4 1 circuit level1 no shutdown no log-link-change exit ! interface ethernet0 no description macaddr 0000.0a00.0040 no shutdown no log-link-change exit ! interface sdn1 no description mtu 1500 macaddr 0006.0b5a.2340 bundle-group 1 no shutdown no log-link-change exit ! interface sdn2 no description mtu 1500 macaddr 006a.6b69.2a4f bundle-group 1 no shutdown no log-link-change exit ! interface sdn3 no description mtu 1500 macaddr 0067.1922.2a19 no shutdown no log-link-change exit ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! server telnet ssh security protocol ssh security authentication usr security rsakey rsa security dsakey dsa security ecdsakey ecdsa port 22 exec logging no exec authorization no login authentication vrf v1 exit ! server telnet tel security protocol telnet exec width 130 exec height 25 no exec authorization no login authentication vrf v1 exit ! server p4lang p4 export-vrf v1 1 export-port sdn1 128 10 export-port sdn2 136 10 export-port sdn3 144 10 export-port bundle1 500 10 interconnect ethernet0 vrf v1 exit ! client name-server 8.8.8.8 client config-save client time-zone CET ! end freeRtr-24.11.16/misc/debian2/rules000077500000000000000000000003361471627602100167060ustar00rootroot00000000000000#!/usr/bin/make -f %: dh $@ --with=javahelper --with=systemd --with=sysuser override_dh_auto_build: dh_auto_build mkdir binTmp cd misc/native && ./c.sh override_dh_clean: dh_clean rm -rf binTmp misc/native/*.bin freeRtr-24.11.16/misc/debian2/source/000077500000000000000000000000001471627602100171245ustar00rootroot00000000000000freeRtr-24.11.16/misc/debian2/source/format000066400000000000000000000000151471627602100203330ustar00rootroot000000000000003.0 (native) freeRtr-24.11.16/misc/debian2/sysuser000066400000000000000000000000441471627602100172620ustar00rootroot00000000000000freerouter home=/var/lib/freerouter freeRtr-24.11.16/misc/default.cfg000066400000000000000000000003071471627602100164250ustar00rootroot00000000000000hostname yourname vrf definition host exit interface ethernet20001 vrf forwarding host ipv4 address 10.255.255.254 255.255.255.0 exit server telnet host security protocol telnet vrf host exit freeRtr-24.11.16/misc/demo/000077500000000000000000000000001471627602100152445ustar00rootroot00000000000000freeRtr-24.11.16/misc/demo/get.sh000077500000000000000000000003161471627602100163620ustar00rootroot00000000000000#!/bin/sh cd ../../src ./tw.sh demo02 oobase 2001 cd ../misc/demo getRtr() { cp ../../binTmp/zzz0$1-hw.txt ./$1-hw.txt cp ../../binTmp/zzz0$1-sw.txt ./$1-sw.txt } getRtr r1 getRtr r2 getRtr r3 getRtr r4 freeRtr-24.11.16/misc/demo/r1-hw.txt000066400000000000000000000002411471627602100167400ustar00rootroot00000000000000int eth1 eth 0000.1111.0001 127.0.0.1 34004 127.0.0.1 34005 int eth2 eth 0000.1111.0002 127.0.0.1 34008 127.0.0.1 34009 hwid tester-slot0 tcp2vrf 2001 tester 23 freeRtr-24.11.16/misc/demo/r1-sw.txt000066400000000000000000000017641471627602100167660ustar00rootroot00000000000000hostname r1 buggy ! logging file debug ../binTmp/zzz0r1-log.run ! vrf definition tester exit ! vrf definition v1 rd 1:1 exit ! interface loopback0 vrf forwarding v1 ipv4 address 2.2.2.1 255.255.255.255 ipv6 address 4321::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no shutdown no log-link-change exit ! interface ethernet1 description r2 e1 lldp enable vrf forwarding v1 ipv4 address 1.1.1.1 255.255.255.252 ipv6 address 1234:1::1 ffff:ffff:: no shutdown no log-link-change exit ! interface ethernet2 description r3 e2 lldp enable vrf forwarding v1 ipv4 address 1.1.1.5 255.255.255.252 ipv6 address 1234:2::1 ffff:ffff:: no shutdown no log-link-change exit ! proxy-profile p1 vrf v1 exit ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! server telnet tel security protocol telnet no exec authorization no login authentication vrf v1 exit ! server telnet tester security protocol telnet no exec authorization no login authentication vrf tester exit ! client proxy p1 ! end freeRtr-24.11.16/misc/demo/r2-hw.txt000066400000000000000000000002411471627602100167410ustar00rootroot00000000000000int eth1 eth 0000.2222.0001 127.0.0.1 34005 127.0.0.1 34004 int eth2 eth 0000.2222.0002 127.0.0.1 34012 127.0.0.1 34013 hwid tester-slot0 tcp2vrf 2002 tester 23 freeRtr-24.11.16/misc/demo/r2-sw.txt000066400000000000000000000017641471627602100167670ustar00rootroot00000000000000hostname r2 buggy ! logging file debug ../binTmp/zzz0r2-log.run ! vrf definition tester exit ! vrf definition v1 rd 1:1 exit ! interface loopback0 vrf forwarding v1 ipv4 address 2.2.2.2 255.255.255.255 ipv6 address 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no shutdown no log-link-change exit ! interface ethernet1 description r1 e1 lldp enable vrf forwarding v1 ipv4 address 1.1.1.2 255.255.255.252 ipv6 address 1234:1::2 ffff:ffff:: no shutdown no log-link-change exit ! interface ethernet2 description r4 e2 lldp enable vrf forwarding v1 ipv4 address 1.1.1.9 255.255.255.252 ipv6 address 1234:3::1 ffff:ffff:: no shutdown no log-link-change exit ! proxy-profile p1 vrf v1 exit ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! server telnet tel security protocol telnet no exec authorization no login authentication vrf v1 exit ! server telnet tester security protocol telnet no exec authorization no login authentication vrf tester exit ! client proxy p1 ! end freeRtr-24.11.16/misc/demo/r3-hw.txt000066400000000000000000000002411471627602100167420ustar00rootroot00000000000000int eth1 eth 0000.3333.0001 127.0.0.1 34016 127.0.0.1 34017 int eth2 eth 0000.3333.0002 127.0.0.1 34009 127.0.0.1 34008 hwid tester-slot0 tcp2vrf 2003 tester 23 freeRtr-24.11.16/misc/demo/r3-sw.txt000066400000000000000000000017651471627602100167710ustar00rootroot00000000000000hostname r3 buggy ! logging file debug ../binTmp/zzz0r3-log.run ! vrf definition tester exit ! vrf definition v1 rd 1:1 exit ! interface loopback0 vrf forwarding v1 ipv4 address 2.2.2.3 255.255.255.255 ipv6 address 4321::3 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no shutdown no log-link-change exit ! interface ethernet1 description r4 e1 lldp enable vrf forwarding v1 ipv4 address 1.1.1.13 255.255.255.252 ipv6 address 1234:4::1 ffff:ffff:: no shutdown no log-link-change exit ! interface ethernet2 description r1 e2 lldp enable vrf forwarding v1 ipv4 address 1.1.1.6 255.255.255.252 ipv6 address 1234:2::2 ffff:ffff:: no shutdown no log-link-change exit ! proxy-profile p1 vrf v1 exit ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! server telnet tel security protocol telnet no exec authorization no login authentication vrf v1 exit ! server telnet tester security protocol telnet no exec authorization no login authentication vrf tester exit ! client proxy p1 ! end freeRtr-24.11.16/misc/demo/r4-hw.txt000066400000000000000000000002411471627602100167430ustar00rootroot00000000000000int eth1 eth 0000.4444.0001 127.0.0.1 34017 127.0.0.1 34016 int eth2 eth 0000.4444.0002 127.0.0.1 34013 127.0.0.1 34012 hwid tester-slot0 tcp2vrf 2004 tester 23 freeRtr-24.11.16/misc/demo/r4-sw.txt000066400000000000000000000017661471627602100167730ustar00rootroot00000000000000hostname r4 buggy ! logging file debug ../binTmp/zzz0r4-log.run ! vrf definition tester exit ! vrf definition v1 rd 1:1 exit ! interface loopback0 vrf forwarding v1 ipv4 address 2.2.2.4 255.255.255.255 ipv6 address 4321::4 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff no shutdown no log-link-change exit ! interface ethernet1 description r3 e1 lldp enable vrf forwarding v1 ipv4 address 1.1.1.14 255.255.255.252 ipv6 address 1234:4::2 ffff:ffff:: no shutdown no log-link-change exit ! interface ethernet2 description r2 e2 lldp enable vrf forwarding v1 ipv4 address 1.1.1.10 255.255.255.252 ipv6 address 1234:3::2 ffff:ffff:: no shutdown no log-link-change exit ! proxy-profile p1 vrf v1 exit ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! server telnet tel security protocol telnet no exec authorization no login authentication vrf v1 exit ! server telnet tester security protocol telnet no exec authorization no login authentication vrf tester exit ! client proxy p1 ! end freeRtr-24.11.16/misc/demo/run.bat000066400000000000000000000003501471627602100165360ustar00rootroot00000000000000@echo off echo now i'll start the routers, please forget this window! start /b java -jar rtr.jar routerw r1- start /b java -jar rtr.jar routerw r2- start /b java -jar rtr.jar routerw r3- start /b java -jar rtr.jar routerw r4- freeRtr-24.11.16/misc/demo/run.sh000077500000000000000000000003541471627602100164110ustar00rootroot00000000000000#!/bin/sh echo now i will start the routers, please forget this window! java -jar rtr.jar routerw r1- freeRtr-24.11.16/misc/doc/000077500000000000000000000000001471627602100150655ustar00rootroot00000000000000freeRtr-24.11.16/misc/doc/vm2.html000077500000000000000000000725141471627602100164730ustar00rootroot00000000000000 Virtual Machine

Virtual Machine (definition)
version 2.0, done by Mc in 2002


table of contents:

The purpose of this virtual machine is to create a new, general purpose, hardware independent environment to speed up application development. Imagine that applications could be developed in any (high level) language. The compiler first generates code for this virtual machine and in the second step, an other simply assembler generates working code for existing processors. The main advantage of this technique is that high level compilers do not require modification to support new hardware environment, and every application could compile to any hardware without modification. So we can say that once we have a good compiler, it can compile for any (possible not yet existing) hardware environments. To do this, a simple assembler is needed to generate machine specific code. It means that this virtual machine code could be used as an intermediate language between higher level languages and the machine code. Because of this, virtual machine is defined with minimal set of instructions and registers, so every existing (and hopefully future) processors could used as target machine.
The only things what higher level compilers should know about target environment are the size of address, and the default integer size, but of course this knowledge is not required, a well chosen address size could be enough for every platform.
Another partition of this idea is the way how applications make system calls (such as file handling, etc). To make a general purpose virtual machine, we need to define these complex things at 'processor' level. This is done through the syscall instruction. Once an application wants to do something with the system, puts the appropriate syscall to the virtual machine code, and the assembler generates the hardware specific code to binary output.

table of contents
sizes:
b byte 8 bits
w word 16 bits
d double word 32 bits
q quad word 64 bits
table of contents
formats:
d default bit order
m Most Significant Bit first
l Least Significant Bit first
table of contents
signs:
s signed
u unsigned
table of contents
registers:
a data b, w, d, w
b data b, w, d, w
c data b, w, d, w
d data b, w, d, w
src pointer depends on architecture
trg pointer depends on architecture
table of contents
addressing:
[src+-number]
[trg+-number]
table of contents
conditions:
a above
b below
e equal
ae above or equal
be below or equal
na not above
nb not below
ne not equal
nae nor above nor equal
nbe nor below nor equal
table of contents
syntax:
platform name   the name of platform used at higher level
proc label   beginning of subroutine
endp     end of subroutine
label label   place a label here
defb number(s)   place byte(s) in code
defw number(s)   place word(s) in code
defd number(s)   place double word(s) in code
defq number(s)   place quad word(s) in code
const name number let constant name equal to number
table of contents
instructions:
note1: the upper remainder parts of registers are not tested, and have invalid contents after execution.
note2: the conditions are destroied by instructions, so a jmpc or setc must preceded by a comp instruction.
add size reg reg/num adding op2 to op1
sub size reg reg/num subtract op2 from op1
mul sign size reg reg/num multiply op1 by op2
div sign size reg reg/num divide op1 by op2
mod sign size reg reg/num remainder from dividing op1 by op2
or size reg reg/num bitwise oring op1 by op2
xor size reg reg/num bitwise xoring op1 by op2
and size reg reg/num bitwise anding op1 by op2
not size reg   bitwise noting op1
neg size reg   negating op1
shl size reg reg/num shift left op1 by op2 bits
shr size reg reg/num shift right op1 by op2 bits
push size reg   put op1 to top of stack
pop size reg   get value from top of stack to op1
comp sign size reg reg/num compare op1 to op2
move op1.sign op1.size op2.sign op2.size reg reg/num move op2 to op1
movr format op1.sign op1.size op2.sign op2.size reg mem read op1 from memory
movw format op1.sign op1.size op2.sign op2.size mem reg write op2 to memory
call label     jump to label, push offset to stack
cllr src/trg     jump to an address, push offset to stack
ret       return to saved offset
jump label     jump to label
jmpr src/trg     jump to an address
jmpc condition label   jump to label if condition is true
setc condition size reg set the register to 1 if condition is true, else 0
xchg size mem reg exchange value in op2 register with op1 memory
addrLod src/trg mem   load address from memory to op1
addrSav mem src/trg   save address from op2 to memory
procAddr src/trg num   setup op1 to beginning of op2 subroutine's data block
procAllocBeg num num   begin allocating op2 bytes to op1 subroutine; use the - as number
procAllocEnd num num   finish allocating op2 bytes to op1 subroutine
procFree num num   release op2 bytes from op1 subroutine
codeOfs src/trg label   get offset of label in code
sysCall function     do the function, parameters are in registers
table of contents
syscalls:
startup     starts the code here [maxproc] [maxstack] [maxheap]
terminate w:a   terminates the code withe error code a
sleep     sleeps the process for a while
memCopy src trg d:c   copy c bytes from [src] to [trg] in memory
memCopy2 src trg d:c   copy c bytes from [src] to [trg] in memory, cares on overlapping
memFillByte trg b:a d:c   fill a byte to trg c times
memResize d:c d:c trg resize the memory to c, returns the size, and beginning
getMemInfo   d:c trg returns the size, and beginning of extended memory
codeCopy src trg d:c   copy c bytes from code [src] to memory [trg]
console.write src d:c   write c bytes from src to the console
console.iskey   b:a test for char on console (1=yes, 0=no)
console.read trg d:c d:c read c bytes to trg from the console, returns number of bytes read in c
console.size   w:a w:b read console size (a=x, b=y)
console.clear     clears the console
console.gotoXY w:a w:b   set the cursor to a column and b row
console.setColor b:a   set the pen color to ibm attributes
console.getDate   w:a w:b w:c returns current date, a-year, b-month, c-day
console.getTime   w:a w:b w:c returns current time, a-hour, b-minute, c-second
console.execWait src trg w:a w:b execute process in trg with src parameter, wait until terminate, returns exitcode in a (b=error)
file.maxName   w:a returns maximum name length
file.myName trg w:c returns pathname of running process
file.myParam trg w:c returns parameters of running process
file.open src d:a d:a w:b open file on pascii name src with a rights, handler returned in a (b=error)
file.read d:a trg d:c d:c w:b read c bytes to trg memory from file handler a, return c bytes read, (b=error)
file.write d:a src d:c w:b write c bytes from src memory to file handler a (b=error)
file.seek d:a d:c w:b seek to c position in file handler a (b=error)
file.getSize d:a d:c w:b get file size to c from handler a (b=error)
file.getPos d:a d:c w:b get file position to c from handler a (b=error)
file.truncate d:a w:b truncate file handler a (b=error)
file.close d:a w:b close the file handler a (b=error)
file.create src w:b create pascii src named file (b=error)
file.erase src w:b erase pascii src named file (b=error)
dir.current trg w:b get working directory to trg in pascii (b=error)
dir.change src w:b change working directory from src in pascii (b=error)
dir.statistic   d:a d:b d:c d:d get disk statistics: a-free, b-used, c-bad, d-blocksize
dir.setRights src d:a d:b w:b set directory entry access rights to a and owner to b (b=error)
dir.setDate src trg w:b set src directory entry create,modify date to trg (b=error)
dir.reName src trg w:b rename src directory entry to trg name (b=error)
dir.makeLink src trg w:b create link to src directory entry under trg name (b=error)
dir.open src d:a w:b open directory on pascii src name, handler returned in a (b=error)
dir.read d:a trg w:b read dir entry to trg memory from dir handler a (b=error)
format: d:size, d:rights, d:owner, t:create, t:modify, pascii:name
t: w:year, b:month, b:day, b:hour, b:minute, b:second
dir.close d:a w:b close the directory handler a (b=error)
dir.create src w:b create pascii src named directory (b=error)
dir.erase src w:b erase pascii src named directory (b=error)
pipeline.startListen   w:b start listening for incoming pipelines (b=error)
pipeline.stopListen   w:b stop listening for incoming pipelines (b=error)
pipeline.getIncoming   w:b d:a get next incoming pipeline number in a (b=error)
pipeline.create d:a d:c b:b w:b d:a create c bytes pipe to a process b=1 if block mode, pipe id a (b=error)
pipeline.close d:a w:b close pipeline a (b=error)
pipeline.info d:a d:a d:c d:d w:b pipeline info, a=process, c=freeTx, d=usedRx (b=error)
pipeline.receive d:a trg d:c d:c w:b receive c bytes to trg from a pipeline, c bytes received (b=error)
pipeline.send d:a src d:c w:b send c bytes from src to a pipeline (b=error)
system.getPID   d:a d:b d:c returns a=process id, b=parent process id, c=rights
system.getUID   d:a d:b returns my user id in a, original in b
system.sysInfoNum   d:a d:c d:d returns a=#of proc, c=#of pipes, d=#of files
system.sysInfoMem   d:a d:c d:d returns memory in byte a=total, c=kernel, d=free
system.sysInfoProc   d:a d:b d:c d:d returns process starts a=idles, b=rounds, c=full rounds, d=active start
system.procInfoNam d:a trg d:a d:c d:d returns info about [a] process, trg=pathname+param, a=uid, c=parent pid, d=rights
system.procInfoNum d:a d:a d:c d:d returns info about [a] process, a=bytes, c=pipes, d=files
system.procInfoRun d:a d:a d:b d:c returns process runs a=working since, b=times was busy, c=times run
system.findProcNum d:a d:a find process by number (0..max-1)
system.findProcNam src d:a find process by name
system.cpuInfo d:a trg d:a d:c get cpu info (0..max-1), a=max, c=number
system.kernelInfo trg   get kernel info to trg in asciiZ
system.kernelLogo trg   get kernel logo to trg in asciiZ
system.procLive d:a d:b check process existence, 0=no, 1=yes
system.uptimeInfo   d:a d:c d:d get uptime info, a=days, c=ticks, d=ticks/day
system.killProcess d:a d:b kill another process
syscalls require extra privileges:
system.setUID d:a   sets my user id
console.execBckgnd src trg d:a w:b execute process in background, returns pid in a (b=error)
console.execInme src trg d:a d:c w:b execute process inside me, returns pid in a, pipe in c (b=error)
system.mapMemory d:a d:c d:b trg d:a d:c map c bytes from a of physical memory, returns trg as logical offset
system.contMem d:c d:b d:a d:c trg allocate continous c bytes, returns b=error, a=physical, c=size, trg=beginning
system.IOportRead d:d b:c d:a read c bits from d port to a
system.IOportWrite d:d b:c d:a   write c bits from d port from a
system.DMAcount w:d d:c get byte count of dma channel
system.DMAstop w:d   stop dma channel
system.DMAstart w:d d:a d:c b:b   start dma channel a=physical, c=count, b=mode:
0=demand, 1=single, 2=block, 3=cascade; 00h=verify, 10h=card>>mem, 20h=mem>>card
system.driveLogin b:a src d:b login as drive letter
system.driveLogout b:a d:b logout as drive letter
system.driveFinished     drive signals end of processing
system.dropPrivi     drop privileged flag
table of contents
errors:
0 no error
1 unknown error
2 out of memory
3 out of disk space
4 no right
5 sharing violation
6 path not exists
7 file not exists
8 file already exists
9 invalid handle
10 directory not empty
11 embedded directories
12 file/directory mismatch
13 file pointer too big
14 drive io fault
15 drive not ready
16 eof encountered
17 invalid filename format
18 abnormal program termination
table of contents
keys:
first byte bits:
7 extended key
2 alt
1 ctrl
0 shift
extended keys:
0 no operation
1 redraw screen
2 tab
3 backspace
4 enter
5 escape
6 insert
7 delete
8 home
9 end
10 pgup
11 pgdn
12 up
13 down
14 left
15 right
16 printscreen
17 break
18 start-left
19 menu
20..49 f1..f30
50 start-right
51 wake-up
52 sleep
53 power
table of contents
rights:
001h owner read
002h owner write
004h owner execute
008h anybody read
010h anybody write
020h anybody execute
040h extended privileges
080h directory
100h owner read
200h owner write
table of contents
filesys:
buffer:
dword command/result
dword userid
dword rights
dword buffer size
string current directory
string filename1
string filename2
512 bytes handler
65536 bytes data
commands:
1 change directory dir, fn1, uid
2 drive statistics data: free,used,bad,blockSize:dword
3 create directory dir, fn1, uid
4 erase directory dir, fn1, uid
5 create file dir, fn1, uid
6 erase file dir, fn1, uid
7 rename dir, fn1, fn2, uid
8 create link dir, fn1, fn2, uid
9 set rights dir, fn1, uid, data: rights,owner:dword
10 set date dir, fn1, uid, data: create,modify:time
11 open directory dir, fn1, uid, hdr, data: inode,rights:dword; name:string
12 read directory hdr, data: size,right,own:dword; create,modify:time; name:string
13 open file dir, fn1, right, uid, hdr, data: inode,rights:dword; name:string
14 read file hdr, size, data
15 write file hdr, size, data
16 seek file hdr, data: position:dword
17 get file size hdr, data: filesize:dword
18 get file position hdr, data: position:dword
19 truncate file hdr
table of contents freeRtr-24.11.16/misc/doc/websense.html000077500000000000000000000007261471627602100175760ustar00rootroot00000000000000 the page requested is blocked! the page you have requested ( ) has been blocked!
if you think, this is a mistake, report it!


happy browsing...
freeRtr-24.11.16/misc/docker/000077500000000000000000000000001471627602100155675ustar00rootroot00000000000000freeRtr-24.11.16/misc/docker/Dockerfile000066400000000000000000000016551471627602100175700ustar00rootroot00000000000000FROM debian MAINTAINER Frederic LOUI RUN apt-get update RUN apt-get -f -y dist-upgrade RUN apt-get -f -y install wget unzip net-tools libpcap-dev openssl iproute2 dpdk openvswitch-switch ethtool default-jre-headless RUN apt-get clean RUN mkdir -p /opt/freertr RUN mkdir -p /opt/freertr/bin RUN mkdir -p /opt/freertr/src RUN mkdir -p /opt/freertr/run WORKDIR /opt/freertr/ RUN wget http://www.freertr.org/rtr.zip RUN wget http://www.freertr.org/rtr.jar RUN wget http://www.freertr.org/rtr.ver RUN wget http://www.freertr.org/rtr-`uname -m`.tgz RUN mv ./rtr.jar ./bin RUN mv ./rtr.ver ./bin RUN unzip ./rtr.zip -d /opt/freertr/src WORKDIR /opt/freertr/bin RUN tar xfz ../rtr-`uname -m`.tgz COPY . /opt/freertr/ WORKDIR /opt/freertr/ VOLUME ./run:/opt/freertr/run ENV FREERTR_HOSTNAME=freertr \ FREERTR_INTF_LIST="eth2/20010/20011" CMD ./scripts/freertr.sh -i "$FREERTR_INTF_LIST" -r $FREERTR_HOSTNAME freeRtr-24.11.16/misc/docker/run/000077500000000000000000000000001471627602100163735ustar00rootroot00000000000000freeRtr-24.11.16/misc/docker/run/freertr-hw.txt000066400000000000000000000002471471627602100212240ustar00rootroot00000000000000hwid emu port 60000 61000 int eth1 eth 0000.1111.2222 127.0.0.1 22706 127.0.0.1 22705 !line tty1 127.0.0.1 21001 127.0.0.1 21002 tcp2vrf 2323 v1 23 tcp2vrf 8080 v1 80 freeRtr-24.11.16/misc/docker/run/freertr-sw.txt000066400000000000000000000006571471627602100212440ustar00rootroot00000000000000hostname freertr buggy ! logging buffered debug 10240 logging file debug zzz.log ! vrf definition v1 rd 1:1 exit ! interface ethernet1 no description no shutdown no log-link-change exit ! proxy-profile p1 vrf v1 exit ! ! ! ! ! ! ! ! ! ! ! ! ! ! server telnet tel security protocol telnet no exec authorization no login authentication vrf v1 exit ! client proxy p1 client name-server 8.8.8.8 client time-zone CET ! end freeRtr-24.11.16/misc/docker/scripts/000077500000000000000000000000001471627602100172565ustar00rootroot00000000000000freeRtr-24.11.16/misc/docker/scripts/freertr.sh000077500000000000000000000045161471627602100212740ustar00rootroot00000000000000#!/bin/sh iflag=false rflag=false FREERTR_INTF_LIST="" FREERTR_HOSTNAME="" FREERTR_BASE_DIR=$(pwd) usage(){ echo "Usage: `basename $0` -i -r -h for help"; echo "Example: $0 -i \"eth0/22705/22706 eth1/20010/20011\" -r freertr" exit 1 } bindintf () { echo "bindintf: FREERTR_INTF_LIST=$FREERTR_INTF_LIST"; FREERTR_INTF_LIST=$(echo $1 | tr -d '\"'); echo "--- DECLARING FREERTR INTERFACE RAWINT (FORWARDING PLANE) ---"; for FREERTR_INTF in $FREERTR_INTF_LIST; do echo "FREERTR_INTF=$FREERTR_INTF"; IFS=/; set $FREERTR_INTF; echo "INTF=$1"; echo "PORT_1=$2"; echo "PORT_2=$3"; ip link set $1 up multicast on promisc on mtu 1500 ethtool -K $1 rx off ethtool -K $1 tx off ethtool -K $1 sg off ethtool -K $1 tso off ethtool -K $1 ufo off ethtool -K $1 gso off ethtool -K $1 gro off ethtool -K $1 lro off ethtool -K $1 rxvlan off ethtool -K $1 txvlan off ethtool -K $1 ntuple off ethtool -K $1 rxhash off ethtool --set-eee $1 eee off start-stop-daemon -S -b -x "${FREERTR_BASE_DIR}/bin/rawInt.bin" $1 $3 127.0.0.1 $2 127.0.0.1; done } start_freertr () { FREERTR_BASE_DIR=$1 FREERTR_HOSTNAME=$2 cd "${FREERTR_BASE_DIR}/run" java -jar "${FREERTR_BASE_DIR}/bin/rtr.jar" routercs "${FREERTR_BASE_DIR}/run/${FREERTR_HOSTNAME}-hw.txt" "${FREERTR_BASE_DIR}/run/${FREERTR_HOSTNAME}-sw.txt" } if ( ! getopts ":hi:r:" opt); then usage exit $E_OPTERROR; fi while getopts ":hi:r:" opt;do case $opt in i) FREERTR_INTF_LIST=$OPTARG echo "FREERTR_INTF_LIST: $FREERTR_INTF_LIST"; iflag=true ;; r) FREERTR_HOSTNAME=$OPTARG echo "FREERTR_HOSTNAME: $FREERTR_HOSTNAME"; rflag=true ;; \?) echo "Option not supported." >&2 usage exit 1 ;; :) echo "Option -$OPTARG requires an argument." >&2 usage exit 1 ;; h|*) usage exit 1 ;; esac done if $iflag && $rflag ; then bindintf "${FREERTR_INTF_LIST}" "${FREERTR_BASE_DIR}" start_freertr "${FREERTR_BASE_DIR}" ${FREERTR_HOSTNAME} else if ! $iflag; then echo "[-i] freertr interface list missing" usage fi if ! $rflag; then echo "[-r] router hostname missing" usage fi fi freeRtr-24.11.16/misc/doxygen.cfg000066400000000000000000003132111471627602100164570ustar00rootroot00000000000000# Doxyfile 1.8.9.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a double hash (##) is considered a comment and is placed in # front of the TAG it is preceding. # # All text after a single hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [value, ...] # For lists, items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (\" \"). #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all text # before the first occurrence of this tag. Doxygen uses libiconv (or the iconv # built into libc) for the transcoding. See http://www.gnu.org/software/libiconv # for the list of possible encodings. # The default value is: UTF-8. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by # double-quotes, unless you are using Doxywizard) that should identify the # project for which the documentation is generated. This name is used in the # title of most generated pages and in a few other places. # The default value is: My Project. PROJECT_NAME = "freeRouter" # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. PROJECT_NUMBER = # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = "networking swiss army knife" # With the PROJECT_LOGO tag one can specify a logo or an icon that is included # in the documentation. The maximum height of the logo should not exceed 55 # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. PROJECT_LOGO = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path # into which the generated documentation will be written. If a relative path is # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. OUTPUT_DIRECTORY = ../binTmp/ # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and # will distribute the generated files over these directories. Enabling this # option can be useful when feeding doxygen a huge amount of source files, where # putting all generated files in the same directory would otherwise causes # performance problems for the file system. # The default value is: NO. CREATE_SUBDIRS = NO # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII # characters to appear in the names of generated files. If set to NO, non-ASCII # characters will be escaped, for example _xE3_x81_x84 will be used for Unicode # U+3044. # The default value is: NO. ALLOW_UNICODE_NAMES = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, # Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), # Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, # Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), # Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, # Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, # Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, # Ukrainian and Vietnamese. # The default value is: English. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member # descriptions after the members that are listed in the file and class # documentation (similar to Javadoc). Set to NO to disable this. # The default value is: YES. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief # description of a member or function before the detailed description # # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. # The default value is: YES. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator that is # used to form the text in various listings. Each string in this list, if found # as the leading text of the brief description, will be stripped from the text # and the result, after processing the whole list, is used as the annotated # text. Otherwise, the brief description is used as-is. If left blank, the # following values are used ($name is automatically replaced with the name of # the entity):The $name class, The $name widget, The $name file, is, provides, # specifies, contains, represents, a, an and the. ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # doxygen will generate a detailed section even if there is only a brief # description. # The default value is: NO. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. # The default value is: NO. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path # before files name in the file list and in the header files. If set to NO the # shortest path that makes the file name unique will be used # The default value is: YES. FULL_PATH_NAMES = YES # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. # Stripping is only done if one of the specified strings matches the left-hand # part of the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the path to # strip. # # Note that you can specify absolute paths here, but also relative paths, which # will be relative from the directory where doxygen is started. # This tag requires that the tag FULL_PATH_NAMES is set to YES. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the # path mentioned in the documentation of a class, which tells the reader which # header file to include in order to use a class. If left blank only the name of # the header file containing the class definition is used. Otherwise one should # specify the list of include paths that are normally passed to the compiler # using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but # less readable) file names. This can be useful is your file systems doesn't # support long names like on DOS, Mac, or CD-ROM. # The default value is: NO. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the # first line (until the first dot) of a Javadoc-style comment as the brief # description. If set to NO, the Javadoc-style will behave just like regular Qt- # style comments (thus requiring an explicit @brief command for a brief # description.) # The default value is: NO. JAVADOC_AUTOBRIEF = NO # If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first # line (until the first dot) of a Qt-style comment as the brief description. If # set to NO, the Qt-style will behave just like regular Qt-style comments (thus # requiring an explicit \brief command for a brief description.) # The default value is: NO. QT_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a # multi-line C++ special comment block (i.e. a block of //! or /// comments) as # a brief description. This used to be the default behavior. The new default is # to treat a multi-line C++ comment block as a detailed description. Set this # tag to YES if you prefer the old behavior instead. # # Note that setting this tag to YES also means that rational rose comments are # not recognized any more. # The default value is: NO. MULTILINE_CPP_IS_BRIEF = NO # If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the # documentation from any documented member that it re-implements. # The default value is: YES. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new # page for each member. If set to NO, the documentation of a member will be part # of the file/class/namespace that contains it. # The default value is: NO. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen # uses this value to replace tabs by spaces in code fragments. # Minimum value: 1, maximum value: 16, default value: 4. TAB_SIZE = 4 # This tag can be used to specify a number of aliases that act as commands in # the documentation. An alias has the form: # name=value # For example adding # "sideeffect=@par Side Effects:\n" # will allow you to put the command \sideeffect (or @sideeffect) in the # documentation, which will result in a user-defined paragraph with heading # "Side Effects:". You can put \n's in the value part of an alias to insert # newlines. ALIASES = # This tag can be used to specify a number of word-keyword mappings (TCL only). # A mapping has the form "name=value". For example adding "class=itcl::class" # will allow you to use the command class in the itcl::class meaning. TCL_SUBST = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. For # instance, some of the names that are used will be different. The list of all # members will be omitted, etc. # The default value is: NO. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or # Python sources only. Doxygen will then generate output that is more tailored # for that language. For instance, namespaces will be presented as packages, # qualified scopes will look different, etc. # The default value is: NO. OPTIMIZE_OUTPUT_JAVA = YES # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources. Doxygen will then generate output that is tailored for Fortran. # The default value is: NO. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for VHDL. # The default value is: NO. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given # extension. Doxygen has a built-in mapping, but you can override or extend it # using this tag. The format is ext=language, where ext is a file extension, and # language is one of the parsers supported by doxygen: IDL, Java, Javascript, # C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: # FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: # Fortran. In the later case the parser tries to guess whether the code is fixed # or free formatted code, this is the default for Fortran type files), VHDL. For # instance to make doxygen treat .inc files as Fortran files (default is PHP), # and .f files as C (default is Fortran), use: inc=Fortran f=C. # # Note: For files without extension you can use no_extension as a placeholder. # # Note that for custom extensions you also need to set FILE_PATTERNS otherwise # the files are not read by doxygen. EXTENSION_MAPPING = # If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments # according to the Markdown format, which allows for more readable # documentation. See http://daringfireball.net/projects/markdown/ for details. # The output of markdown processing is further processed by doxygen, so you can # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in # case of backward compatibilities issues. # The default value is: YES. MARKDOWN_SUPPORT = YES # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can # be prevented in individual cases by putting a % sign in front of the word or # globally by setting AUTOLINK_SUPPORT to NO. # The default value is: YES. AUTOLINK_SUPPORT = YES # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should set this # tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); # versus func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. # The default value is: NO. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. # The default value is: NO. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip (see: # http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen # will parse them like normal C++ but will assume all classes use public instead # of private inheritance when no explicit protection keyword is present. # The default value is: NO. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate # getter and setter methods for a property. Setting this option to YES will make # doxygen to replace the get and set methods by a property in the documentation. # This will only work if the methods are indeed getting or setting a simple # type. If this is not the case, or you want to show the methods anyway, you # should set this option to NO. # The default value is: YES. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. # The default value is: NO. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES to allow class member groups of the same type # (for instance a group of public functions) to be put as a subgroup of that # type (e.g. under the Public Functions section). Set it to NO to prevent # subgrouping. Alternatively, this can be done per class using the # \nosubgrouping command. # The default value is: YES. SUBGROUPING = YES # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions # are shown inside the group in which they are included (e.g. using \ingroup) # instead of on a separate page (for HTML and Man pages) or section (for LaTeX # and RTF). # # Note that this feature does not work in combination with # SEPARATE_MEMBER_PAGES. # The default value is: NO. INLINE_GROUPED_CLASSES = NO # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions # with only public data fields or simple typedef fields will be shown inline in # the documentation of the scope in which they are defined (i.e. file, # namespace, or group documentation), provided this scope is documented. If set # to NO, structs, classes, and unions are shown on a separate page (for HTML and # Man pages) or section (for LaTeX and RTF). # The default value is: NO. INLINE_SIMPLE_STRUCTS = NO # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or # enum is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically be # useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. # The default value is: NO. TYPEDEF_HIDES_STRUCT = NO # The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This # cache is used to resolve symbols given their name and scope. Since this can be # an expensive process and often the same symbol appears multiple times in the # code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small # doxygen will become slower. If the cache is too large, memory is wasted. The # cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range # is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 # symbols. At the end of a run doxygen will report the cache usage and suggest # the optimal cache size from a speed point of view. # Minimum value: 0, maximum value: 9, default value: 0. LOOKUP_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in # documentation are documented, even if no documentation was available. Private # class members and static file members will be hidden unless the # EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. # Note: This will also disable the warnings about undocumented members that are # normally produced when WARNINGS is set to YES. # The default value is: NO. EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will # be included in the documentation. # The default value is: NO. EXTRACT_PRIVATE = YES # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal # scope will be included in the documentation. # The default value is: NO. EXTRACT_PACKAGE = YES # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be # included in the documentation. # The default value is: NO. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined # locally in source files will be included in the documentation. If set to NO, # only classes defined in header files are included. Does not have any effect # for Java sources. # The default value is: YES. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. If set to YES, local methods, # which are defined in the implementation section but not in the interface are # included in the documentation. If set to NO, only methods in the interface are # included. # The default value is: NO. EXTRACT_LOCAL_METHODS = YES # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base name of # the file that contains the anonymous namespace. By default anonymous namespace # are hidden. # The default value is: NO. EXTRACT_ANON_NSPACES = YES # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all # undocumented members inside documented classes or files. If set to NO these # members will be included in the various overviews, but no documentation # section is generated. This option has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. If set # to NO, these classes will be included in the various overviews. This option # has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend # (class|struct|union) declarations. If set to NO, these declarations will be # included in the documentation. # The default value is: NO. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any # documentation blocks found inside the body of a function. If set to NO, these # blocks will be appended to the function's detailed documentation block. # The default value is: NO. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation that is typed after a # \internal command is included. If the tag is set to NO then the documentation # will be excluded. Set it to YES to include the internal documentation. # The default value is: NO. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file # names in lower-case letters. If set to YES, upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. # The default value is: system dependent. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with # their full class and namespace scopes in the documentation. If set to YES, the # scope will be hidden. # The default value is: NO. HIDE_SCOPE_NAMES = NO # If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will # append additional text to a page's title, such as Class Reference. If set to # YES the compound reference will be hidden. # The default value is: NO. HIDE_COMPOUND_REFERENCE= NO # If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of # the files that are included by a file in the documentation of that file. # The default value is: YES. SHOW_INCLUDE_FILES = YES # If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each # grouped member an include statement to the documentation, telling the reader # which file to include in order to use the member. # The default value is: NO. SHOW_GROUPED_MEMB_INC = NO # If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include # files with double quotes in the documentation rather than with sharp brackets. # The default value is: NO. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the # documentation for inline members. # The default value is: YES. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the # (detailed) documentation of file and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. # The default value is: YES. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief # descriptions of file, namespace and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. Note that # this will also influence the order of the classes in the class list. # The default value is: NO. SORT_BRIEF_DOCS = NO # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the # (brief and detailed) documentation of class members so that constructors and # destructors are listed first. If set to NO the constructors will appear in the # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. # Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief # member documentation. # Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting # detailed member documentation. # The default value is: NO. SORT_MEMBERS_CTORS_1ST = NO # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy # of group names into alphabetical order. If set to NO the group names will # appear in their defined order. # The default value is: NO. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by # fully-qualified names, including namespaces. If set to NO, the class list will # be sorted only by class name, not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the alphabetical # list. # The default value is: NO. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper # type resolution of all parameters of a function it will reject a match between # the prototype and the implementation of a member function even if there is # only one candidate or it is obvious which candidate to choose by doing a # simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still # accept a match between prototype and implementation in such cases. # The default value is: NO. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo # list. This list is created by putting \todo commands in the documentation. # The default value is: YES. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test # list. This list is created by putting \test commands in the documentation. # The default value is: YES. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug # list. This list is created by putting \bug commands in the documentation. # The default value is: YES. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) # the deprecated list. This list is created by putting \deprecated commands in # the documentation. # The default value is: YES. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional documentation # sections, marked by \if ... \endif and \cond # ... \endcond blocks. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the # initial value of a variable or macro / define can have for it to appear in the # documentation. If the initializer consists of more lines than specified here # it will be hidden. Use a value of 0 to hide initializers completely. The # appearance of the value of individual variables and macros / defines can be # controlled using \showinitializer or \hideinitializer command in the # documentation regardless of this setting. # Minimum value: 0, maximum value: 10000, default value: 30. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated at # the bottom of the documentation of classes and structs. If set to YES, the # list will mention the files that were used to generate the documentation. # The default value is: YES. SHOW_USED_FILES = YES # Set the SHOW_FILES tag to NO to disable the generation of the Files page. This # will remove the Files entry from the Quick Index and from the Folder Tree View # (if specified). # The default value is: YES. SHOW_FILES = YES # Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces # page. This will remove the Namespaces entry from the Quick Index and from the # Folder Tree View (if specified). # The default value is: YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command command input-file, where command is the value of the # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided # by doxygen. Whatever the program writes to standard output is used as the file # version. For an example see the documentation. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file # that represents doxygen's defaults, run doxygen with the -l option. You can # optionally specify a file name after the option, if omitted DoxygenLayout.xml # will be used as the name of the layout file. # # Note that if you run doxygen from a directory containing a file called # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE # tag is left empty. LAYOUT_FILE = # The CITE_BIB_FILES tag can be used to specify one or more bib files containing # the reference definitions. This must be a list of .bib files. The .bib # extension is automatically appended if omitted. This requires the bibtex tool # to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. # For LaTeX the style of the bibliography can be controlled using # LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the # search path. See also \cite for info how to create references. CITE_BIB_FILES = #--------------------------------------------------------------------------- # Configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated to # standard output by doxygen. If QUIET is set to YES this implies that the # messages are off. # The default value is: NO. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated to standard error (stderr) by doxygen. If WARNINGS is set to YES # this implies that the warnings are on. # # Tip: Turn warnings on while writing the documentation. # The default value is: YES. WARNINGS = YES # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag # will automatically be disabled. # The default value is: YES. WARN_IF_UNDOCUMENTED = YES # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some parameters # in a documented function, or documenting parameters that don't exist or using # markup commands wrongly. # The default value is: YES. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that # are documented, but have no documentation for their parameters or return # value. If set to NO, doxygen will only warn about wrong or incomplete # parameter documentation, but not about the absence of documentation. # The default value is: NO. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that doxygen # can produce. The string should contain the $file, $line, and $text tags, which # will be replaced by the file and line number from which the warning originated # and the warning text. Optionally the format may contain $version, which will # be replaced by the version of the file (if it could be obtained via # FILE_VERSION_FILTER) # The default value is: $file:$line: $text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning and error # messages should be written. If left blank the output is written to standard # error (stderr). WARN_LOGFILE = #--------------------------------------------------------------------------- # Configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag is used to specify the files and/or directories that contain # documented source files. You may enter file names like myfile.cpp or # directories like /usr/src/myproject. Separate the files or directories with # spaces. # Note: If this tag is empty the current directory is searched. INPUT = # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # libiconv (or the iconv built into libc) for the transcoding. See the libiconv # documentation (see: http://www.gnu.org/software/libiconv) for the list of # possible encodings. # The default value is: UTF-8. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and # *.h) to filter out the source-files in the directories. If left blank the # following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, # *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, # *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, # *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, # *.qsf, *.as and *.js. FILE_PATTERNS = # The RECURSIVE tag can be used to specify whether or not subdirectories should # be searched for input files as well. # The default value is: NO. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. # # Note that relative paths are relative to the directory from which doxygen is # run. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. # The default value is: NO. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories use the pattern */test/* EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or directories # that contain example code fragments that are included (see the \include # command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and # *.h) to filter out the source-files in the directories. If left blank all # files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude commands # irrespective of the value of the RECURSIVE tag. # The default value is: NO. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or directories # that contain images that are to be included in the documentation (see the # \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command: # # # # where is the value of the INPUT_FILTER tag, and is the # name of an input file. Doxygen will then use the output that the filter # program writes to standard output. If FILTER_PATTERNS is specified, this tag # will be ignored. # # Note that the filter must not add or remove lines; it is applied before the # code is scanned, but not when the output code is generated. If lines are added # or removed, the anchors will not be placed correctly. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: pattern=filter # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how # filters are used. If the FILTER_PATTERNS tag is empty or if none of the # patterns match the file name, INPUT_FILTER is applied. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will also be used to filter the input files that are used for # producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). # The default value is: NO. FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) and # it is also possible to disable source filtering for a specific pattern using # *.ext= (so without naming a filter). # This tag requires that the tag FILTER_SOURCE_FILES is set to YES. FILTER_SOURCE_PATTERNS = # If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that # is part of the input, its contents will be placed on the main page # (index.html). This can be useful if you have a project on for instance GitHub # and want to reuse the introduction page also for the doxygen output. USE_MDFILE_AS_MAINPAGE = #--------------------------------------------------------------------------- # Configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will be # generated. Documented entities will be cross-referenced with these sources. # # Note: To get rid of all source code in the generated output, make sure that # also VERBATIM_HEADERS is set to NO. # The default value is: NO. SOURCE_BROWSER = YES # Setting the INLINE_SOURCES tag to YES will include the body of functions, # classes and enums directly into the documentation. # The default value is: NO. INLINE_SOURCES = YES # Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any # special comment blocks from generated source code fragments. Normal C, C++ and # Fortran comments will always remain visible. # The default value is: YES. STRIP_CODE_COMMENTS = NO # If the REFERENCED_BY_RELATION tag is set to YES then for each documented # function all documented functions referencing it will be listed. # The default value is: NO. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES then for each documented function # all documented entities called/used by that function will be listed. # The default value is: NO. REFERENCES_RELATION = YES # If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set # to YES then the hyperlinks from functions in REFERENCES_RELATION and # REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will # link to the documentation. # The default value is: YES. REFERENCES_LINK_SOURCE = YES # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the # source code will show a tooltip with additional information such as prototype, # brief description and links to the definition and documentation. Since this # will make the HTML file larger and loading of large files a bit slower, you # can opt to disable this feature. # The default value is: YES. # This tag requires that the tag SOURCE_BROWSER is set to YES. SOURCE_TOOLTIPS = YES # If the USE_HTAGS tag is set to YES then the references to source code will # point to the HTML generated by the htags(1) tool instead of doxygen built-in # source browser. The htags tool is part of GNU's global source tagging system # (see http://www.gnu.org/software/global/global.html). You will need version # 4.8.6 or higher. # # To use it do the following: # - Install the latest version of global # - Enable SOURCE_BROWSER and USE_HTAGS in the config file # - Make sure the INPUT points to the root of the source tree # - Run doxygen as normal # # Doxygen will invoke htags (and that will in turn invoke gtags), so these # tools must be available from the command line (i.e. in the search path). # # The result: instead of the source browser generated by doxygen, the links to # source code will now point to the output of htags. # The default value is: NO. # This tag requires that the tag SOURCE_BROWSER is set to YES. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a # verbatim copy of the header file for each class for which an include is # specified. Set to NO to disable this. # See also: Section \class. # The default value is: YES. VERBATIM_HEADERS = YES # If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the # clang parser (see: http://clang.llvm.org/) for more accurate parsing at the # cost of reduced performance. This can be particularly helpful with template # rich C++ code for which doxygen's built-in parser lacks the necessary type # information. # Note: The availability of this option depends on whether or not doxygen was # compiled with the --with-libclang option. # The default value is: NO. CLANG_ASSISTED_PARSING = NO # If clang assisted parsing is enabled you can provide the compiler with command # line options that you would normally use when invoking the compiler. Note that # the include paths will already be set by doxygen for the files and directories # specified with INPUT and INCLUDE_PATH. # This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES. CLANG_OPTIONS = #--------------------------------------------------------------------------- # Configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all # compounds will be generated. Enable this if the project contains a lot of # classes, structs, unions or interfaces. # The default value is: YES. ALPHABETICAL_INDEX = YES # The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in # which the alphabetical index list will be split. # Minimum value: 1, maximum value: 20, default value: 5. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all classes will # be put under the same header in the alphabetical index. The IGNORE_PREFIX tag # can be used to specify a prefix (or a list of prefixes) that should be ignored # while generating the index headers. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. IGNORE_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output # The default value is: YES. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # it. # The default directory is: html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each # generated HTML page (for example: .htm, .php, .asp). # The default value is: .html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a user-defined HTML header file for # each generated HTML page. If the tag is left blank doxygen will generate a # standard header. # # To get valid HTML the header file that includes any scripts and style sheets # that doxygen needs, which is dependent on the configuration options used (e.g. # the setting GENERATE_TREEVIEW). It is highly recommended to start with a # default header using # doxygen -w html new_header.html new_footer.html new_stylesheet.css # YourConfigFile # and then modify the file new_header.html. See also section "Doxygen usage" # for information on how to generate the default header that doxygen normally # uses. # Note: The header is subject to change so you typically have to regenerate the # default header when upgrading to a newer version of doxygen. For a description # of the possible markers and block names see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each # generated HTML page. If the tag is left blank doxygen will generate a standard # footer. See HTML_HEADER for more information on how to generate a default # footer and what special commands can be used inside the footer. See also # section "Doxygen usage" for information on how to generate the default footer # that doxygen normally uses. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style # sheet that is used by each HTML page. It can be used to fine-tune the look of # the HTML output. If left blank doxygen will generate a default style sheet. # See also section "Doxygen usage" for information on how to generate the style # sheet that doxygen normally uses. # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as # it is more robust and this tag (HTML_STYLESHEET) will in the future become # obsolete. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined # cascading style sheets that are included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the # standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. # Note: The order of the extra style sheet files is of importance (e.g. the last # style sheet in the list overrules the setting of the previous ones in the # list). For an example see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that the # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_FILES = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen # will adjust the colors in the style sheet and background images according to # this color. Hue is specified as an angle on a colorwheel, see # http://en.wikipedia.org/wiki/Hue for more information. For instance the value # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 # purple, and 360 is red again. # Minimum value: 0, maximum value: 359, default value: 220. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors # in the HTML output. For a value of 0 the output will use grayscales only. A # value of 255 will produce the most vivid colors. # Minimum value: 0, maximum value: 255, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the # luminance component of the colors in the HTML output. Values below 100 # gradually make the output lighter, whereas values above 100 make the output # darker. The value divided by 100 is the actual gamma applied, so 80 represents # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not # change the gamma. # Minimum value: 40, maximum value: 240, default value: 80. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting this # to YES can help to show when doxygen was last run and thus if the # documentation is up to date. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_TIMESTAMP = NO # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_SECTIONS = YES # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries # shown in the various tree structured indices initially; the user can expand # and collapse entries dynamically later on. Doxygen will expand the tree to # such a level that at most the specified number of entries are visible (unless # a fully collapsed tree already exceeds this amount). So setting the number of # entries 1 will produce a full collapsed tree by default. 0 is a special value # representing an infinite number of entries and will result in a full expanded # tree by default. # Minimum value: 0, maximum value: 9999, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files will be # generated that can be used as input for Apple's Xcode 3 integrated development # environment (see: http://developer.apple.com/tools/xcode/), introduced with # OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a # Makefile in the HTML output directory. Running make will produce the docset in # that directory and running make install will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at # startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_DOCSET = NO # This tag determines the name of the docset feed. A documentation feed provides # an umbrella under which multiple documentation sets from a single provider # (such as a company or product suite) can be grouped. # The default value is: Doxygen generated docs. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDNAME = "Doxygen generated docs" # This tag specifies a string that should uniquely identify the documentation # set bundle. This should be a reverse domain-name style string, e.g. # com.mycompany.MyDocSet. Doxygen will append .docset to the name. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_BUNDLE_ID = org.doxygen.Project # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. # The default value is: org.doxygen.Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. # The default value is: Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three # additional HTML index files: index.hhp, index.hhc, and index.hhk. The # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop # (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on # Windows. # # The HTML Help Workshop contains a compiler that can convert all HTML output # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML # files are now used as the Windows 98 help format, and will replace the old # Windows help format (.hlp) on all Windows platforms in the future. Compressed # HTML files also contain an index, a table of contents, and you can search for # words in the documentation. The HTML workshop also contains a viewer for # compressed HTML files. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_HTMLHELP = NO # The CHM_FILE tag can be used to specify the file name of the resulting .chm # file. You can add a path in front of the file if the result should not be # written to the html output directory. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_FILE = # The HHC_LOCATION tag can be used to specify the location (absolute path # including file name) of the HTML help compiler (hhc.exe). If non-empty, # doxygen will try to run the HTML help compiler on the generated index.hhp. # The file has to be specified with full path. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. HHC_LOCATION = # The GENERATE_CHI flag controls if a separate .chi index file is generated # (YES) or that it should be included in the master .chm file (NO). # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. GENERATE_CHI = NO # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) # and project file content. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_INDEX_ENCODING = # The BINARY_TOC flag controls whether a binary table of contents is generated # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it # enables the Previous and Next buttons. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members to # the table of contents of the HTML help documentation and to the tree view. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help # (.qch) of the generated HTML documentation. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify # the file name of the resulting .qch file. The path specified is relative to # the HTML output folder. # This tag requires that the tag GENERATE_QHP is set to YES. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help # Project output. For more information please see Qt Help Project / Namespace # (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_NAMESPACE = org.doxygen.Project # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt # Help Project output. For more information please see Qt Help Project / Virtual # Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- # folders). # The default value is: doc. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_VIRTUAL_FOLDER = doc # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom # filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_NAME = # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's filter section matches. Qt Help Project / Filter Attributes (see: # http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_SECT_FILTER_ATTRS = # The QHG_LOCATION tag can be used to specify the location of Qt's # qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the # generated .qhp file. # This tag requires that the tag GENERATE_QHP is set to YES. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be # generated, together with the HTML files, they form an Eclipse help plugin. To # install this plugin and make it available under the help contents menu in # Eclipse, the contents of the directory containing the HTML and XML files needs # to be copied into the plugins directory of eclipse. The name of the directory # within the plugins directory should be the same as the ECLIPSE_DOC_ID value. # After copying Eclipse needs to be restarted before the help appears. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_ECLIPSEHELP = NO # A unique identifier for the Eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have this # name. Each documentation set should have its own identifier. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. ECLIPSE_DOC_ID = org.doxygen.Project # If you want full control over the layout of the generated HTML pages it might # be necessary to disable the index and replace it with your own. The # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top # of each HTML page. A value of NO enables the index and the value YES disables # it. Since the tabs in the index contain the same information as the navigation # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. DISABLE_INDEX = NO # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. If the tag # value is set to YES, a side panel will be generated containing a tree-like # index structure (just like the one that is generated for HTML Help). For this # to work a browser that supports JavaScript, DHTML, CSS and frames is required # (i.e. any modern browser). Windows users are probably better off using the # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can # further fine-tune the look of the index. As an example, the default style # sheet generated by doxygen has an example that shows how to put an image at # the root of the tree instead of the PROJECT_NAME. Since the tree basically has # the same information as the tab index, you could consider setting # DISABLE_INDEX to YES when enabling this option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_TREEVIEW = NO # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that # doxygen will group on one line in the generated HTML documentation. # # Note that a value of 0 will completely suppress the enum values from appearing # in the overview section. # Minimum value: 0, maximum value: 20, default value: 4. # This tag requires that the tag GENERATE_HTML is set to YES. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used # to set the initial width (in pixels) of the frame in which the tree is shown. # Minimum value: 0, maximum value: 1500, default value: 250. # This tag requires that the tag GENERATE_HTML is set to YES. TREEVIEW_WIDTH = 250 # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to # external symbols imported via tag files in a separate window. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of LaTeX formulas included as images in # the HTML documentation. When you change the font size after a successful # doxygen run you need to manually remove any form_*.png images from the HTML # output directory to force them to be regenerated. # Minimum value: 8, maximum value: 50, default value: 10. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # # Note that when changing this option you need to delete any form_*.png files in # the HTML output directory before the changes have effect. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see # http://www.mathjax.org) which uses client side Javascript for the rendering # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX # installed or if you want to formulas look prettier in the HTML output. When # enabled you may also need to install MathJax separately and configure the path # to it using the MATHJAX_RELPATH option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. USE_MATHJAX = NO # When MathJax is enabled you can set the default output format to be used for # the MathJax output. See the MathJax site (see: # http://docs.mathjax.org/en/latest/output.html) for more details. # Possible values are: HTML-CSS (which is slower, but has the best # compatibility), NativeMML (i.e. MathML) and SVG. # The default value is: HTML-CSS. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the HTML # output directory using the MATHJAX_RELPATH option. The destination directory # should contain the MathJax.js script. For instance, if the mathjax directory # is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax # Content Delivery Network so you can quickly see the result without installing # MathJax. However, it is strongly recommended to install a local copy of # MathJax from http://www.mathjax.org before deployment. # The default value is: http://cdn.mathjax.org/mathjax/latest. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # extension names that should be enabled during MathJax rendering. For example # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_EXTENSIONS = # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces # of code that will be used on startup of the MathJax code. See the MathJax site # (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an # example see the documentation. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_CODEFILE = # When the SEARCHENGINE tag is enabled doxygen will generate a search box for # the HTML output. The underlying search engine uses javascript and DHTML and # should work on any modern browser. Note that when using HTML help # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) # there is already a search function so this one should typically be disabled. # For large projects the javascript based search engine can be slow, then # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to # search using the keyboard; to jump to the search box use + S # (what the is depends on the OS and browser, but it is typically # , /